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

No GUI shows up after loading TruffleSqueak-22.1.0.image on GraalVM CE 22.1 #168

Closed
fifthmonk opened this issue Jun 7, 2022 · 7 comments
Assignees

Comments

@fifthmonk
Copy link

Nothing show up after loading the TruffleSqueak-22.1.0.image. I have no issue if running in headless mode. My machine is running on Mac OS 12.4 (x64).

@fniephaus
Copy link
Member

Hi @fifthmonk, thanks for raising this. What's the console output when you run this? Can you run code headlessly (e.g., trufflesqueak --code "1 + 2 * 3")?

@fifthmonk
Copy link
Author

fifthmonk commented Jun 11, 2022

Please find the 2 console outputs below for your reference:

trufflesqueak --code "1 + 2 * 3"
[trufflesqueak] Running TruffleSqueak-22.1.0.image on GraalVM CE (latency mode)...
[trufflesqueak] Image loaded in 1242ms.
[trufflesqueak] Evaluating '1 + 2 * 3'...
[trufflesqueak] Result: 9

trufflesqueak --code "Smalltalk allClasses size"
[trufflesqueak] Running TruffleSqueak-22.1.0.image on GraalVM CE (latency mode)...
[trufflesqueak] Image loaded in 1337ms.
[trufflesqueak] Evaluating 'Smalltalk allClasses size'...
[trufflesqueak] Result: 3445

@fniephaus
Copy link
Member

What does the output look like when you run without arguments / in headful mode? Also, could you try with GraalVM 22.0.0? Does TruffleSqueak 22.0.0 show a GUI?

@fifthmonk
Copy link
Author

fifthmonk commented Jun 11, 2022

The GUI shows up if running with GraalVM 22.0.0.2. If running with GraalVM 22.1, nothing display on the console after showing the message [trufflesqueak] Image loaded in XXXXms.

@fniephaus
Copy link
Member

That's good to know! So it looks like there's a regression in 22.1.

Is there a SqueakDebug.log in the graalvm-ce-java11-22.1.0/languages/smalltalk/resources directory of your 22.1 installation? You can find the directory with dirname "$(trufflesqueak --print-image-path)". If there's a SqueakDebug.log, could you please share it here?

@fifthmonk
Copy link
Author

Unlike 22.0.0.2, there is no SqueakDebug.log file can be found under the directory /Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.1.0/Contents/Home/languages/smalltalk/resources

@fniephaus
Copy link
Member

Thanks for following up. I managed to reproduce this on macOS and traced it down to the language library launcher. Apparently, it does not allow AWT to function properly. I'm looking into a fix for the 22.2 release.

@fniephaus fniephaus self-assigned this Jun 14, 2022
fniephaus added a commit that referenced this issue Jun 14, 2022
fniephaus added a commit that referenced this issue Jun 14, 2022
This also ensures that TruffleSqueak is not launched via JNI, which causes AWT not to work on macOS (fixes #168).
fniephaus added a commit that referenced this issue Jun 14, 2022
This also ensures that TruffleSqueak is not launched via JNI, which causes AWT not to work on macOS (fixes #168).
fniephaus added a commit that referenced this issue Jun 14, 2022
This also ensures that TruffleSqueak is not launched via JNI, which causes AWT not to work on macOS when a language library launcher is used (see #168).
fniephaus added a commit that referenced this issue Jun 14, 2022
This also ensures that TruffleSqueak is not launched via JNI, which causes AWT not to work on macOS when a language library launcher is used (see #168).
fniephaus added a commit that referenced this issue Jun 14, 2022
This also ensures that TruffleSqueak is not launched via JNI, which causes AWT not to work on macOS when a language library launcher is used (see #168).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants