Thrameos / jpype

Thrameos personal sandbox for enhancements to jpype to send to originell.
Other
0 stars 1 forks source link

Segfault on double startJVM() #14

Closed Thrameos closed 6 years ago

Thrameos commented 7 years ago

To reproduce call

import jpype
jpype.startJVM(jpype.getDefaultJVMPath())
try:
   jpype.startJVM(jpype.getDefaultJVMPath())
except RuntimeError:
  pass
a=jpype.JArray(jpype.JInt, 1)(10)
Thrameos commented 7 years ago

As this is similar to other corrections in bulletproof I have moved it to there.

Thrameos commented 7 years ago

2 is solved by this patch

try:
    jpype.startJVM(jpype.getDefaultJVMPath())
except OSError:
   pass