ninia / jep

Embed Python in Java
Other
1.33k stars 151 forks source link

JVM detected outside native crash with import numpy or pandas on second thread's execution. #140

Closed RunsLikeADeere closed 6 years ago

RunsLikeADeere commented 6 years ago

I was able to execute Jep statements, including imports from Pandas and NumPy, when I execute one time. But when I do the sequence multiple times with different threads, it consistently crashes on the 2nd thread. I did variations of no synchronization and with synchronization (so threads execute sequentially) with same result. NumPy or Pandas compile with VS 2015 (vs. 2014) and notice JVM is 2010. Details.....

Jep version 3.7.1 ---------- JVM's console last output, and error message ----------- Current Thread, Jep object hash code: Thread3, 37184205 Py type() of aTimeValues1: <class 'jep.PyJArray'> Type of Time values back from Python: [I

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

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffb0a04d3c, pid=11132, tid=0x0000000000000878

JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode windows-amd64 compressed oops) Problematic frame: C [multiarray.cp36-win_amd64.pyd+0xe4d3c]

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

An error report file with more information is saved as: C:\workspace\TestJava2Python\hs_err_pid11132.log

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.

------------ Full .log below.... ------------------ A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffb0a04d3c, pid=11132, tid=0x0000000000000878

JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode windows-amd64 compressed oops) Problematic frame: C [multiarray.cp36-win_amd64.pyd+0xe4d3c]

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 (0x0000000020cde000): JavaThread "Thread3" [_thread_in_native, id=2168, stack(0x0000000021a90000,0x0000000021b90000)]

siginfo: ExceptionCode=0xc0000005, writing address 0x000000000000000a

Registers: RAX=0x000000000000000a, RBX=0x00007fffb0a6cd70, RCX=0x0000000033516280, RDX=0x00007fffb0a6cd70 RSP=0x0000000021b86620, RBP=0x0000000033516270, RSI=0x0000000032ade350, RDI=0x0000000033516280 R8 =0x0000000000000008, R9 =0x00007fffe2dd0000, R10=0x0000000033516280, R11=0x000000002258ca60 R12=0x0000000031bd5cb0, R13=0x0000000000000072, R14=0x0000000033516280, R15=0x0000000031bd5af8 RIP=0x00007fffb0a04d3c, EFLAGS=0x0000000000010206

Top of Stack: (sp=0x0000000021b86620) 0x0000000021b86620: 000000005f0bc5c0 0000000033516270 0x0000000021b86630: 00007fffb0a92e10 0000000033505848 0x0000000021b86640: 0000ecfa97d6e755 00007fffb0a07fe5 0x0000000021b86650: 0000000000000002 0000000000000000 0x0000000021b86660: 0000000033516270 0000000033516270 0x0000000021b86670: 0000000000000000 00007fffb0a07e8e 0x0000000021b86680: 00007fffb0a6cd70 0000000032ade350 0x0000000021b86690: 0000000000000000 000000002203a830 0x0000000021b866a0: 0000000000000000 0000000000000000 0x0000000021b866b0: 0000000000000000 0000000000000000 0x0000000021b866c0: 0000000000000000 0000000000000000 0x0000000021b866d0: 0000000031df7130 00007fffb0a13e8d 0x0000000021b866e0: 0000000033516270 00000000334ae350 0x0000000021b866f0: 00000000000000d8 0000000021b86810 0x0000000021b86700: 00000000000000d8 000000005edeae48 0x0000000021b86710: 0000000033180c28 00248ceb187da02b

Instructions: (pc=0x00007fffb0a04d3c) 0x00007fffb0a04d1c: 1b 01 48 8b da 48 8b f9 0f 84 c1 00 00 00 83 7a 0x00007fffb0a04d2c: 1c 11 75 1a 48 8b 01 48 85 c0 0f 84 af 00 00 00 0x00007fffb0a04d3c: 48 ff 00 48 8b 5c 24 60 48 83 c4 50 5f c3 48 83 0x00007fffb0a04d4c: 7a 38 00 0f 84 96 00 00 00 48 8b 4b 30 4c 8d 4c

Register to memory mapping:

RAX=0x000000000000000a is an unknown value RBX=0x00007fffb0a6cd70 is an unknown value RCX=0x0000000033516280 is an unknown value RDX=0x00007fffb0a6cd70 is an unknown value RSP=0x0000000021b86620 is pointing into the stack for thread: 0x0000000020cde000 RBP=0x0000000033516270 is an unknown value RSI=0x0000000032ade350 is an unknown value RDI=0x0000000033516280 is an unknown value R8 =0x0000000000000008 is an unknown value R9 =0x00007fffe2dd0000 is an unknown value R10=0x0000000033516280 is an unknown value R11=0x000000002258ca60 is an unknown value R12=0x0000000031bd5cb0 is an unknown value R13=0x0000000000000072 is an unknown value R14=0x0000000033516280 is an unknown value R15=0x0000000031bd5af8 is an unknown value

Stack: [0x0000000021a90000,0x0000000021b90000], sp=0x0000000021b86620, free space=985k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [multiarray.cp36-win_amd64.pyd+0xe4d3c] C [multiarray.cp36-win_amd64.pyd+0xe7e8e] C [multiarray.cp36-win_amd64.pyd+0xf3e8d] C [python36.dll+0x1ae48] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x41efa] C [python36.dll+0xc359] C [python36.dll+0xbdbc] C [python36.dll+0xfbc9] C [python36.dll+0x541cd] C [python36.dll+0x1a960] C [python36.dll+0x4336b] C [python36.dll+0x4296f] C [python36.dll+0x18b39] C [python36.dll+0x4336b] C [python36.dll+0x41fc0] C [python36.dll+0xc359] C [python36.dll+0xbdbc] C [python36.dll+0xfb25] C [python36.dll+0x1b90c] C [python36.dll+0x4336b] C [python36.dll+0x70b5] C [python36.dll+0x6f97] C [python36.dll+0x1bd22] C [python36.dll+0x4336b] C [python36.dll+0x4296f] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x41efa] C [python36.dll+0xc359] C [python36.dll+0xbdbc] C [python36.dll+0xfbc9] C [python36.dll+0x541cd] C [python36.dll+0x1a960] C [python36.dll+0x4336b] C [python36.dll+0x4296f] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x41efa] C [python36.dll+0xc359] C [python36.dll+0xbdbc] C [python36.dll+0xfbc9] C [python36.dll+0x1b90c] C [python36.dll+0x4336b] C [python36.dll+0x70b5] C [python36.dll+0x6f97] C [python36.dll+0x1bd22] C [python36.dll+0x4336b] C [python36.dll+0x4296f] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x41efa] C [python36.dll+0xc359] C [python36.dll+0xbdbc] C [python36.dll+0xfbc9] C [python36.dll+0x1b90c] C [python36.dll+0x4336b] C [python36.dll+0x70b5] C [python36.dll+0x6f97] C [python36.dll+0x1bd22] C [python36.dll+0x4336b] C [python36.dll+0x4296f] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x41efa] C [python36.dll+0xc359] C [python36.dll+0xbdbc] C [python36.dll+0xfbc9] C [python36.dll+0x1b90c] C [python36.dll+0x4336b] C [python36.dll+0x70b5] C [python36.dll+0x6f97] C [python36.dll+0x1bd22] C [python36.dll+0x4336b] C [python36.dll+0x4296f] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] C [python36.dll+0x426de] C [python36.dll+0x18b39] ......

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j jep.Jep.eval(JLjava/lang/String;)V+0 j jep.Jep.eval(Ljava/lang/String;)Z+106 j x.y.java2python.JepThreadTest.doPyTimeAlignmentSequence()Ljava/lang/String;+255 j x.y.java2python.JepThreadTest.run()V+171 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub

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

Java Threads: ( => current thread ) 0x0000000020cd8800 JavaThread "Thread-0" daemon [_thread_blocked, id=12340, stack(0x0000000021b90000,0x0000000021c90000)] 0x0000000020cd8000 JavaThread "DestroyJavaVM" [_thread_blocked, id=6420, stack(0x0000000004f20000,0x0000000005020000)] =>0x0000000020cde000 JavaThread "Thread3" [_thread_in_native, id=2168, stack(0x0000000021a90000,0x0000000021b90000)] 0x0000000020cdd000 JavaThread "Thread2" [_thread_blocked, id=8204, stack(0x0000000021990000,0x0000000021a90000)] 0x0000000020bf1800 JavaThread "Service Thread" daemon [_thread_blocked, id=11372, stack(0x0000000021690000,0x0000000021790000)] 0x0000000020bc5000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=11688, stack(0x0000000021590000,0x0000000021690000)] 0x0000000020bc0800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=1492, stack(0x0000000021490000,0x0000000021590000)] 0x0000000020bbe800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=13584, stack(0x0000000021390000,0x0000000021490000)] 0x0000000020bbc000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=13612, stack(0x0000000021290000,0x0000000021390000)] 0x0000000020bba000 JavaThread "Attach Listener" daemon [_thread_blocked, id=7856, stack(0x0000000021190000,0x0000000021290000)] 0x0000000020bb9000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=16856, stack(0x0000000021090000,0x0000000021190000)] 0x0000000020bb0800 JavaThread "Finalizer" daemon [_thread_blocked, id=15296, stack(0x0000000020f90000,0x0000000021090000)] 0x0000000005219000 JavaThread "Reference Handler" daemon [_thread_blocked, id=436, stack(0x0000000020a90000,0x0000000020b90000)]

Other Threads: 0x000000001ecb9800 VMThread [stack: 0x0000000020990000,0x0000000020a90000] [id=768] 0x0000000020c7d800 WatcherThread [stack: 0x0000000021790000,0x0000000021890000] [id=16704]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap: PSYoungGen total 76288K, used 11122K [0x000000076af80000, 0x0000000770480000, 0x00000007c0000000) eden space 65536K, 4% used [0x000000076af80000,0x000000076b270960,0x000000076ef80000) from space 10752K, 75% used [0x000000076fa00000,0x00000007701ec028,0x0000000770480000) to space 10752K, 0% used [0x000000076ef80000,0x000000076ef80000,0x000000076fa00000) ParOldGen total 175104K, used 16K [0x00000006c0e00000, 0x00000006cb900000, 0x000000076af80000) object space 175104K, 0% used [0x00000006c0e00000,0x00000006c0e04000,0x00000006cb900000) Metaspace used 4216K, capacity 5428K, committed 5760K, reserved 1056768K class space used 491K, capacity 552K, committed 640K, reserved 1048576K

Card table byte_map: [0x00000000145e0000,0x0000000014de0000] byte_map_base: 0x0000000010fd9000

Marking Bits: (ParMarkBitMap*) 0x000000005eb264f0 Begin Bits: [0x0000000015b40000, 0x0000000019b08000) End Bits: [0x0000000019b08000, 0x000000001dad0000)

Polling page: 0x0000000000de0000

CodeCache: size=245760Kb used=2022Kb max_used=2032Kb free=243737Kb bounds [0x0000000005220000, 0x0000000005490000, 0x0000000014220000] total_blobs=638 nmethods=387 adapters=164 compilation: enabled

Compilation events (10 events): Event: 0.843 Thread 0x0000000020bc5000 383 3 java.util.HashMap::containsKey (18 bytes) Event: 0.843 Thread 0x0000000020bc5000 nmethod 383 0x0000000005414c50 code [0x0000000005414de0, 0x00000000054151d8] Event: 1.512 Thread 0x0000000020bc5000 384 3 jep.ClassList::isJavaPackage (32 bytes) Event: 1.512 Thread 0x0000000020bc5000 nmethod 384 0x000000000541d590 code [0x000000000541d720, 0x000000000541dab8] Event: 3.492 Thread 0x0000000020bc5000 385 1 java.nio.Buffer::limit (5 bytes) Event: 3.492 Thread 0x0000000020bc5000 nmethod 385 0x000000000540a890 code [0x000000000540a9e0, 0x000000000540aaf0] Event: 3.524 Thread 0x0000000020bbc000 386 4 java.lang.Math::max (11 bytes) Event: 3.524 Thread 0x0000000020bbc000 nmethod 386 0x000000000541a750 code [0x000000000541a880, 0x000000000541a8d8] Event: 3.524 Thread 0x0000000020bc5000 387 3 java.util.regex.Pattern::has (15 bytes) Event: 3.524 Thread 0x0000000020bc5000 nmethod 387 0x0000000005413ad0 code [0x0000000005413c20, 0x0000000005413dd0]

GC Heap History (4 events): Event: 0.393 GC heap before {Heap before GC invocations=1 (full 0): PSYoungGen total 76288K, used 65536K [0x000000076af80000, 0x0000000770480000, 0x00000007c0000000) eden space 65536K, 100% used [0x000000076af80000,0x000000076ef80000,0x000000076ef80000) from space 10752K, 0% used [0x000000076fa00000,0x000000076fa00000,0x0000000770480000) to space 10752K, 0% used [0x000000076ef80000,0x000000076ef80000,0x000000076fa00000) ParOldGen total 175104K, used 0K [0x00000006c0e00000, 0x00000006cb900000, 0x000000076af80000) object space 175104K, 0% used [0x00000006c0e00000,0x00000006c0e00000,0x00000006cb900000) Metaspace used 3129K, capacity 4660K, committed 4864K, reserved 1056768K class space used 333K, capacity 424K, committed 512K, reserved 1048576K Event: 0.395 GC heap after Heap after GC invocations=1 (full 0): PSYoungGen total 76288K, used 5472K [0x000000076af80000, 0x0000000770480000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076af80000,0x000000076af80000,0x000000076ef80000) from space 10752K, 50% used [0x000000076ef80000,0x000000076f4d8020,0x000000076fa00000) to space 10752K, 0% used [0x000000076fa00000,0x000000076fa00000,0x0000000770480000) ParOldGen total 175104K, used 8K [0x00000006c0e00000, 0x00000006cb900000, 0x000000076af80000) object space 175104K, 0% used [0x00000006c0e00000,0x00000006c0e02000,0x00000006cb900000) Metaspace used 3129K, capacity 4660K, committed 4864K, reserved 1056768K class space used 333K, capacity 424K, committed 512K, reserved 1048576K } Event: 0.773 GC heap before {Heap before GC invocations=2 (full 0): PSYoungGen total 76288K, used 71008K [0x000000076af80000, 0x0000000770480000, 0x00000007c0000000) eden space 65536K, 100% used [0x000000076af80000,0x000000076ef80000,0x000000076ef80000) from space 10752K, 50% used [0x000000076ef80000,0x000000076f4d8020,0x000000076fa00000) to space 10752K, 0% used [0x000000076fa00000,0x000000076fa00000,0x0000000770480000) ParOldGen total 175104K, used 8K [0x00000006c0e00000, 0x00000006cb900000, 0x000000076af80000) object space 175104K, 0% used [0x00000006c0e00000,0x00000006c0e02000,0x00000006cb900000) Metaspace used 4112K, capacity 5396K, committed 5760K, reserved 1056768K class space used 461K, capacity 520K, committed 640K, reserved 1048576K Event: 0.777 GC heap after Heap after GC invocations=2 (full 0): PSYoungGen total 76288K, used 8112K [0x000000076af80000, 0x0000000770480000, 0x00000007c0000000) eden space 65536K, 0% used [0x000000076af80000,0x000000076af80000,0x000000076ef80000) from space 10752K, 75% used [0x000000076fa00000,0x00000007701ec028,0x0000000770480000) to space 10752K, 0% used [0x000000076ef80000,0x000000076ef80000,0x000000076fa00000) ParOldGen total 175104K, used 16K [0x00000006c0e00000, 0x00000006cb900000, 0x000000076af80000) object space 175104K, 0% used [0x00000006c0e00000,0x00000006c0e04000,0x00000006cb900000) Metaspace used 4112K, capacity 5396K, committed 5760K, reserved 1056768K class space used 461K, capacity 520K, committed 640K, reserved 1048576K }

Deoptimization events (10 events): Event: 0.414 Thread 0x0000000020cdc800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000053a2ff4 method=jep.ClassList.addClass(Ljava/lang/String;Ljava/lang/String;)V @ 71 Event: 0.459 Thread 0x0000000020cdc800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000000000538af30 method=java.lang.String.startsWith(Ljava/lang/String;I)Z @ 25 Event: 0.462 Thread 0x0000000020cdc800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000000000538f5d4 method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 49 Event: 0.462 Thread 0x0000000020cdc800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000538ba84 method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126 Event: 0.462 Thread 0x0000000020cdc800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000538ba84 method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126 Event: 0.462 Thread 0x0000000020cdc800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000538ba84 method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126 Event: 0.462 Thread 0x0000000020cdc800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000000538ba84 method=java.util.HashMap.getNode(ILjava/lang/Object;)Ljava/util/HashMap$Node; @ 126 Event: 0.478 Thread 0x0000000020cdc800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000005398bc4 method=java.lang.String.indexOf([CII[CIII)I @ 134 Event: 0.497 Thread 0x0000000020cdc800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000053dd710 method=java.io.BufferedReader.readLine(Z)Ljava/lang/String; @ 55 Event: 0.800 Thread 0x0000000020cdc800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000005414824 method=java.lang.Class$MethodArray.add(Ljava/lang/reflect/Method;)V @ 51

Internal exceptions (7 events): Event: 0.029 Thread 0x0000000005122800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076af87cc0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u92\6642\hotspot\srBl^o:? Event: 0.029 Thread 0x0000000005122800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076af87fa8) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u92\6642\hotspot\src\share\vm\prims\jp¼8ÎØäÝ? Event: 0.467 Thread 0x0000000020cdc800 Exception <a 'java/security/PrivilegedActionException'> (0x000000076e79c0f8) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u92\6642\hotspot\src\share\vm\prims\jvm.cpp, line 1386] Event: 0.467 Thread 0x0000000020cdc800 Exception <a 'java/security/PrivilegedActionException'> (0x000000076e79c308) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u92\6642\hotspot\src\share\vm\prims\jvm.cpp, line 1386] Event: 0.468 Thread 0x0000000020cdc800 Exception <a 'java/security/PrivilegedActionException'> (0x000000076e79e9c0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u92\6642\hotspot\src\share\vm\prims\jvm.cpp, line 1386] Event: 0.468 Thread 0x0000000020cdc800 Exception <a 'java/security/PrivilegedActionException'> (0x000000076e79ebd0) thrown at [D:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u92\6642\hotspot\src\share\vm\prims\jvm.cpp, line 1386] Event: 0.800 Thread 0x0000000020cdc800 Implicit null exception at 0x00000000054145e9 to 0x0000000005414815

Events (10 events): Event: 0.801 Thread 0x0000000020cdc800 DEOPT UNPACKING pc=0x000000000526787f sp=0x0000000021982e70 mode 0 Event: 0.801 Thread 0x0000000020cdc800 DEOPT PACKING pc=0x00000000053f90e1 sp=0x0000000021983140 Event: 0.801 Thread 0x0000000020cdc800 DEOPT UNPACKING pc=0x000000000526787f sp=0x0000000021982e70 mode 0 Event: 0.801 Thread 0x0000000020cdc800 DEOPT PACKING pc=0x00000000053f90e1 sp=0x0000000021983140 Event: 0.801 Thread 0x0000000020cdc800 DEOPT UNPACKING pc=0x000000000526787f sp=0x0000000021982e70 mode 0 Event: 0.801 loading class org/python/core/PyDataDescr Event: 0.801 loading class org/python/core/PyDataDescr done Event: 3.492 loading class java/util/ArrayList$Itr Event: 3.492 loading class java/util/ArrayList$Itr done Event: 3.492 Thread 0x0000000020cdc800 Thread exited: 0x0000000020cdc800

Dynamic libraries: 0x00007ff782470000 - 0x00007ff7824a7000 C:\Java\jdk1.8.0_92\bin\javaw.exe 0x00007ffff84a0000 - 0x00007ffff8680000 C:\Windows\SYSTEM32\ntdll.dll 0x00007ffff6690000 - 0x00007ffff673e000 C:\Windows\System32\KERNEL32.DLL 0x00007ffff4a40000 - 0x00007ffff4ca6000 C:\Windows\System32\KERNELBASE.dll 0x00007ffff6050000 - 0x00007ffff60f1000 C:\Windows\System32\ADVAPI32.dll 0x00007ffff5af0000 - 0x00007ffff5b8d000 C:\Windows\System32\msvcrt.dll 0x00007ffff6860000 - 0x00007ffff68bb000 C:\Windows\System32\sechost.dll 0x00007ffff6740000 - 0x00007ffff685f000 C:\Windows\System32\RPCRT4.dll 0x00007ffff82e0000 - 0x00007ffff846f000 C:\Windows\System32\USER32.dll 0x00007ffff57b0000 - 0x00007ffff57d0000 C:\Windows\System32\win32u.dll 0x00007ffff6580000 - 0x00007ffff65a8000 C:\Windows\System32\GDI32.dll 0x00007ffff48a0000 - 0x00007ffff4a33000 C:\Windows\System32\gdi32full.dll 0x00007ffff57d0000 - 0x00007ffff586b000 C:\Windows\System32\msvcp_win.dll 0x00007ffff5870000 - 0x00007ffff5966000 C:\Windows\System32\ucrtbase.dll 0x00007ffff37c0000 - 0x00007ffff3a29000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.431_none_15c7d3ee93659e73\COMCTL32.dll 0x00007ffff5d30000 - 0x00007ffff6038000 C:\Windows\System32\combase.dll 0x00007ffff4cb0000 - 0x00007ffff4d22000 C:\Windows\System32\bcryptPrimitives.dll 0x00007ffff8150000 - 0x00007ffff817d000 C:\Windows\System32\IMM32.DLL 0x000000005f170000 - 0x000000005f242000 C:\Java\jdk1.8.0_92\jre\bin\msvcr100.dll 0x000000005e310000 - 0x000000005eba6000 C:\Java\jdk1.8.0_92\jre\bin\server\jvm.dll 0x00007ffff8180000 - 0x00007ffff8188000 C:\Windows\System32\PSAPI.DLL 0x00007fffedc50000 - 0x00007fffedc5a000 C:\Windows\SYSTEM32\VERSION.dll 0x00007fffee5f0000 - 0x00007fffee613000 C:\Windows\SYSTEM32\WINMM.dll 0x00007fffd8140000 - 0x00007fffd8149000 C:\Windows\SYSTEM32\WSOCK32.dll 0x00007ffff65b0000 - 0x00007ffff661c000 C:\Windows\System32\WS2_32.dll 0x00007fffee5c0000 - 0x00007fffee5ea000 C:\Windows\SYSTEM32\WINMMBASE.dll 0x00007ffff5760000 - 0x00007ffff57aa000 C:\Windows\System32\cfgmgr32.dll 0x000000005f460000 - 0x000000005f46f000 C:\Java\jdk1.8.0_92\jre\bin\verify.dll 0x000000005f430000 - 0x000000005f459000 C:\Java\jdk1.8.0_92\jre\bin\java.dll 0x000000005f410000 - 0x000000005f426000 C:\Java\jdk1.8.0_92\jre\bin\zip.dll 0x00007ffff68c0000 - 0x00007ffff7cf8000 C:\Windows\System32\SHELL32.dll 0x00007ffff5a40000 - 0x00007ffff5ae6000 C:\Windows\System32\shcore.dll 0x00007ffff4fb0000 - 0x00007ffff56f7000 C:\Windows\System32\windows.storage.dll 0x00007ffff6620000 - 0x00007ffff6671000 C:\Windows\System32\shlwapi.dll 0x00007ffff4810000 - 0x00007ffff4821000 C:\Windows\System32\kernel.appcore.dll 0x00007ffff4850000 - 0x00007ffff489c000 C:\Windows\System32\powrprof.dll 0x00007ffff47f0000 - 0x00007ffff480b000 C:\Windows\System32\profapi.dll 0x00007fffe0c10000 - 0x00007fffe0c37000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\Lib\site-packages\jep\jep.dll 0x00007fffe2dd0000 - 0x00007fffe2de7000 C:\Windows\SYSTEM32\VCRUNTIME140.dll 0x000000005edd0000 - 0x000000005f170000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\python36.dll 0x00007ffff4240000 - 0x00007ffff4257000 C:\Windows\SYSTEM32\CRYPTSP.dll 0x00007ffff3c80000 - 0x00007ffff3cb3000 C:\Windows\system32\rsaenh.dll 0x00007ffff4350000 - 0x00007ffff4375000 C:\Windows\SYSTEM32\bcrypt.dll 0x00007ffff4260000 - 0x00007ffff426b000 C:\Windows\SYSTEM32\CRYPTBASE.dll 0x00007fffe7190000 - 0x00007fffe719f000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\python3.dll 0x00007fffb0920000 - 0x00007fffb0ac6000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\multiarray.cp36-win_amd64.pyd 0x000000006b780000 - 0x000000006dbd7000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy.libs\libopenblas.BNVRK7633HSX7YVO2TADGR4A5KEKXJAW.gfortran-win_amd64.dll 0x00007fffc12c0000 - 0x00007fffc138b000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\umath.cp36-win_amd64.pyd 0x000000005fa90000 - 0x000000005fab3000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs_ctypes.pyd 0x00007ffff8190000 - 0x00007ffff82d9000 C:\Windows\System32\ole32.dll 0x00007ffff5970000 - 0x00007ffff5a35000 C:\Windows\System32\OLEAUT32.dll 0x000000005f370000 - 0x000000005f38a000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs_bz2.pyd 0x00007fffcbd90000 - 0x00007fffcbdd2000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs_lzma.pyd 0x00007fffb0780000 - 0x00007fffb091c000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs_hashlib.pyd 0x00007fffe0fd0000 - 0x00007fffe0fdb000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\linalg\lapack_lite.cp36-win_amd64.pyd 0x00007fffcdb30000 - 0x00007fffcdb51000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\linalg_umath_linalg.cp36-win_amd64.pyd 0x000000005f320000 - 0x000000005f365000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs_decimal.pyd 0x00007fffe0cf0000 - 0x00007fffe0d08000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\fft\fftpack_lite.cp36-win_amd64.pyd 0x00007fffb1620000 - 0x00007fffb16d1000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\random\mtrand.cp36-win_amd64.pyd 0x000000005e230000 - 0x000000005e310000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs\unicodedata.pyd 0x000000005f300000 - 0x000000005f315000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs_socket.pyd 0x000000005f2f0000 - 0x000000005f2fa000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs\select.pyd 0x00007fffb0580000 - 0x00007fffb077d000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\DLLs_ssl.pyd 0x00007ffff4de0000 - 0x00007ffff4fae000 C:\Windows\System32\CRYPT32.dll 0x00007ffff4830000 - 0x00007ffff4842000 C:\Windows\System32\MSASN1.dll 0x00007fffcbd60000 - 0x00007fffcbd8e000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslib.cp36-win_amd64.pyd 0x00007fffc2e30000 - 0x00007fffc2e68000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\conversion.cp36-win_amd64.pyd 0x00007fffe0d70000 - 0x00007fffe0d80000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\np_datetime.cp36-win_amd64.pyd 0x00007fffc2e00000 - 0x00007fffc2e2b000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\nattype.cp36-win_amd64.pyd 0x00007fffc2b80000 - 0x00007fffc2bca000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\timedeltas.cp36-win_amd64.pyd 0x00007fffd70e0000 - 0x00007fffd70fd000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\timezones.cp36-win_amd64.pyd 0x00007fffc2d80000 - 0x00007fffc2db8000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\parsing.cp36-win_amd64.pyd 0x00007fffcf430000 - 0x00007fffcf443000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\ccalendar.cp36-win_amd64.pyd 0x00007fffc2a60000 - 0x00007fffc2a98000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\strptime.cp36-win_amd64.pyd 0x00007fffc2470000 - 0x00007fffc24b8000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\timestamps.cp36-win_amd64.pyd 0x00007fffc2b50000 - 0x00007fffc2b72000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\fields.cp36-win_amd64.pyd 0x00007fffb34b0000 - 0x00007fffb3526000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\hashtable.cp36-win_amd64.pyd 0x00007fffcd9e0000 - 0x00007fffcd9f9000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\missing.cp36-win_amd64.pyd 0x00007fffb15a0000 - 0x00007fffb1613000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\lib.cp36-win_amd64.pyd 0x00007fffb0440000 - 0x00007fffb0572000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\algos.cp36-win_amd64.pyd 0x00007fffcc290000 - 0x00007fffcc2a4000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\properties.cp36-win_amd64.pyd 0x00007fffcbd40000 - 0x00007fffcbd53000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\hashing.cp36-win_amd64.pyd 0x00007fffc0f50000 - 0x00007fffc0fba000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\index.cp36-win_amd64.pyd 0x00007fffc1eb0000 - 0x00007fffc1efa000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\period.cp36-win_amd64.pyd 0x00007fffc2ae0000 - 0x00007fffc2b01000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\frequencies.cp36-win_amd64.pyd 0x00007fffc1db0000 - 0x00007fffc1de7000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\resolution.cp36-win_amd64.pyd 0x00007fffb4300000 - 0x00007fffb434c000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\tslibs\offsets.cp36-win_amd64.pyd 0x00007fffa5710000 - 0x00007fffa58b5000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\join.cp36-win_amd64.pyd 0x00007fffcbaf0000 - 0x00007fffcbb0a000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\ops.cp36-win_amd64.pyd 0x00007fffa5120000 - 0x00007fffa52f2000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\interval.cp36-win_amd64.pyd 0x00007fffe0cc0000 - 0x00007fffe0ccf000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\indexing.cp36-win_amd64.pyd 0x00007fffc0600000 - 0x00007fffc0639000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\internals.cp36-win_amd64.pyd 0x00007fffadb70000 - 0x00007fffadc21000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\sparse.cp36-win_amd64.pyd 0x00007fffad780000 - 0x00007fffad80a000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\window.cp36-win_amd64.pyd 0x00007fffe2ca0000 - 0x00007fffe2d3d000 C:\Windows\SYSTEM32\MSVCP140.dll 0x00007fffcba60000 - 0x00007fffcba7a000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\skiplist.cp36-win_amd64.pyd 0x00007fffbe970000 - 0x00007fffbe9ac000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\reduction.cp36-win_amd64.pyd 0x00007fffad6e0000 - 0x00007fffad778000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\groupby.cp36-win_amd64.pyd 0x00007fffc2a40000 - 0x00007fffc2a5d000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\reshape.cp36-win_amd64.pyd 0x00007fffb3600000 - 0x00007fffb366b000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\parsers.cp36-win_amd64.pyd 0x00007fffc2990000 - 0x00007fffc29a7000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\json.cp36-win_amd64.pyd 0x00007fffbe2a0000 - 0x00007fffbe2d2000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\writers.cp36-win_amd64.pyd 0x00007fffc2600000 - 0x00007fffc2616000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\msgpack_packer.cp36-win_amd64.pyd 0x00007fffc2410000 - 0x00007fffc242a000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\msgpack_unpacker.cp36-win_amd64.pyd 0x00007fffe0bc0000 - 0x00007fffe0bc9000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\util_move.cp36-win_amd64.pyd 0x00007fffc0410000 - 0x00007fffc0426000 C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas_libs\testing.cp36-win_amd64.pyd 0x00007fffe8330000 - 0x00007fffe84f8000 C:\Windows\SYSTEM32\dbghelp.dll

VM Arguments: jvm_args: -Djava.library.path=C:\Users\RunsLikeADeere\AppData\Local\Programs\Python\Python36\Lib\site-packages\jep -Dfile.encoding=Cp1252 java_command: x.y.java2python.JepThreadTest java_class_path (initial): C:\Java\jdk1.8.0_92\jre\lib\resources.jar;C:\Java\jdk1.8.0_92\jre\lib\rt.jar;C:\Java\jdk1.8.0_92\jre\lib\jsse.jar;C:\Java\jdk1.8.0_92\jre\lib\jce.jar;C:\Java\jdk1.8.0_92\jre\lib\charsets.jar;C:\Java\jdk1.8.0_92\jre\lib\jfr.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\access-bridge-64.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\cldrdata.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\dnsns.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\jaccess.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\jfxrt.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\localedata.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\nashorn.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\sunec.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\sunjce_provider.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\sunmscapi.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\sunpkcs11.jar;C:\Java\jdk1.8.0_92\jre\lib\ext\zipfs.jar;C:\workspace\TestJava2Python\build\classes;C:\Programs\Jython\jython.jar;C:\Programs\tomcat8_5_5\lib\annotations-api.jar;C:\Programs\tomcat8_5_5\lib\catalina-ant.jar;C:\Programs\tomcat8_5_5\lib\catalina-ha.jar;C:\Programs\tomcat8_5_5\lib\catalina-storeconfig.jar;C:\Programs\tomcat8_5_5\lib\catalina-tribes.jar;C:\Programs\tomcat8_5_5\lib\catalina.jar;C:\Programs\tomcat8_5_5\lib\ecj-4.5.1.jar;C:\Programs\tomcat8_5_5\lib\el-api.jar;C:\Programs\tomcat8_5_5\lib\jasper-el.jar;C:\Programs\tomcat8_5_5\lib\jasper.jar;C:\Programs\tomcat8_5_5\lib\jaspic-api.jar;C:\Programs\tomcat8_5_5\lib\jsp-api.jar;C:\Programs\tomcat8_5_5\lib\servlet-api.jar;C:\Programs\tomcat8_5_5\lib\tomcat-api.jar;C:\Programs\tomcat8_5_5\lib\tomcat-coyote.jar;C:\Programs\tomcat8_5_5\lib\tomcat-dbcp.jar;C:\Programs\tomcat8_5_5\lib\tomcat-i18n-es.jar;C:\Programs\tomcat8_5_5\lib\tomcat-i18n-fr.jar;C:\Programs\tomcat8_5_5\lib\tomcat-i18n-ja.jar;C:\Programs\tomcat8_5_5\lib\tomcat-jdbc.jar;C:\Programs\tomcat8_5_5\lib\tomcat-jni.jar;C:\Programs\tomcat8_5_5\lib\tomcat-util-scan.jar;C:\Programs\tomcat8_5_5\lib\tomcat-util.jar;C:\Programs\tomcat8_5_5\lib\tomcat-websocket.jar;C:\Programs\tomcat8_5_5\lib\websocket-api.jar;C:\Users\ Launcher Type: SUN_STANDARD

Environment Variables: JAVA_HOME=C:\Java\jdk1.8.0_92 USERNAME=RunsLikeADeere OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel

--------------- S Y S T E M --------------- OS: Windows 10.0 , 64 bit Build 16299 (10.0.16299.431)

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2

Memory: 4k page, physical 16714980k(9917756k free), swap 19205348k(8890660k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.92-b14) for windows-amd64 JRE (1.8.0_92-b14), built on Mar 31 2016 21:03:04 by "java_re" with MS VC++ 10.0 (VS2010)

time: Fri Jun 08 16:53:57 2018 elapsed time: 3 seconds (0d 0h 0m 3s)

ndjensen commented 6 years ago

Can you please format your post so it doesn't have

giant text?

Put in a blockquote or mark it as code.

Did you use the shared modules feature of Jep to share numpy across sub-interpreters so numpy is not disposed?

RunsLikeADeere commented 6 years ago

Whoops--the pound/number sign tripped it. I removed the NumPy import but get a very similar error likely associated with aJep.eval("import pandas as pd").

Thanks for the quick reply.

I see from 3.6 release notes...."Python shared modules (beta)

Jep now includes support for sharing a module between Jep instances (sub-interpreters). This is enabled by specifying a set of modules that should be shared in the JepConfig. Shared modules are created on a private internal interpreter using the default path and any Jep instance that is configured to share a specific module will receive the same module when it is imported from Python. "

I am looking for the syntax for JepConfig in the documentation.

RunsLikeADeere commented 6 years ago

I noticed that if I do not close() the Jep instance with the Pandas & NumPy imports and calls with eval(), that the error goes away. But I then need to "synchronize" the methods which use these imports.

The Jep calls that don't use those Py libraries can be called asynchronously by those same threads, but I need to close or a "warning" is given by Jep.

In any case that could also be a work around, as the Jep objects should be garbage collected after the method completes.

In the test the Jep instances are effectively paired 1-to-1 with a given thread.

RunsLikeADeere commented 6 years ago

Success! (Or at least so far, so good :- ). Given your suggestion of adding NumPy and Pandas to the JepConfig, I was able to run multiple threads asynchronously and close() the Jep objects (one Jep per thread) with the following code snippet:

    JepConfig aJepConfig = new JepConfig().addSharedModules("pandas");      
    aJepConfig.addSharedModules("numpy");
    Jep aJep = new Jep(aJepConfig);
    aJep.eval("import pandas as pd");
    aJep.eval("import numpy as np");
    aJep.set("aTimeValues1", aTimeValues1);
    aJep.set("aReadingValues1", aReadingValues1);
    aJep.eval("print ('Py type() of aTimeValues1: '+str(type(aTimeValues1)))");
    Object aPyList = aJep.getValue("aTimeValues1");
    p("Type of Time values back from Python: "+aPyList.getClass().getName());

    aJep.eval("param_1 = pd.Series(aReadingValues1, index=aTimeValues1)");
ndjensen commented 6 years ago

In the future you might find this page helpful: https://github.com/ninia/jep/wiki/Workarounds-for-CPython-Extensions

Also in the upcoming 3.8 release there will be another way to work around CPython extension issues, but the release date is TBD.