Java eclipse,为什么JVM崩溃?

标签 java crash jvm

我有最新的 Eclipse 版本。 我无法运行大多数包含以下内容的代码: 全屏(真); 包含 mp3/mp4 文件。 即使这些代码在我的其他计算机上运行良好。

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x000007feef805c01, pid=2660, tid=0x00000000000016ec
#
# JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [msvcr120.dll+0x95c01]
#
# 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:\44\Bandymai\hs_err_pid2660.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.
#

还有这个。

Exception in Application start method
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    at java.lang.Thread.run(Unknown Source)
Caused by: MediaException: MEDIA_INACCESSIBLE : c
    at javafx.scene.media.Media.<init>(Media.java:409)
    at SpalvosFonas.MediaMP4.start(MediaMP4.java:26)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
    ... 1 more
Exception running application SpalvosFonas.MediaMP4

如何解决?我有windows7 64位。

最佳答案

该应用程序使用 native 库 msvcr120.dll (Microsoft Visual Studio 2013),并且由于某种原因而崩溃。也许另一台计算机有这个 dll 的不同版本,也许是不同的 java 版本。

我会检查两个环境是否相同并尝试尽可能更新。

关于Java eclipse,为什么JVM崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41772770/

相关文章:

Java 垃圾收集引起的延迟影响性能

java - 如何检测以链表形式实现的图中的循环?

windows - 查找崩溃的函数名称

Maven - 无法为对象堆错误保留足够的空间

java - ASM 5 : when initializing a ClassWriter, COMPUTE_MAXS 和 COMPUTE_FRAMES 有什么区别?

java - Kotlin 中的哪些语言功能可能导致内存泄漏?

java - Spring Data JPA - 如何缓存实体,该实体包含在许多其他实体中

java - 如何在android中检查日期在10天内

android - 应用程序相机崩溃

objective-c - iOS崩溃: “this class is not key value coding-compliant for the key url”