processing-sound-archive icon indicating copy to clipboard operation
processing-sound-archive copied to clipboard

SoundFile causes a fatal Java error

Open Starwort opened this issue 7 years ago • 2 comments

Description

When I run the sketch, instead of playing the sound, or even doing nothing at all, the entire sketch crashes with Java throwing a fatal error

Expected Behavior

Kinda obvious, I was expecting the mp3 to play (code matches up with reference's example)

Current Behavior

Crash Error thrown in console:

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (0x20474343), pid=21196, tid=0x0000000000002124
#
# JRE version: Java(TM) SE Runtime Environment (8.0_162-b12) (build 1.8.0_162-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.162-b12 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [KERNELBASE.dll+0x14008]
#
# 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\Starwort\Downloads\processing-3.3.7\hs_err_pid21196.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.
#

The mentioned file can be found here

Steps to Reproduce

import processing.sound.*;
public void setup() {
  String mp3name = "cYsmix - Moonlight Sonata.mp3"; // this file exists in the \data folder of the sketch
  SoundFile file = new SoundFile(this,mp3name);
}

Your Environment

  • Processing version: 3.3.7
  • Operating System and OS version: Windows 10 Home
  • Other information: Graphics card: NVidia GTX 1050 Ti

Possible Causes / Solutions

Extra

Was sent here from default Processing repo.

Starwort avatar Apr 02 '18 21:04 Starwort

I'm having the same issue over here since the java update from 04/25/2018 for Win 10. I've tested with .mp3 and .wav, it crashes w/ booth types. The code only works when I comment the line that calls new SoundFile(). Same problem in processing 3.3.7 & 3.3.6

diasbinho avatar Apr 30 '18 14:04 diasbinho

I was having this problem when my MacBook was plugged into an external monitor which also was set as the sound output. If I run the sketch with the MacBook by itself (sound output to the regular speakers or headphones) there is no crash.

eccentricdevotion avatar May 08 '18 02:05 eccentricdevotion