mdyusuf000 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

EXCEPTION_ACCESS_VIOLATION #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download file from url on local drive, return the path as string
2. Load image as IplImage with cvLoadImage()
3. Do this multiple times concurrently, in many threads at the same time

What is the expected output? What do you see instead?
I expect the program not to crash, to process all the images and delete them 
after.

What version of the product are you using? On what operating system?
OpenCV 2.4.5, JavaCV 0.5, Win7 x86

Please provide any additional information below.
I am writing a web crawler that will process images. I attempt to download 
every single image and than process it with javacv (comparing it to a sample 
image, checking it's resolution, etc). I have written a thread, that will start 
another thread for every possible candidate (a maximum of 10 image processing 
threads at the same time). At some point, the EXCEPTION_ACCESS_VIOLATION pops 
in from nowhere. I've attached the log file.
Any help would be appreciated asap.
Thank you.

Original issue reported on code.google.com by molnar.l...@gmail.com on 17 Jun 2013 at 11:25

Attachments:

GoogleCodeExporter commented 9 years ago
OpenCV isn't very reliable or secure. You should be using ImageIO to load 
arbitrary images from the net.

BTW, it's a known issue #248 that highgui doesn't work well with threads on 
Windows. If this is something that is important to you, you should report that 
upstream to the OpenCV guys:
http://code.opencv.org/projects/opencv/issues

Original comment by samuel.a...@gmail.com on 18 Jun 2013 at 1:39

GoogleCodeExporter commented 9 years ago
Thank you Sam.

Original comment by molnar.l...@gmail.com on 18 Jun 2013 at 11:08