Skip to content

Visualization fails silently on macOS (Apple Silicon M4) - Runs in Batch Mode #40

@YG01110

Description

@YG01110

Description
I am testing Geant4.jl on a MacBook Air M4 (macOS Sequoia). I successfully instantiated the project and ran examples/basic/B1/B1.jl.

Expected Behavior
A visualization window (Qt/OpenGL) should appear showing the detector geometry after the physics initialization.

Actual Behavior
The simulation executes the physics steps correctly (logs attached below), indicating the kernel is functioning on aarch64. However, no visualization window appears. The process exits cleanly as if running in batch mode. No crash or specific Qt/GL error is printed to stdout.

System Info

  • Architecture: Apple Silicon (M4) / aarch64-apple-darwin
  • OS: macOS 15.x (Sequoia)
  • Julia Version: 1.12.1
  • Geant4.jl Version: Latest main (cloned G4Examples.jl)

Logs (Physics Verification)

Geant4 version Name: geant4-11-03-patch-02 [MT]   (25-April-2025)
                       Copyright : Geant4 Collaboration
                      References : NIM A 506 (2003), 250-303
                                 : IEEE-TNS 53 (2006), 270-278
                                 : NIM A 835 (2016), 186-225
                             WWW : [http://geant4.org/](http://geant4.org/)

Checking overlaps for volume Envelope:0 (G4Box) ... OK! 
Checking overlaps for volume Shape1:0 (G4Cons) ... OK! 
Checking overlaps for volume Shape2:0 (G4Trd) ... OK! 

... [Physics Lists Initialized] ...

*********************************************************************************************************
* G4Track Information:   Particle = gamma,   Track ID = 1,   Parent ID = 0
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
    0        0        0     -160        6        0        0        0       World initStep
    1        0        0     -150        6        0       10       10    Envelope Transportation
    2        0        0     -100        6        0       50       60      Shape1 Transportation
    3        0        0      -40        6        0       60      120    Envelope Transportation
    4        0        0       40        6        0       80      200      Shape2 Transportation
    5        0        0      100        6        0       60      260    Envelope Transportation
    6        0        0      120        0        0     19.7      280    Envelope conv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions