无法写入核心转储,Java 运行时环境检测到致命错误

Failed to write core dump , A fatal error has been detected by the Java Runtime Environment

我在 java 中使用 Jfasttext 库使用 fasttext 获取单词的向量时出错。错误是

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

#  SIGSEGV (0xb) at pc=0x00007f412c606444, pid=14379, tid=139916342187776
#
# JRE version: OpenJDK Runtime Environment (7.0_121) (build 1.7.0_121-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.121-b00 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.8
# Distribution: Ubuntu 14.04 LTS, package 7u121-2.6.8-1ubuntu0.14.04.3
# Problematic frame:
# C  [libjniFastTextWrapper.so+0x1e444]  
FastTextWrapper::FastTextApi::getVector(std::string const&)+0x24
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more 

错误发生是因为您还没有加载模型。

您可以了解如何加载经过训练的模型here. There you can also take a look at how to train supervised models or unsupervised models

函数 loadModel() 适用于所有这些模型。