Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javafx_font.dll Error when executing JavaFX tests #49

Closed
DavidWich opened this issue Jan 28, 2019 · 6 comments
Closed

javafx_font.dll Error when executing JavaFX tests #49

DavidWich opened this issue Jan 28, 2019 · 6 comments
Assignees
Labels
bug Something isn't working windows Windows-related issue
Milestone

Comments

@DavidWich
Copy link

Describe the bug

When executing JavaFX controller tests with Maven (either specific or through the test lifecycle) I get the following error:

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

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffb116650a6, pid=2984, tid=0x00000000000008c0

JRE version: OpenJDK Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
Java VM: OpenJDK 64-Bit Server VM (25.202-b08 mixed mode windows-amd64 compressed oops)
Problematic frame:
C  [javafx_font.dll+0x50a6]

This happens when a javafx.stage.Stage tries to show() a javafx.scene.Scene .

This occurs in the Amazon Corretto 8 versions u192, u202, u202.08.2 (64 Bit)

This works in the Oracle versions.

To Reproduce

Try to show() a javafx.scene.Scene with a javafx.stage.Stage

Expected behavior

The tests should be executed correctly like Oracle JDK x64: build 1.8.0_192-b12, Oracle JDK x86: build 1.8.0_201-b09

Platform information

OS: Windows 10 Enterprise (x64)
Version: build 1.8.0_192-amazon-corretto-preview-b12 (x64), build 1.8.0_202-b08 (x64) and the new 1.8.202.08.2 (x64)
Maven: apache-maven-3.6.0

Additional context

As I have noticed, this bug also occurs in Azul ZuluFX 1.8.0 u192 (build 1.8.0_192-b01). As this works with the Oracle JDK it may be a bug in both distributions (Corretto and ZuluFX). If this is not related to Corretto I apologize.

This error generates a hs_err_pid.log. If this is needed for further investigations I will post it.

@yoroto yoroto self-assigned this Jan 28, 2019
@davecurrie davecurrie added the bug Something isn't working label Jan 29, 2019
@davecurrie
Copy link
Contributor

@DavidWich Thanks for the report, we'll look into it further and update this issue with findings.

@DavidWich
Copy link
Author

DavidWich commented Feb 4, 2019

I created a sample project to help you recreating the issue. In the process of creating it I noticed that this is related to the Maven Surefire Plugin, or rather the execution in headless mode. That's why the error appears through Maven (command line) and not through IDE-Test-Execution (which I noticed as well that this makes a difference).

The sample project is available here:
https://gist.github.com/DavidWich/2f26d5b19481841a7ce8b3bc967f5f12

EDIT: I updated the library versions but it either made no difference or showed different errors.

NOTE: When removing the Text item in GuiForm.fxml (l. 8) there will be no error on test execution.

@yoroto
Copy link

yoroto commented Apr 3, 2019

I've tried this project in IntelliJ Idea, and also didn't reproduce the error. If I understand correctly, this only happened when you run it using the Surefire plugin from command line?

@DavidWich
Copy link
Author

Yes, it did. Currently I have to run these kind of tests through an IDE (Eclipse in this case) and skip them in the headless environment.

@rsabhi
Copy link

rsabhi commented Jun 17, 2019

Hi, Is there a plan to get this fixed in Corretto 8? or any alternate plan get rid of this error? Thanks

@jguo11 jguo11 added this to the 8u222 milestone Jun 24, 2019
@TianminShi TianminShi added the windows Windows-related issue label Jul 17, 2019
@TianminShi TianminShi assigned TianminShi and unassigned yoroto Jul 17, 2019
@TianminShi
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Windows-related issue
Projects
None yet
Development

No branches or pull requests

6 participants