Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv.js: Getting (index):413 Uncaught (in promise) abort("OOM"). Build with -s ASSERTIONS=1 for more info.

Hello,

I am getting this error from opencvjs and line number: 24 (we build the opencv.js as mentioned in Opencv document).

Could you please help to resolve this issue. Is there any way to catch this "OOM" and resume the execution smoother.

I used cv.calcOpticalFlowPyrLK(oldGray, frameGray, p0, p1, st, err, winSize, maxLevel, criteria); this code in my javascript, and handled this function insdie TRY and CATCH, but still getting OOM abort error as attached screenshot.

Below code runs well for 1 to 2 minutes and then start throwing OOM abort, so couldn't call any function inside opencvjs.

(For reference: https://github.com/opencv/opencv/issues/15500 )

Try{
//some code written here, executes for few mins and then getting this OOM abort error

cv.calcOpticalFlowPyrLK(oldGray, frameGray, p0, p1, st, err, winSize, maxLevel, criteria);

}catch (err) {
        console.log("Handle error===",err);
}

Opencv.js: Getting (index):413 Uncaught (in promise) abort("OOM"). Build with -s ASSERTIONS=1 for more info.

Hello,

I am getting this error from opencvjs and line number: 24 (we build the opencv.js as mentioned in Opencv document).

Could you please help to resolve this issue. Is there any way to catch this "OOM" and resume the execution smoother.

I used cv.calcOpticalFlowPyrLK(oldGray, frameGray, p0, p1, st, err, winSize, maxLevel, criteria); this code in my javascript, and handled this function insdie TRY and CATCH, but still getting OOM abort error as attached screenshot.

Below code runs well for 1 to 2 minutes and then start throwing OOM abort, so couldn't call any function inside opencvjs.

(For reference: https://github.com/opencv/opencv/issues/15500 )

Try{
//some code written here, executes for few mins and then getting this OOM abort error

cv.calcOpticalFlowPyrLK(oldGray, frameGray, p0, p1, st, err, winSize, maxLevel, criteria);

}catch (err) {
        console.log("Handle error===",err);
}

C:\fakepath\64662855-e1414c00-d417-11e9-9109-66b3f6b436c2.jpg