Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXCEPTION_ACCESS_VIOLATION #329

Closed
GoogleCodeExporter opened this issue May 10, 2015 · 2 comments
Closed

EXCEPTION_ACCESS_VIOLATION #329

GoogleCodeExporter opened this issue May 10, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Duplicate

@GoogleCodeExporter
Copy link
Author

Thank you Sam.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant