[PC] Closing webcam crashes Alchemy

Report bugs and errors

[PC] Closing webcam crashes Alchemy

Postby yhancik on Wed, 22 Oct 2008 16:40:31 GMT

I got this twice yet, and it's obviously a problem with JMyron.

One of the logs :

Code: Select all
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x03191f6a, pid=4048, tid=3092
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b06 mixed mode, sharing)
# Problematic frame:
# C  [myron_ezcam.dll+0x1f6a]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x03108c00):  JavaThread "Thread-2" [_thread_in_native, id=3092]

siginfo: ExceptionCode=0xc0000005, reading address 0x06f91800

Registers:
EAX=0x06fc9c00, EBX=0x26c31e48, ECX=0x0000e100, EDX=0x00000000
ESP=0x0710f984, EBP=0x0710f98c, ESI=0x06f91800, EDI=0x06cf0048
EIP=0x03191f6a, EFLAGS=0x00010212

Top of Stack: (sp=0x0710f984)
0x0710f984:   03402138 00000000 0710f9c4 03191412
0x0710f994:   06cf0048 06f91800 00038400 00000001
0x0710f9a4:   032c2798 0710f98c 00000064 0710fb64
0x0710f9b4:   6d7d81c5 03b5adc0 00000280 00000000
0x0710f9c4:   0710f9cc 03191835 0710fa30 032f27d5
0x0710f9d4:   03108c00 26c31e48 0710fa30 26c31e48
0x0710f9e4:   03108c00 6d8a9c16 03108c00 00000006
0x0710f9f4:   00000004 032f121b 0092a2b0 03108cec

Instructions: (pc=0x03191f6a)
0x03191f5a:   00 00 00 75 15 c1 e9 02 83 e2 03 83 f9 08 72 2a
0x03191f6a:   f3 a5 ff 24 95 84 20 19 03 90 8b c7 ba 03 00 00


Stack: [0x070c0000,0x07110000),  sp=0x0710f984,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [myron_ezcam.dll+0x1f6a]
C  [myron_ezcam.dll+0x1412]
C  [myron_ezcam.dll+0x1835]
C  [JMyron.dll+0x27d5]
j  JMyron.JMyron.update()V+1
j  org.alchemy.affect.CameraColour$1.run()V+7
v  ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  JMyron.JMyron.native_update()V+0
j  JMyron.JMyron.update()V+1
j  org.alchemy.affect.CameraColour$1.run()V+7
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
=>0x03108c00 JavaThread "Thread-2" [_thread_in_native, id=3092]
  0x02c1a400 JavaThread "TimerQueue" daemon [_thread_blocked, id=3348]
  0x003b6400 JavaThread "DestroyJavaVM" [_thread_blocked, id=4012]
  0x03c91800 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3208]
  0x03c90800 JavaThread "AWT-Shutdown" [_thread_blocked, id=1752]
  0x02f60800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2944]
  0x02c1ec00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3044]
  0x02b4cc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3648]
  0x02b48000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2716]
  0x02b46c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2912]
  0x02b46000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2872]
  0x02b41800 JavaThread "Finalizer" daemon [_thread_blocked, id=2812]
  0x02b3d400 JavaThread "Reference Handler" daemon [_thread_blocked, id=3848]

Other Threads:
  0x02b34000 VMThread [id=2728]
  0x02b4e400 WatcherThread [id=3688]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None



I said "webcam", but it's actually picking my TV tuner card (as it's just another Video Capture Device). That might be linked (or not).
It would be interesting at some point to be able to chose which "webcam" we'd like to use :)
yhancik
 
Posts: 2
Joined: Wed, 22 Oct 2008 16:32:08 GMT

Re: [PC] Closing webcam crashes Alchemy

Postby Karl DD on Wed, 22 Oct 2008 18:31:16 GMT

Unfortunately this is no surprise, JMyron is buggy and ageing.
There is no way to detect if a device is available, let alone choose between them.
People using the module without a webcam attached will crash out of Alchemy.

I am just about ready to remove that module... cry out if you actually use it?

Unfortunately there is no real cross platform java video library that works out of the box... please correct me if I am wrong :(
User avatar
Karl DD
Site Admin
 
Posts: 158
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Tokyo, Japan

Re: [PC] Closing webcam crashes Alchemy

Postby yhancik on Sun, 26 Oct 2008 16:57:42 GMT

Well I don't use it anyway ;)

Have you had a look at what they're using in Processing (since it's in Java too) ?
maybe, but really I don't know, maybe it's a trail to explore ;)
yhancik
 
Posts: 2
Joined: Wed, 22 Oct 2008 16:32:08 GMT

Re: [PC] Closing webcam crashes Alchemy

Postby Karl DD on Wed, 29 Oct 2008 00:33:49 GMT

In Processing they use Quicktime. So on a PC it is quite difficult to get running.
There are a few options, but most of them require you to install extra software.
User avatar
Karl DD
Site Admin
 
Posts: 158
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Tokyo, Japan


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron