Skip to content

opencvjs is working in dev mode with react but it is not built! #54

Description

@ozkalt

I installed opencv.js by following this link: https://www.ics.uci.edu/~sysarch/projects/OpenCV.html

I want to use CLAHE method in my project. 1.2.1 version is working with CLAHE and I can compile it in development mode. When I build it, I get this error:

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x224123da5879 <JSObject>
    1: push(this=0xe1c1bcbc51 <JSArray[114467]>)
    2: visit [0x68eab6022d1 <undefined>:~5587] [pc=0x275c3848a5f9](this=0x5b136002201 <TreeWalker map = 0x2751e0dfa5a1>,node=0x108cb5047831 <AST_SymbolRef map = 0xb614eea3a99>,descend=0x11580d1bc3b1 <JSFunction noop (sfi = 0x7cc5ad3f959)>)
    3: _walk [0x68eab6022d1 <undefined>:~479] [pc=0x275c381e4a4b](this=0x108cb5047831 <AST_SymbolRef map = 0x...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [node]
 2: 0x8c21ec [node]
 3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
 5: v8::internal::Factory::NewUninitializedFixedArray(int) [node]
 6: 0xd4b26f [node]
 7: 0xd5f3a5 [node]
 8: v8::internal::JSObject::AddDataElement(v8::internal::Handle<v8::internal::JSObject>, unsigned int, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow) [node]
 9: v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::Object::StoreFromKeyed) [node]
10: v8::internal::Object::SetProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::LanguageMode, v8::internal::Object::StoreFromKeyed) [node]
11: v8::internal::Runtime_SetProperty(int, v8::internal::Object**, v8::internal::Isolate*) [node]
12: 0x275c37c842fd
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Older version does not allow to work with CLAHE. How can I solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions