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

The Docker contrainer doesn't work on Macbook M4 #183

Open
tha022 opened this issue Feb 6, 2025 · 8 comments
Open

The Docker contrainer doesn't work on Macbook M4 #183

tha022 opened this issue Feb 6, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@tha022
Copy link

tha022 commented Feb 6, 2025

Expected

docker run -it --rm -p 8080:8080 -v /Users/tha022/projectsGit/seniordev/structurizr:/usr/local/structurizr structurizr/lite
Expected this to start a server on port 8080.

Actual


docker run -it --rm -p 8080:8080 -v /Users/tha022/projectsGit/seniordev/structurizr:/usr/local/structurizr structurizr/lite
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0x0000ffff9633fc5c, pid=1, tid=7
#
# JRE version:  (21.0.5+11) (build )
# Java VM: OpenJDK 64-Bit Server VM (21.0.5+11-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j  java.lang.System.registerNatives()V+0 [email protected]
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# //hs_err_pid1.log
[0.012s][warning][os] Loading hsdis library failed
#
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

[error occurred during error reporting (), id 0x5, SIGTRAP (0x5) at pc=0x0000ffffaaf471ec]

Steps to reproduce

Run on Macbook M4 chip.

Version/build information

I use latest version from Docker hub
https://hub.docker.com/r/structurizr/lite

Severity

Minor

Priority

Low (I have no budget and there's no rush, please fix this for free)

More information

I use latest version from Docker Hub
https://hub.docker.com/r/structurizr/lite

@tha022 tha022 added the bug Something isn't working label Feb 6, 2025
@armandsavotins
Copy link

Same issue for me as well

@simonbrowndotje
Copy link
Contributor

I've just bumped the Docker base image to eclipse-temurin:21.0.6_7-jre-noble although I think I read somewhere that the underlying fix is actually in Java 21.0.7.

I don't have an M4 and this change isn't released yet, but you're welcome to build from source or try the preview build to see if this resolves the problem.

@PeterDal-Jen
Copy link

Hi,

I just tried running the preview container on a M4 mac pro - it unfortunately throws the same error as stated in the original bug report(just on the new jre version).

@simonbrowndotje
Copy link
Contributor

Thanks for the update @PeterDal-Jen.

@tha022
Copy link
Author

tha022 commented Feb 17, 2025

Thanks for checking @simonbrowndotje. Anyway, I got really nice diagrams by using the online version, thanks a lot for the tool!

@joshyim
Copy link

joshyim commented Feb 18, 2025

@tha022 @simonbrowndotje I ran into a similar issue. By appending --platform linux/amd64, it works for me. Maybe a viable workaround for you.

full command I used:
docker run --platform linux/amd64 -it --rm --name [redacted] -p 8080:8080 -v $HOME/projects/[redacted]:/usr/local/structurizr structurizr/lite

@Bumboclaat
Copy link

@joshyim I can confirm, this workaround works for me as well.
Thank you very much!

@simonbrowndotje
Copy link
Contributor

I'm guessing all M4 Macs are being shipped with Sequoia ... can anybody confirm whether this Docker issue is a Sequoia issue or just an M4 issue?

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

No branches or pull requests

6 participants