Giter Site home page Giter Site logo

jmtpe's People

Stargazers

Leonardo D. M. avatar Overwatch avatar Ilya Zyuzin avatar  avatar Elia Harmouche avatar Artyom avatar

Watchers

James Cloos avatar

jmtpe's Issues

EXCEPTION_ACCESS_VIOLATION In Windows 10

The library was working without any problem, buy recentrly in windows 10 64bits throw this error when I try to write a file to an android smartphone

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x171becbd, pid=1268, tid=3464

JRE version: Java(TM) SE Runtime Environment (8.0_73-b02) (build 1.8.0_73-b02)
Java VM: Java HotSpot(TM) Client VM (25.73-b02 mixed mode, sharing windows-x86 )
Problematic frame:
C [PortableDeviceApi.dll+0x2ecbd]

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.

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

Current thread (0x15bc5c00): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3464, stack(0x16c20000,0x16c70000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x175949c0, ECX=0x175949f8, EDX=0x1758ef20
ESP=0x16c6e024, EBP=0x16c6e124, ESI=0x00000000, EDI=0x00000000
EIP=0x171becbd, EFLAGS=0x00010246

Top of Stack: (sp=0x16c6e024)
0x16c6e024: 902bcf03 15bc8eb4 19805f50 15bc5d40
0x16c6e034: 00000000 175949c0 0000000a 00000000
0x16c6e044: 175a5524 f0422a9c 44405dc8 f25dbdb5
0x16c6e054: 8a653588 000003e9 171b004c 00000048
0x16c6e064: 00000000 197e4038 00000000 f0422a9c
0x16c6e074: 44405dc8 f25dbdb5 8a653588 000003ea
0x16c6e084: 76578856 00000013 00000000 00000004
0x16c6e094: 00000000 ef1e43dd 4341a9ed 6118cc8b

Instructions: (pc=0x171becbd)
0x171bec9d: ff 70 14 ba 00 bf 19 17 ff 70 10 6a 2b 59 e8 38
0x171becad: 00 ff ff 85 ff 78 12 8b 85 1c ff ff ff 8d 4b 38
0x171becbd: ff 30 6a 00 e8 8d f0 00 00 6a 01 68 f0 bc 19 17
0x171beccd: 57 8d 4b 38 e8 50 de 00 00 c6 45 fc 00 8b 85 20

Register to memory mapping:

EAX=0x00000000 is an unknown value
EBX=0x175949c0 is an unknown value
ECX=0x175949f8 is an unknown value
EDX=0x1758ef20 is an unknown value
ESP=0x16c6e024 is pointing into the stack for thread: 0x15bc5c00
EBP=0x16c6e124 is pointing into the stack for thread: 0x15bc5c00
ESI=0x00000000 is an unknown value
EDI=0x00000000 is an unknown value

Stack: [0x16c20000,0x16c70000], sp=0x16c6e024, free space=312k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [PortableDeviceApi.dll+0x2ecbd]
C [jmtp.dll+0x2cd0] Java_jmtp_PortableDeviceContentImplWin32_createObjectWithPropertiesAndData+0x210
j jmtp.PortableDeviceContentImplWin32.createObjectWithPropertiesAndData(Ljmtp/PortableDeviceValuesImplWin32;Ljava/io/File;)Ljava/lang/String;+0
j jmtp.AbstractPortableDeviceContainerImplWin32.addAudioObject(Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/math/BigInteger;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;I)Ljmtp/PortableDeviceAudioObject;+170
j jmtp.AbstractPortableDeviceContainerImplWin32.addAudioObject(Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/math/BigInteger;)Ljmtp/PortableDeviceAudioObject;+10
j capdroid.busca_archivo.clases.Dispositivo.sendFile2Device(Ljava/lang/String;)I+217
j capdroid.busca_archivo.SendArchivoFrame.btnEnviarArchivoActionPerformed(Ljava/awt/event/ActionEvent;)V+36
j capdroid.busca_archivo.SendArchivoFrame.access$600(Lcapdroid/busca_archivo/SendArchivoFrame;Ljava/awt/event/ActionEvent;)V+2
j capdroid.busca_archivo.SendArchivoFrame$6.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+83
j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+34
j javax.swing.DefaultButtonModel.setPressed(Z)V+117
j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+589
j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
J 509 C1 java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V (350 bytes) @ 0x025e312c [0x025e2af0+0x63c]
j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+155
j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+41
j java.awt.EventQueue.access$500(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
j java.awt.EventQueue$3.run()Ljava/lang/Void;+32
j java.awt.EventQueue$3.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
V [jvm.dll+0x158bf5]
V [jvm.dll+0x21e0be]
V [jvm.dll+0x158c8e]
V [jvm.dll+0x10958f]
C [java.dll+0x102f]
J 523 C1 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object; (22 bytes) @ 0x025e6a40 [0x025e6940+0x100]
j java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+6
j java.awt.EventQueue$4.run()Ljava/lang/Void;+11
j java.awt.EventQueue$4.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
V [jvm.dll+0x158bf5]
V [jvm.dll+0x21e0be]
V [jvm.dll+0x158c8e]
V [jvm.dll+0x10958f]
C [java.dll+0x102f]
J 523 C1 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object; (22 bytes) @ 0x025e6a40 [0x025e6940+0x100]
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
J 462 C1 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V (295 bytes) @ 0x025d60d4 [0x025d5a40+0x694]
j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
V [jvm.dll+0x158bf5]
V [jvm.dll+0x21e0be]
V [jvm.dll+0x158c8e]
V [jvm.dll+0x158e16]
V [jvm.dll+0x158e87]
V [jvm.dll+0xfd68f]
V [jvm.dll+0x17c03c]
V [jvm.dll+0x17c12a]
V [jvm.dll+0x1c0636]
C [msvcr100.dll+0x5c556]
C [msvcr100.dll+0x5c600]
C [KERNEL32.DLL+0x18744]
C [ntdll.dll+0x6582d]
C [ntdll.dll+0x657fd]
C 0x00000000

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jmtp.PortableDeviceContentImplWin32.createObjectWithPropertiesAndData(Ljmtp/PortableDeviceValuesImplWin32;Ljava/io/File;)Ljava/lang/String;+0
j jmtp.AbstractPortableDeviceContainerImplWin32.addAudioObject(Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/math/BigInteger;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;I)Ljmtp/PortableDeviceAudioObject;+170
j jmtp.AbstractPortableDeviceContainerImplWin32.addAudioObject(Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/math/BigInteger;)Ljmtp/PortableDeviceAudioObject;+10
j capdroid.busca_archivo.clases.Dispositivo.sendFile2Device(Ljava/lang/String;)I+217
j capdroid.busca_archivo.SendArchivoFrame.btnEnviarArchivoActionPerformed(Ljava/awt/event/ActionEvent;)V+36
j capdroid.busca_archivo.SendArchivoFrame.access$600(Lcapdroid/busca_archivo/SendArchivoFrame;Ljava/awt/event/ActionEvent;)V+2
j capdroid.busca_archivo.SendArchivoFrame$6.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+83
j javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+34
j javax.swing.DefaultButtonModel.setPressed(Z)V+117
j javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+589
j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
J 509 C1 java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V (350 bytes) @ 0x025e312c [0x025e2af0+0x63c]
j java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+155
j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+41
j java.awt.EventQueue.access$500(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
j java.awt.EventQueue$3.run()Ljava/lang/Void;+32
j java.awt.EventQueue$3.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
J 552 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x025ebbc7 [0x025ebb60+0x67]
J 523 C1 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object; (22 bytes) @ 0x025e6a40 [0x025e6940+0x100]
j java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+6
j java.awt.EventQueue$4.run()Ljava/lang/Void;+11
j java.awt.EventQueue$4.run()Ljava/lang/Object;+1
v ~StubRoutines::call_stub
J 552 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0x025ebbc7 [0x025ebb60+0x67]
J 523 C1 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object; (22 bytes) @ 0x025e6a40 [0x025e6940+0x100]
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
J 462 C1 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V (295 bytes) @ 0x025d60d4 [0x025d5a40+0x694]
j java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
0x15bc4000 JavaThread "Swing-Shell" daemon [_thread_blocked, id=11684, stack(0x176b0000,0x17700000)]
0x15bc6c00 JavaThread "Thread-4" [_thread_blocked, id=5824, stack(0x18e10000,0x18e60000)]
0x15bc6800 JavaThread "TimerQueue" daemon [_thread_blocked, id=3548, stack(0x18640000,0x18690000)]
0x15bc4800 JavaThread "DestroyJavaVM" [_thread_blocked, id=920, stack(0x00ce0000,0x00d30000)]
=>0x15bc5c00 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3464, stack(0x16c20000,0x16c70000)]
0x15bc3c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=4996, stack(0x160a0000,0x160f0000)]
0x15bc7400 JavaThread "AWT-Shutdown" [_thread_blocked, id=12284, stack(0x16010000,0x16060000)]
0x15bc5000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4740, stack(0x15d50000,0x15da0000)]
0x023ec400 JavaThread "Service Thread" daemon [_thread_blocked, id=4600, stack(0x15a30000,0x15a80000)]
0x023d9400 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=3588, stack(0x159a0000,0x159f0000)]
0x023d8000 JavaThread "Attach Listener" daemon [_thread_blocked, id=2156, stack(0x15910000,0x15960000)]
0x023d5c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9900, stack(0x15880000,0x158d0000)]
0x023c8000 JavaThread "Finalizer" daemon [_thread_blocked, id=6220, stack(0x15140000,0x15190000)]
0x023c6c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2288, stack(0x150b0000,0x15100000)]

Other Threads:
0x023c2800 VMThread [stack: 0x04590000,0x045e0000] [id=3132]
0x0240dc00 WatcherThread [stack: 0x15ac0000,0x15b10000] [id=2960]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
def new generation total 4928K, used 665K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 3% used [0x04600000, 0x04627e38, 0x04a50000)
from space 512K, 98% used [0x04a50000, 0x04ace890, 0x04ad0000)
to space 512K, 0% used [0x04ad0000, 0x04ad0000, 0x04b50000)
tenured generation total 10944K, used 5221K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 47% used [0x09b50000, 0x0a069670, 0x0a069800, 0x0a600000)
Metaspace used 1620K, capacity 2761K, committed 2880K, reserved 4480K

Card table byte_map: [0x044a0000,0x04530000] byte_map_base: 0x0447d000

Polling page: 0x00490000

CodeCache: size=32768Kb used=1482Kb max_used=1482Kb free=31285Kb
bounds [0x024a0000, 0x02618000, 0x044a0000]
total_blobs=871 nmethods=648 adapters=153
compilation: enabled

Compilation events (10 events):
Event: 9.799 Thread 0x023d9400 645 ! java.lang.ref.Finalizer::runFinalizer (62 bytes)
Event: 9.800 Thread 0x023d9400 nmethod 645 0x02611b48 code [0x02611c60, 0x02611f78]
Event: 9.800 Thread 0x023d9400 646 java.lang.ref.Finalizer::hasBeenFinalized (14 bytes)
Event: 9.800 Thread 0x023d9400 nmethod 646 0x02612108 code [0x02612200, 0x02612290]
Event: 9.800 Thread 0x023d9400 647 ! java.lang.ref.Finalizer::remove (94 bytes)
Event: 9.801 Thread 0x023d9400 nmethod 647 0x026122c8 code [0x026123d0, 0x02612670]
Event: 9.801 Thread 0x023d9400 648 java.lang.System$2::invokeFinalize (5 bytes)
Event: 9.801 Thread 0x023d9400 nmethod 648 0x02612788 code [0x02612890, 0x0261292c]
Event: 9.801 Thread 0x023d9400 649 java.util.HashSet::remove (20 bytes)
Event: 9.801 Thread 0x023d9400 nmethod 649 0x02612988 code [0x02612a90, 0x02612b3c]

GC Heap History (8 events):
Event: 0.502 GC heap before
{Heap before GC invocations=0 (full 0):
def new generation total 4928K, used 4416K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 100% used [0x04600000, 0x04a50000, 0x04a50000)
from space 512K, 0% used [0x04a50000, 0x04a50000, 0x04ad0000)
to space 512K, 0% used [0x04ad0000, 0x04ad0000, 0x04b50000)
tenured generation total 10944K, used 0K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 0% used [0x09b50000, 0x09b50000, 0x09b50200, 0x0a600000)
Metaspace used 577K, capacity 2508K, committed 2624K, reserved 4480K
Event: 0.509 GC heap after
Heap after GC invocations=1 (full 0):
def new generation total 4928K, used 512K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 0% used [0x04600000, 0x04600000, 0x04a50000)
from space 512K, 100% used [0x04ad0000, 0x04b50000, 0x04b50000)
to space 512K, 0% used [0x04a50000, 0x04a50000, 0x04ad0000)
tenured generation total 10944K, used 1139K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 10% used [0x09b50000, 0x09c6ced0, 0x09c6d000, 0x0a600000)
Metaspace used 577K, capacity 2508K, committed 2624K, reserved 4480K
}
Event: 1.995 GC heap before
{Heap before GC invocations=1 (full 0):
def new generation total 4928K, used 3962K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 78% used [0x04600000, 0x0495e9a0, 0x04a50000)
from space 512K, 100% used [0x04ad0000, 0x04b50000, 0x04b50000)
to space 512K, 0% used [0x04a50000, 0x04a50000, 0x04ad0000)
tenured generation total 10944K, used 1139K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 10% used [0x09b50000, 0x09c6ced0, 0x09c6d000, 0x0a600000)
Metaspace used 1037K, capacity 2746K, committed 2752K, reserved 4480K
Event: 2.000 GC heap after
Heap after GC invocations=2 (full 0):
def new generation total 4928K, used 512K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 0% used [0x04600000, 0x04600000, 0x04a50000)
from space 512K, 100% used [0x04a50000, 0x04ad0000, 0x04ad0000)
to space 512K, 0% used [0x04ad0000, 0x04ad0000, 0x04b50000)
tenured generation total 10944K, used 2376K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 21% used [0x09b50000, 0x09da2128, 0x09da2200, 0x0a600000)
Metaspace used 1037K, capacity 2746K, committed 2752K, reserved 4480K
}
Event: 4.022 GC heap before
{Heap before GC invocations=2 (full 0):
def new generation total 4928K, used 4928K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 100% used [0x04600000, 0x04a50000, 0x04a50000)
from space 512K, 100% used [0x04a50000, 0x04ad0000, 0x04ad0000)
to space 512K, 0% used [0x04ad0000, 0x04ad0000, 0x04b50000)
tenured generation total 10944K, used 2376K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 21% used [0x09b50000, 0x09da2128, 0x09da2200, 0x0a600000)
Metaspace used 1590K, capacity 2761K, committed 2880K, reserved 4480K
Event: 4.030 GC heap after
Heap after GC invocations=3 (full 0):
def new generation total 4928K, used 512K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 0% used [0x04600000, 0x04600000, 0x04a50000)
from space 512K, 100% used [0x04ad0000, 0x04b50000, 0x04b50000)
to space 512K, 0% used [0x04a50000, 0x04a50000, 0x04ad0000)
tenured generation total 10944K, used 4751K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 43% used [0x09b50000, 0x09ff3f38, 0x09ff4000, 0x0a600000)
Metaspace used 1590K, capacity 2761K, committed 2880K, reserved 4480K
}
Event: 9.788 GC heap before
{Heap before GC invocations=3 (full 0):
def new generation total 4928K, used 4928K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 100% used [0x04600000, 0x04a50000, 0x04a50000)
from space 512K, 100% used [0x04ad0000, 0x04b50000, 0x04b50000)
to space 512K, 0% used [0x04a50000, 0x04a50000, 0x04ad0000)
tenured generation total 10944K, used 4751K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 43% used [0x09b50000, 0x09ff3f38, 0x09ff4000, 0x0a600000)
Metaspace used 1616K, capacity 2761K, committed 2880K, reserved 4480K
Event: 9.792 GC heap after
Heap after GC invocations=4 (full 0):
def new generation total 4928K, used 506K [0x04600000, 0x04b50000, 0x09b50000)
eden space 4416K, 0% used [0x04600000, 0x04600000, 0x04a50000)
from space 512K, 98% used [0x04a50000, 0x04ace890, 0x04ad0000)
to space 512K, 0% used [0x04ad0000, 0x04ad0000, 0x04b50000)
tenured generation total 10944K, used 5221K [0x09b50000, 0x0a600000, 0x14600000)
the space 10944K, 47% used [0x09b50000, 0x0a069670, 0x0a069800, 0x0a600000)
Metaspace used 1616K, capacity 2761K, committed 2880K, reserved 4480K
}

Deoptimization events (0 events):
No events

Internal exceptions (10 events):
Event: 0.047 Thread 0x006fc400 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x0460c1a0) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vM”õ#­Ý§?
Event: 0.047 Thread 0x006fc400 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x0460c470) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\jni.cpp, l`á¤l»´¾?
Event: 0.120 Thread 0x006fc400 Exception <a 'java/security/PrivilegedActionException'> (0x046b92b0) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.120 Thread 0x006fc400 Exception <a 'java/security/PrivilegedActionException'> (0x046b94b0) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.122 Thread 0x006fc400 Exception <a 'java/security/PrivilegedActionException'> (0x046bd538) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.122 Thread 0x006fc400 Exception <a 'java/security/PrivilegedActionException'> (0x046bd738) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.131 Thread 0x006fc400 Exception <a 'java/io/FileNotFoundException'> (0x046c3770) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.181 Thread 0x006fc400 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x0477e950) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
Event: 0.183 Thread 0x006fc400 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x0478ab48) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
Event: 0.207 Thread 0x006fc400 Exception <a 'java/io/FileNotFoundException'> (0x04813030) thrown at [D:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u73\6086\hotspot\src\share\vm\prims\jni.cpp, line 709]

Events (10 events):
Event: 8.631 loading class javax/swing/table/DefaultTableCellRenderer$UIResource
Event: 8.631 loading class javax/swing/table/DefaultTableCellRenderer$UIResource done
Event: 9.788 Executing VM operation: GenCollectForAllocation
Event: 9.792 Executing VM operation: GenCollectForAllocation done
Event: 9.794 Executing VM operation: RevokeBias
Event: 9.794 Executing VM operation: RevokeBias done
Event: 9.899 loading class java/util/regex/Pattern$Begin
Event: 9.899 loading class java/util/regex/Pattern$Begin done
Event: 9.899 loading class java/util/regex/Pattern$First
Event: 9.899 loading class java/util/regex/Pattern$First done

Dynamic libraries:
0x002e0000 - 0x00313000 C:\Program Files (x86)\Java\jdk1.8.0_73\bin\java.exe
0x77ad0000 - 0x77c5e000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x767c0000 - 0x76890000 C:\WINDOWS\System32\KERNEL32.DLL
0x531f0000 - 0x5321f000 C:\Program Files\AVAST Software\Avast\aswhookx.dll
0x76490000 - 0x76652000 C:\WINDOWS\System32\KERNELBASE.dll
0x6aeb0000 - 0x6af43000 C:\WINDOWS\SYSTEM32\apphelp.dll
0x74820000 - 0x74897000 C:\WINDOWS\System32\ADVAPI32.dll
0x74760000 - 0x7481d000 C:\WINDOWS\System32\msvcrt.dll
0x762c0000 - 0x76301000 C:\WINDOWS\System32\sechost.dll
0x74690000 - 0x74750000 C:\WINDOWS\System32\RPCRT4.dll
0x745a0000 - 0x745c0000 C:\WINDOWS\System32\SspiCli.dll
0x74590000 - 0x7459a000 C:\WINDOWS\System32\CRYPTBASE.dll
0x77890000 - 0x778e7000 C:\WINDOWS\System32\bcryptPrimitives.dll
0x778f0000 - 0x77a2c000 C:\WINDOWS\System32\USER32.dll
0x76470000 - 0x76486000 C:\WINDOWS\System32\win32u.dll
0x77050000 - 0x77071000 C:\WINDOWS\System32\GDI32.dll
0x76310000 - 0x76468000 C:\WINDOWS\System32\gdi32full.dll
0x77110000 - 0x77189000 C:\WINDOWS\System32\msvcp_win.dll
0x776b0000 - 0x777c8000 C:\WINDOWS\System32\ucrtbase.dll
0x722c0000 - 0x724ce000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.15063.483_none_6dad63fefc436da8\COMCTL32.dll
0x77460000 - 0x77698000 C:\WINDOWS\System32\combase.dll
0x74660000 - 0x74685000 C:\WINDOWS\System32\IMM32.DLL
0x78a00000 - 0x78abf000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\msvcr100.dll
0x6cb80000 - 0x6cf48000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\client\jvm.dll
0x776a0000 - 0x776a6000 C:\WINDOWS\System32\PSAPI.DLL
0x74040000 - 0x74048000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x76a50000 - 0x76ab7000 C:\WINDOWS\System32\WS2_32.dll
0x6c790000 - 0x6c7b4000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x74580000 - 0x74588000 C:\WINDOWS\SYSTEM32\VERSION.dll
0x6c760000 - 0x6c783000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
0x76280000 - 0x762b9000 C:\WINDOWS\System32\cfgmgr32.dll
0x6fe90000 - 0x6fe9c000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\verify.dll
0x6d030000 - 0x6d051000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\java.dll
0x6fb00000 - 0x6fb13000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\zip.dll
0x74f30000 - 0x76278000 C:\WINDOWS\System32\SHELL32.dll
0x745c0000 - 0x7464c000 C:\WINDOWS\System32\shcore.dll
0x76ac0000 - 0x77044000 C:\WINDOWS\System32\windows.storage.dll
0x777d0000 - 0x77815000 C:\WINDOWS\System32\shlwapi.dll
0x74750000 - 0x7475e000 C:\WINDOWS\System32\kernel.appcore.dll
0x769a0000 - 0x769e5000 C:\WINDOWS\System32\powrprof.dll
0x768a0000 - 0x768b0000 C:\WINDOWS\System32\profapi.dll
0x6c5b0000 - 0x6c6f5000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\awt.dll
0x77a30000 - 0x77ac6000 C:\WINDOWS\System32\OLEAUT32.dll
0x6d810000 - 0x6d833000 C:\WINDOWS\system32\DWMAPI.DLL
0x72230000 - 0x722a8000 C:\WINDOWS\system32\uxtheme.dll
0x77190000 - 0x772d6000 C:\WINDOWS\System32\MSCTF.dll
0x766c0000 - 0x767b3000 C:\WINDOWS\System32\ole32.dll
0x6ca20000 - 0x6ca59000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\fontmanager.dll
0x6f010000 - 0x6f026000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\net.dll
0x72a20000 - 0x72a6e000 C:\WINDOWS\system32\mswsock.dll
0x6f280000 - 0x6f28f000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\nio.dll
0x70480000 - 0x704b0000 C:\Program Files (x86)\Java\jdk1.8.0_73\jre\bin\t2k.dll
0x009a0000 - 0x009b1000 C:\Users\Pedro Guerrero\Desktop\jmtp\jmtp.dll
0x698e0000 - 0x6994c000 C:\WINDOWS\SYSTEM32\MSVCP140.dll
0x698c0000 - 0x698d4000 C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll
0x748f0000 - 0x74973000 C:\WINDOWS\System32\clbcatq.dll
0x17190000 - 0x17213000 C:\Windows\System32\PortableDeviceApi.dll
0x74980000 - 0x74d9a000 C:\WINDOWS\System32\SETUPAPI.dll
0x6f590000 - 0x6f5b2000 C:\WINDOWS\System32\DEVOBJ.dll
0x151d0000 - 0x151f8000 C:\Windows\System32\PortableDeviceTypes.dll
0x70a90000 - 0x70bf4000 C:\Windows\System32\PROPSYS.dll
0x748a0000 - 0x748e4000 C:\WINDOWS\System32\WINTRUST.dll
0x77820000 - 0x7782e000 C:\WINDOWS\System32\MSASN1.dll
0x772e0000 - 0x7745d000 C:\WINDOWS\System32\CRYPT32.dll
0x5d940000 - 0x5d9a7000 C:\WINDOWS\System32\TextInputFramework.dll
0x5d680000 - 0x5d8a7000 C:\WINDOWS\System32\CoreUIComponents.dll
0x5d8b0000 - 0x5d93f000 C:\WINDOWS\System32\CoreMessaging.dll
0x6f640000 - 0x6f668000 C:\WINDOWS\SYSTEM32\ntmarta.dll
0x6b0f0000 - 0x6b1c1000 C:\WINDOWS\SYSTEM32\wintypes.dll
0x5d670000 - 0x5d680000 C:\WINDOWS\SYSTEM32\usermgrcli.dll
0x6c1e0000 - 0x6c352000 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
0x6bcd0000 - 0x6bd13000 C:\WINDOWS\system32\dataexchange.dll
0x6d130000 - 0x6d382000 C:\WINDOWS\system32\d3d11.dll
0x6bbe0000 - 0x6bccb000 C:\WINDOWS\system32\dcomp.dll
0x6d0a0000 - 0x6d12a000 C:\WINDOWS\system32\dxgi.dll
0x6baa0000 - 0x6bbd6000 C:\WINDOWS\system32\twinapi.appcore.dll
0x73680000 - 0x73698000 C:\WINDOWS\system32\bcrypt.dll
0x6bd20000 - 0x6bdae000 C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.15063.413_none_55bc94a37c2a2854\comctl32.dll
0x17750000 - 0x17874000 C:\WINDOWS\system32\NetworkExplorer.dll
0x61040000 - 0x612b8000 C:\Windows\System32\OneCoreUAPCommonProxyStub.dll
0x64bb0000 - 0x64bf7000 C:\Windows\System32\thumbcache.dll
0x6ad80000 - 0x6ad96000 C:\WINDOWS\SYSTEM32\MPR.dll
0x189f0000 - 0x189f9000 C:\WINDOWS\System32\drprov.dll
0x724d0000 - 0x72512000 C:\WINDOWS\System32\WINSTA.dll
0x4b6c0000 - 0x4b6d2000 C:\WINDOWS\System32\ntlanman.dll
0x69b00000 - 0x69b1a000 C:\WINDOWS\System32\davclnt.dll
0x6ad60000 - 0x6ad6a000 C:\WINDOWS\System32\DAVHLPR.dll
0x72220000 - 0x72230000 C:\WINDOWS\System32\wkscli.dll
0x6dc80000 - 0x6dc8f000 C:\WINDOWS\SYSTEM32\cscapi.dll
0x72a90000 - 0x72a9b000 C:\WINDOWS\System32\netutils.dll
0x19000000 - 0x19040000 C:\Windows\System32\dlnashext.dll
0x19040000 - 0x19096000 C:\Windows\System32\PlayToDevice.dll
0x6adb0000 - 0x6adca000 C:\Windows\System32\DevDispItemProvider.dll
0x6b2c0000 - 0x6b319000 C:\WINDOWS\System32\MMDevApi.dll
0x3ffd0000 - 0x401a2000 C:\WINDOWS\system32\wpdshext.dll
0x19140000 - 0x192a6000 C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.15063.483_none_9e9856e456d5e776\gdiplus.dll
0x3f740000 - 0x3f781000 C:\WINDOWS\system32\audiodev.dll
0x19350000 - 0x19567000 C:\WINDOWS\system32\WMVCore.DLL
0x5bea0000 - 0x5bfa7000 C:\WINDOWS\system32\mfperfhelper.dll
0x192b0000 - 0x192ef000 C:\WINDOWS\system32\WMASF.DLL
0x5fdc0000 - 0x5ff25000 C:\WINDOWS\SYSTEM32\MFPlat.DLL
0x5fd90000 - 0x5fdba000 C:\WINDOWS\SYSTEM32\RTWorkQ.DLL
0x59ab0000 - 0x59abd000 C:\WINDOWS\SYSTEM32\LINKINFO.dll
0x6dc90000 - 0x6dc9a000 C:\WINDOWS\SYSTEM32\Secur32.dll
0x72aa0000 - 0x72ab5000 C:\WINDOWS\SYSTEM32\samcli.dll
0x6bf50000 - 0x6bf69000 C:\WINDOWS\SYSTEM32\SAMLIB.dll
0x6db20000 - 0x6dc7d000 C:\WINDOWS\SYSTEM32\dbghelp.dll

Delete files dead

When a file is deleted and then added, a zombie situation occurs,don't know why?
The code is as follows:

public void addFile(File file, String mtpPath) throws FileNotFoundException, IOException, COMException {
    deleteFile(file.getName(), mtpPath);
    String lastpartofpath = mtpPath.substring(mtpPath.lastIndexOf("\\") + 1);
    PortableDeviceStorageObject storage = getStorage();
    PortableDeviceFolderObject folder = MTPUtil.createFolder(mtpPath, storage, null, lastpartofpath);
    PortableDeviceAudioObject object = folder.addAudioObject(file, "--", "--", new BigInteger("0"));
    //LogUtil.debugPrint(LogUtil.LOG_LEVEL_LESS, this.getClass().getSimpleName(), "Copied " + file.getAbsolutePath() + " to " + mtpPath
    //		+ " on " + getDevice().getModel());
}

The zombie code is 212 lines in the PortableDeviceImplWin32 class :

PortableDeviceContentImplWin32 content = this.getDeviceContent();

Use copyFromPortableDeviceToHost from diferent Threads

Hi! First of all thanks for the project.

I'm developing a desktop app for Windows 10 with Java. I copy all de images (.jpg|.png) from the phone to the computer.

The problem that I found is that It needs 11 minutes for 3000 images.

It could be ok, but I do this for many devices every day, so I would like to be faster.

My idea was to use different threads for copy images simultaneously. So I created a thread that executes this function:
portable.copyFromPortableDeviceToHost(pdiID, destFolder, device);

But when I use it from different threads I get an error:
! Failed to get IStream (representing object data on the device) from IPortableDeviceResources, hr = 0x800700aa

I've never developed with cpp, so I'm a bit lost. Do you know what could I do for change the function
hr = pResources->GetStream(szSelection.c_str(), WPD_RESOURCE_DEFAULT, STGM_READ, &cbOptimalTransferSize, &pObjectDataStream);
¿To be thread safe? (File PortableDeviceToHost.cpp 247)

Any idea can help!
Thanks in advance!

Is there a PortableDevice.IsOpen() or similar

This project is great and works fine, thank you for that :)

There is a detail I would like to know about it. Maybe I am using it wrong but is there a way to know if a device is already open except by catching the RuntimeException DeviceAlreadyOpenedException ?

Thanks for the great work,

rXp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.