Open cxbrooks opened 6 years ago
Edward wrote:
"The Random demo, if I select the dummy camera and have wifi turned off (not sure whether that is relevant) takes a very long time to preinitialize and initialize. Not sure why... Maybe related to the getResource() issues that you have encountered."
Disconnecting from the network and then running
java -classpath '.:./lib/*' ptolemy.vergil.VergilApplication ./ptolemy/actor/lib/jjs/modules/imageFilters/demo/ImageFilters/Random.xml
and then running jstack on the java pid shows that the process is hanging while trying to get discover the camera:
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.101-b13 mixed mode):
"webcam-discovery-service" BZ#35 daemon prio=1 os_prio=31 tid=0x00007fff4db24800 nid=0x10c2b in Object.wait() [0x000070000558d000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) at com.github.sarxos.webcam.WebcamDiscoveryService.run(WebcamDiscoveryService.java:257)
"Random" BZ#30 prio=1 os_prio=31 tid=0x00007fff4e8a3000 nid=0x13a77 in Object.wait() [0x00007000063ef000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) at java.lang.Thread.join(Thread.java:1245)
---end---
The sources are at https://github.com/sarxos/webcam-capture/blob/master/webcam-capture/src/main/java/com/github/sarxos/webcam/WebcamDiscoveryService.java
This looks like a bug the Webcam package, we would need to track it down there.
Note: the issue was created automatically with bugzilla2github tool
Original bug ID: BZ#546 From: @cxbrooks Reported version: unspecified CC: accessors-devel@terraswarm.org