Skip to content

issues with headless machine precompile #685

@vtjnash

Description

@vtjnash

WIthout xvfb-run, this package fails to precompile on a headless machine due to:

[ Info: Precompiling ProfileView [c46f51b8-102a-5cf2-8d2c-8597cb0e0da7]                     
ERROR: LoadError: InitError: Cannot open display:                                           
Stacktrace:                                                                                                                                                                              
  [1] error                                                                                                                                                                                  @ ./error.jl:35                                                                                                                                                                      
  [2] Gtk.GLib.GError(f::Gtk.var"#325#331")
    @ Gtk.GLib ~/.julia/packages/Gtk/oo3cW/src/GLib/gerror.jl:17                            
  [3] __init__()       
    @ Gtk ~/.julia/packages/Gtk/oo3cW/src/Gtk.jl:142                                                                                                                                     
during initialization of module Gtk                                                         
in expression starting at /home/vtjnash/.julia/packages/ProfileView/S6A1N/src/ProfileView.jl:1                                                                                           
in expression starting at stdin:2
ERROR: Failed to precompile ProfileView [c46f51b8-102a-5cf2-8d2c-8597cb0e0da7] to "/home/vtjnash/.julia/compiled/v1.10/ProfileView/jl_q4d6Ny".                                           

But it probably is not necessary to fully initialize gtk for precompile processes (similar to how it delays starting the gtk_main loop until required)

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