JuliaImages / ImageView.jl

Interactive display of images and movies
MIT License
135 stars 34 forks source link

Error when trying to change frame of image stack #306

Closed tejasramdas closed 3 months ago

tejasramdas commented 3 months ago

I'm trying to follow the example to show the "MRI" stack from TestImages. imshow works and I'm able to see a window with the first frame and controls to change the frame. However, when I try to go to the next frame or use any of the controls in the window, I get the following error:

 Warning: Executing #35:
└ @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/signals.jl:122
ERROR: could not load symbol "g_bookmark_file_get_type":
/home/para/.julia/artifacts/1cfe0ebb804cb8b0d7d1e8f98e5cda94b2b31b3d/lib/libgobject-2.0.so.0: undefined symbol: g_bookmark_file_get_type
Stacktrace:
 [1] g_type(#unused#::Type{Gtk4.GLib.GBookmarkFile})
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/gen/glib_structs:7
 [2] getindex(gv::Base.RefValue{Gtk4.GLib.GValue}, #unused#::Type{Any})
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/gvalues.jl:234
 [3] (::Gtk4.GLib.var"#134#136"{Ptr{Gtk4.GLib.GValue}, UInt32, Ptr{Gtk4.GLib.GValue}, Vector{Any}, GtkObservables.var"#35#36"})()
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/signals.jl:60
 [4] g_siginterruptible(f::Gtk4.GLib.var"#134#136"{Ptr{Gtk4.GLib.GValue}, UInt32, Ptr{Gtk4.GLib.GValue}, Vector{Any}, GtkObservables.var"#35#36"}, cb::Any)
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/signals.jl:244
 [5] GClosureMarshal(closuref::Ptr{Nothing}, return_value::Ptr{Gtk4.GLib.GValue}, n_param_values::UInt32, param_values::Ptr{Gtk4.GLib.GValue}, invocation_hint::Ptr{Nothing}, marshal_data::Ptr{Nothing})
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/signals.jl:57
 [6] (::Gtk4.GLib.var"#233#234")()
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/loop.jl:83
 [7] g_sigatom(f::Any)
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/signals.jl:211
 [8] glib_main()
   @ Gtk4.GLib ~/.julia/packages/Gtk4/A6vTW/src/GLib/loop.jl:80

This seems to be an error in GLib so I'm not sure if this is the correct place to post this issue. I'm running Ubuntu 20.04 and Julia 1.8.4 and I've updated all the necessary Julia packages. This doesn't seem to be an issue for Julia 1.10.3 but I cannot upgrade because of other dependency issues.

tejasramdas commented 3 months ago

I managed to upgrade to 1.10.3 so this is no longer a problem.