Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

issues with headless machine precompile #685

Open
vtjnash opened this issue Jan 17, 2023 · 1 comment
Open

issues with headless machine precompile #685

vtjnash opened this issue Jan 17, 2023 · 1 comment

Comments

@vtjnash
Copy link
Contributor

vtjnash commented Jan 17, 2023

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)

@giordano
Copy link
Contributor

Duplicate of #346

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants