-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Applet - No clean shutdown, force wait 3 seconds to use #65
Comments
Hi David, Thank you for reporting this issue. I will investigate this problem and provide fix when ready. Take care! |
David, Can you please try version 0.3.10-RC1 ?? "No camera found" error was caused probably by incorrectly closed device. I tried it on my PC after all changes and I got clean exception. Device has closed properly, but I would like you to verify the patch. In terms of this issue. I would like to add special check in the code which will block webcam execution while it is already running in separate process. However I need to figure out the best mechanism for doing this. Currently this is controlled in native layer, which can cause unexpected behaviors etc. |
I try 0.3.10-RC1, exit exception change, but same error "QuickCam for Notebooks Deluxe 0 no image available
|
Can you please provide detailed steps of how I could reproduce this error? I've tried running the same applet in separate window, but exception was different. |
IE 9.0 and windows 7 64 bits |
Ok, I will take a look on this. Thank you! |
Just FYI, I'm still working on this issue, didn't forget about it :) |
Hi Any news on this issue? It's happening to me as well Thanks |
BTW, in the example you use "Webcam.setDriver" but it says is not thread safe? |
Hi, Sorry for no response for some time but I had to test final solution before I comment. The problem described in this issue arose from the applet lifecycle which is a little bit different than a classic application, however it should work now I believe. I tested this solution with success using Firefox on my 64-bit Linux Ubuntu 12.04. I'm not able to perform tests on Windows currently (had it reinstalled few days ago), so I would appreciate if someone can verify. Solution is composed of two factors:
Point 1 prevents from having problems when applet is restarted, and 2 do the same for reload operation (see related stackoverflow question). The final applet code embedded in HTML should look like this: <applet codebase="." archive="applet.jar" code="MyClass.class" width="320" height="240" alt="Applet">
<param name="separate_jvm" value="true" />
</applet> Webcam Capture Applet example has been updated. Please let me know if this change fixed the issue. Newest changes are available in SNAPSHOT only. I do not want to release new version before it is tested on Windows first. Jar with the fix: webcam-capture-0.3.10-20131121.093736-20.jar |
In regards to the |
Oh, and by the way, I was not able to run this in the applet simulator when executing "reload" operation (all other operations works fine). The problem is that applet GUI does not appear, don't know why, but from the logs I see that underlying webcams are running well, so this must be some other issue I guess. |
I use example webcam-capture-applet and when move to other page (applet destroy), java console show an exception, and if try to use applet in same navigator, before jvm close (2,3 seconds) no camera found.
The text was updated successfully, but these errors were encountered: