Gtkada.File_Selection raises error: unhandled signal
Nobody has claimed this yet.
- Dominant language
- Ada
- Stars
- 110
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
Good day,
I'm trying to use Gtkada.File_Selection and its function File_Selection_Dialog for an application reading files. The package's description says
"This package provides a high level support for creating file selection dialogs by handling the signals internally"
However, when using it my program raises PROGRAM_ERROR : unhandled signal
I tried to directly use Gtk.File_Chooser and Gtk.File_Chooser_dialog but it leads to the same error.
Here is the procedure called for selecting a file and leading to the error:
Retour is an unbounded string
procedure Button_Select_File_Clicked
(Self : access Gtk_Button_Record'Class) is
begin
Retour := To_Unbounded_String
(File_Selection_Dialog (Title => "Select your file",
Default_Dir => "",
Dir_Only => False,
Must_Exist => True) );
end Button_Select_File_Clicked;
Here is the full error message:
Gtk-Message: 10:32:33.938: Failed to load module "pk-gtk-module"
Gtk-Message: 10:32:33.938: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:32:33.939: Failed to load module "pk-gtk-module"
Gtk-Message: 10:32:33.940: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/home/bob/Applications/Gnat_IDE/Gnat-community/etc/fonts/fonts.conf", line 86: unknown element "blank"
(log_filter_main:10478): Gtk-WARNING **: 10:32:36.273: Error loading theme icon 'image-missing' for stock: Failed to load /home/bob/Applications/Gnat_IDE/Gnat-community/share/icons/Adwaita/16x16/status/image-missing.png: Format d?image non reconnu
(log_filter_main:10478): Gdk-CRITICAL **: 10:32:36.273: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(log_filter_main:10478): GLib-GObject-CRITICAL **: 10:32:36.273: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
**
Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /home/bob/Applications/Gnat_IDE/Gnat-community/share/icons/Adwaita/16x16/status/image-missing.png: Format d?image non reconnu (gdk-pixbuf-error-quark, 3)
raised PROGRAM_ERROR : unhandled signal
I'm not sure if the problems come from Gtk or GtkAda.
Thank you for your time.
PS: I attached some files in case you need it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure from Button_Select_File_Clicked and reviewing the attached log_filter.zip alongside the GTK warnings about missing modules, icons, and pixbuf loading. Done means identifying whether the unhandled signal originates in GTK or GtkAda and documenting a verified resolution.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100