Open kasperkamperman opened 9 years ago
I'm trying to get a hold of a Windows 10 license to figure this out. Which version did you use?
The professional version. This was an error that a student got. If you need more specific version information I can ask. I can't reproduce it myself, because I don't have Windows10 either installed right now.
i've got this error Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help ? Troubleshooting.
using windows 10 PRO and Processing 3
I have the same problem. Is there a solution yet? hs_err_pid2520.txt
This is not windows 10 specific, I have the exact same issue on windows 7
Internal Error (0x20474343), pid=8984, tid=2612
Hello, I have experienced the very same fatal error for every examples of the sound library. My system is OSX Yosemite on MacBook Pro mid 2007 17inch, and the latest Processing 3. Even though the weird thing, this code works until the song ends. Immediately after the song ends, this got the same fatal error by the Java Runtime Environment, and crashed.
SoundFile soundFile;
int bands=512;
FFT fft;
float[] spectrum = new float[bands];
void setup(){
soundfile = new SoundFile(this, "song.mp3");
soundfile.play();
fft = new FFT(this, bands);
fft.input(soundfile);
}
void draw(){
fft.analyze(spectrum);
}
Hello, I haven't yet found a solution, but I believe this might be useful. I am running on the latest Processing 3, Windows 10 Pro 64 bit PC.
By tweaking with the Amplitude example found on the Processing API, I was able to create a crash.
Original Code Tweaked Code:
void draw() { in.start(); println(amp.analyze()); }
I merely placed in.start() in the draw() loop, causing the crash after a few seconds. It might be possible that simple codes like these are causing the problem. Error [1]
Interestingly, while testing out different scenarios; I've found that rerunning a code multiple times in close succession also seems to cause crashes. I have been trying the FFT example. In this case, the Java Platform simply outright crashed. It seems to crash randomly. I don't have an explanation for this one. Error [2]
And lastly, I've tried technosalon's code and it seems to work, but also randomly crashing occcasionally. And when it runs, somehow the audio seems to be coming out from only one channel. @technosalon 's (Slightly tweaked) Code:
import processing.sound.*;
SoundFile soundFile;
FFT fft;
int bands = 512;
float[] spectrum = new float[bands];
void setup(){
soundFile = new SoundFile(this, "sample.mp3");
soundFile.play();
fft = new FFT(this, bands);
fft.input(soundFile);
}
void draw(){
fft.analyze(spectrum);
}
Error [3]
Error Message [1] Log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0x20474343), pid=5460, tid=0x0000000000000954
#
# 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 [KERNELBASE.dll+0x71f28]
#
# 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:
# D:\Programs\processing-3.1.1\hs_err_pid5460.log
Compiled method (c1) 9700 626 ! 3 sun.java2d.SunGraphics2D::copyImage (107 bytes)
total in heap [0x0000000002b33cd0,0x0000000002b35340] = 5744
relocation [0x0000000002b33df0,0x0000000002b33ea8] = 184
main code [0x0000000002b33ec0,0x0000000002b34ae0] = 3104
stub code [0x0000000002b34ae0,0x0000000002b34ba8] = 200
metadata [0x0000000002b34ba8,0x0000000002b34bc0] = 24
scopes data [0x0000000002b34bc0,0x0000000002b35098] = 1240
scopes pcs [0x0000000002b35098,0x0000000002b35228] = 400
dependencies [0x0000000002b35228,0x0000000002b35230] = 8
handler table [0x0000000002b35230,0x0000000002b352e8] = 184
nul chk table [0x0000000002b352e8,0x0000000002b35340] = 88
Compiled method (c1) 9701 691 3 processing.awt.PGraphicsJava2D::beginDraw (94 bytes)
total in heap [0x0000000002b72810,0x0000000002b73b28] = 4888
relocation [0x0000000002b72930,0x0000000002b72a40] = 272
main code [0x0000000002b72a40,0x0000000002b735e0] = 2976
stub code [0x0000000002b735e0,0x0000000002b73718] = 312
oops [0x0000000002b73718,0x0000000002b73720] = 8
metadata [0x0000000002b73720,0x0000000002b73760] = 64
scopes data [0x0000000002b73760,0x0000000002b73950] = 496
scopes pcs [0x0000000002b73950,0x0000000002b73ae0] = 400
dependencies [0x0000000002b73ae0,0x0000000002b73af8] = 24
nul chk table [0x0000000002b73af8,0x0000000002b73b28] = 48
#
# 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.
#
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.
Error Message [2]
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.
Error Message [3]
ERROR: /synth/map/input: Audio input index 0 out of range for synth 2
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.
I have the same issue on my Windows 10 Pro PC. I can replicate the crash with the following minimal code:
import processing.sound.*;
WhiteNoise noise;
void setup() {
noise = new WhiteNoise(this);
}
The crash is caused by the assignment command noise = new WhiteNoise(this)
, not the instantiation (WhiteNoise noise
).
The error I'm getting with Sound v1.3.2 and the 64-bit variant of Processing v3.1.1 is as follows:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0x20474343), pid=5588, tid=0x00000000000015f8
#
# 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 [KERNELBASE.dll+0x71f28]
#
# 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:\Users\mabay\Desktop\processing-3.1.1-64\hs_err_pid5588.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.
#
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.
The error I'm getting with the 32-bit variant of Processing v3.1.1 is:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'std::runtime_error'
what(): RtApiWasapi::probeDeviceOpen: Render device selected as input device.
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.
Hi ! I have the same issue. My sketch was running well since I wanted to play any music. I have spend many hours to find something, and I've seen Minecraft gamers had this issue too. (cf : http://www.minecraftforum.net/forums/support/unmodified-minecraft-client/1851246-failed-to-write-core-dump-minidumps-are-not).
Is there somebody find out any solution ?
It's unbelievable...
Thank for your answers !
Hi.
I'm struggling for a few days with exactly same problem as you guys. I'm developing a quite simple Java app which communicates with external devices via virtual COM ports. Since all libraries for such commnication for Java just plain suck, and I've tried them all, I decided to write this piece of code in C++, create a DLL and use it in Java thanks to Java Native Interface. I tested this piece of code through and through and it works fine, but when I do this:
static{
System.loadLibrary("serial");
}
JVM crashes in the exactly same manner as you guys described... But not always. Like 20% of a time. If it doesn't crash on startup (and I load this library during initialization, every time) my soft runs smoothly, without any problems. But if it crashes, it crashes for good, no Exception nor Error is thrown, there is really no way to recover.
I compiled it under Windows 10, 64 bit, using following flags for g++:
-std=c++14 -Wl,--add-stdcall-alias -I"%JAVA_HOME%\include" -O2 -I"%JAVA_HOME%\include\win32" -shared -o serial.dll
also, g++ --version
returns as follows:
g++ (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 6.2.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'll try with different version of g++, also I'll try compiling it with 32bit compiler and run it with 32bit Java as well, but it really doesn't make much sense for me why it crashes so randomly without any obvious pattern. If you have any simmilar to mine experience with JNI, please share it.
Let me also mention I'm quite familiar with JNI, done some projects for Android (I wrote UDP protocol communication part in C++), I know fairly well how to use it, so I really don't suspect there's something wrong with my code.
TL;DR I suspect there's something wrong with Java JNI.
We have the same problem with our school computers. hs_err_pid8156_log.txt
Not sure if there is anything we can try?
Hi everyone,
After many tries, I've thrown the towel...
But, I found something else to play some sound, two ways :
1 - Using the video library, you can play sound as movie clip.
`import processing.video.*;
Movie audio;
void setup() {
audio = new Movie(this, "your_audioFile.wav"); //Works with .wav, .mp3 and *.aiff files. }
void draw() {
audio.play();
} `
2- Using Minim library (from libraries manager). I would strongly suggest to use this library, it is really powerful and you can find a ton of using possibilities in the java examples.
Hope it will be helpful for all of you !
Bumping for attention, same crash, Win10 64 Pro.
log: https://pastebin.com/VPaXYiab
This is using the latest (1.4) sound library, on Processing Rev 0260. The crash happens always, when running the FFT example code.
I'm having the same issues. Even the examples that come with the Sound library won't work. I've attached my error log file.
I'm using a Windows 7 and the library was working just a few weeks ago...
All Sound library examples crash with this error message.
System: Windows 10 Pro, Processing 3.0b5
The logfile (I couldn't attach it, so hereby in text) hs_err_pid33468.log: