You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using node-dv to look for barcodes on automatically acquired images (jpegs). As long as there are no recognised barcodes, the code (which, essentially, loops forever as files appear) will run without a problem over thousands of images.
However, on occasion I found that node was crashing out to the shell with no error message. Testing showed that this only happened when barcodes were detected; roughly speaking after around nine detections regardless of how many images were checked (although it would vary up or down a few).
This led me directly to 'ZXing::FindCode' in zxing.cc, specifically the 'NewBuffer' on line 266. Changing it to 'CopyBuffer' stops the crash, which I assume was down to a memory leak. I can now recognise hundreds of barcodes without an issue.
I realise that the C version of ZXing is in maintenance mode only, and therefore so is the barcode functionality of Node-DV. Again, just throwing this out there to see if it helps others in the same boat.
Uh oh!
There was an error while loading. Please reload this page.
I am using node-dv to look for barcodes on automatically acquired images (jpegs). As long as there are no recognised barcodes, the code (which, essentially, loops forever as files appear) will run without a problem over thousands of images.
However, on occasion I found that node was crashing out to the shell with no error message. Testing showed that this only happened when barcodes were detected; roughly speaking after around nine detections regardless of how many images were checked (although it would vary up or down a few).
This led me directly to 'ZXing::FindCode' in zxing.cc, specifically the 'NewBuffer' on line 266. Changing it to 'CopyBuffer' stops the crash, which I assume was down to a memory leak. I can now recognise hundreds of barcodes without an issue.
I realise that the C version of ZXing is in maintenance mode only, and therefore so is the barcode functionality of Node-DV. Again, just throwing this out there to see if it helps others in the same boat.
See this commit for the change:
Brigadier1-9@b2504d6
The text was updated successfully, but these errors were encountered: