JAVA 写入 Python Flask 时出现致命错误 API
JAVA fatal error when writing Python Flask API
我制作了烧瓶 + python + zerodb afgh => afgh api
并使用 postman 测试 api,但在调用 afgh 方法时发生 java 致命错误
zerodb afgh 是使用 jar
的 python 代码
我试着 ulimit -c unlimited
export _JAVA_OPTIONS=-Xmx4096m
但这行不通。
我的环境:windows10、ubuntu 16.04(安装 windows 应用程序)、16G 内存、python2.7、java
我的错误:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f989dec6d70, pid=5720, tid=0x00007f9889400700
#
# JRE version: OpenJDK Runtime Environment (8.0_181-b13) (build 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13)
# Java VM: OpenJDK 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [_jpype.so+0x2fd70] JPJavaEnv::FindClass(char const*)+0x20
#
# Core dump written. Default location: /mnt/c/Users/hs/test/flaskrest/core or core.5720
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
更多日志:https://github.com/rkdlrl/flaskrest/blob/master/hs_err_pid5720.log
github.com/jpype-project/jpype/issues/279
在 afgh 代码之前使用 attachThreadToJVM()
我制作了烧瓶 + python + zerodb afgh => afgh api
并使用 postman 测试 api,但在调用 afgh 方法时发生 java 致命错误
zerodb afgh 是使用 jar
的 python 代码我试着 ulimit -c unlimited
export _JAVA_OPTIONS=-Xmx4096m
但这行不通。
我的环境:windows10、ubuntu 16.04(安装 windows 应用程序)、16G 内存、python2.7、java
我的错误:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f989dec6d70, pid=5720, tid=0x00007f9889400700
#
# JRE version: OpenJDK Runtime Environment (8.0_181-b13) (build 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13)
# Java VM: OpenJDK 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [_jpype.so+0x2fd70] JPJavaEnv::FindClass(char const*)+0x20
#
# Core dump written. Default location: /mnt/c/Users/hs/test/flaskrest/core or core.5720
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
更多日志:https://github.com/rkdlrl/flaskrest/blob/master/hs_err_pid5720.log
github.com/jpype-project/jpype/issues/279
在 afgh 代码之前使用 attachThreadToJVM()