EXCEPTION_ACCESS_VIOLATION in Windows XP

136 views
Skip to first unread message

Oscar Valtueña

unread,
Mar 17, 2014, 7:03:07 AM3/17/14
to usb4...@googlegroups.com
Hello,

I'm Oscar, and I'm new to this group.

We're using usb4java in different windows system, but in Windows XP (using java 1.6), we've check that sometimes usb4java crashes with an "Exception access violation"... The following is part of the hs_err file generated by java in the crash:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6b60b256, pid=832, tid=192
#

Stack: [0x2c4d0000,0x2c520000],  sp=0x2c51f390,  free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libusb-1.0.dll+0xb256]  usbi_read+0x34fe
C  [libusb-1.0.dll+0xb69e]  usbi_read+0x3946
C  [libusb-1.0.dll+0xce3d]  usbi_read+0x50e5
C  [libusb-1.0.dll+0x16f0]  libusb_get_device_list+0x70
C  [libusb4java.dll+0x1599]  Java_de_ailis_usb4java_libusb_LibUsb_getDeviceList+0x60
j  de.ailis.usb4java.libusb.LibUsb.getDeviceList(Lde/ailis/usb4java/libusb/Context;Lde/ailis/usb4java/libusb/DeviceList;)I+0
j  de.ailis.usb4java.DeviceManager.updateDeviceList()V+21
j  de.ailis.usb4java.DeviceManager.scan(Ljavax/usb/UsbHub;)V+1
j  de.ailis.usb4java.DeviceManager.scan()V+5
j  de.ailis.usb4java.DeviceManager$1.run()V+22
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [jvm.dll+0x10e3bd]
V  [jvm.dll+0x1a5711]
V  [jvm.dll+0x10e571]
V  [jvm.dll+0x10e5cb]
V  [jvm.dll+0xc07e9]
V  [jvm.dll+0x12dce4]
V  [jvm.dll+0x155fac]
C  [msvcr71.dll+0x9565]  endthreadex+0xa0
C  [kernel32.dll+0xb713]  GetModuleFileNameA+0x1b4

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  de.ailis.usb4java.libusb.LibUsb.getDeviceList(Lde/ailis/usb4java/libusb/Context;Lde/ailis/usb4java/libusb/DeviceList;)I+0
j  de.ailis.usb4java.DeviceManager.updateDeviceList()V+21
j  de.ailis.usb4java.DeviceManager.scan(Ljavax/usb/UsbHub;)V+1
j  de.ailis.usb4java.DeviceManager.scan()V+5
j  de.ailis.usb4java.DeviceManager$1.run()V+22
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub


Does anybody knows the solution of this problem?

Thanks and regards

Oscar .....................................................

Prashanth Kumar

unread,
Mar 17, 2014, 12:48:59 PM3/17/14
to usb4...@googlegroups.com
I have been playing around with this jar files for a few days now. Have not managed to get it working to read from usb magnetic card reader.

Here are some of the things i did along the way based on information I found on the net
1. First check the properties file. Remove any extra line feed or trailing white space. There should be only one line in the file
2. Upgraded to latest jar files (SNAPSHOT)
3. Moved to high level api

Well it took away my EXCEPTION_ACCESS_VIOLATION but I am still struggling. Right now on windows( win 7 64 bit) I am getting USB error 7 Operation time out
and on Ubuntu I am getting USB error 6 : unable to claim interface: Resource busy

Oscar Valtueña

unread,
Mar 19, 2014, 1:30:37 PM3/19/14
to usb4...@googlegroups.com
I've tested with the last 1.2.0-SNAPSHOT, and it seems to work well in Windows XP. (I haven't check it in other systems by the moment)
Reply all
Reply to author
Forward
0 new messages