JDK-8248365 : Debug build crashes on Windows when playing media file
  • Type: Bug
  • Component: javafx
  • Sub-Component: media
  • Affected Version: 8u271,openjfx15,openjfx16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-06-26
  • Updated: 2020-09-25
  • Resolved: 2020-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8u271Fixed openjfx11.0.9Fixed
Related Reports
Relates :  
Description
This issue is always reproducible, but only with native debug enabled. I was able to reproduce it on Windows. Other platforms where not tested. Looks like regression from JDK-8239095. To reproduce it just load any media file and crash will happen when media stack loads glib.
Comments
Changeset: 946590e6 Author: Alexander Matveev <almatvee@openjdk.org> Date: 2020-07-13 20:43:01 +0000 URL: https://git.openjdk.java.net/jfx/commit/946590e6
13-07-2020

I did not figure out root cause for this issue myself, but according to several bugs filed against libffi this is due to how assembly is written for libffi and this check is triggered due to libffi modifying stack frame. Solutions are is to disable this checks or use release build. This issue will be fixed by disabling stack frame run-time error checking for entire libffi in debug build. See following external issues for libffi for same problem: https://github.com/libffi/libffi/issues/400 https://github.com/centricular/libffi/commit/53291b332b1bc061a3409d3b60c38f313609b98e https://github.com/microsoft/vcpkg/issues/10230
13-07-2020

https://github.com/openjdk/jfx/pull/265
11-07-2020