Linux: Crash on startup

Bug #2016161 reported by Trevor D'Arcy-Evans
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Committed
Undecided
Unassigned

Bug Description

git commit de3e6855074bef9f832a40e2c08ca1d34120324b

OS:
Linux Mint 21.1
dotnet 7.0.203

Callstack:

(pinta:99755): GLib-GObject-WARNING **: 16:01:05.585: g_object_get_is_valid_property: object class 'GListStore' has no property named 'n-items'
Unhandled exception. System.NotSupportedException: Unable to extract the value for type ''. The type (id: 0) is unknown.
   at GObject.Value.CheckComplexTypes(UIntPtr gtype)
   at GObject.Value.Extract()
   at GObject.Value.Extract[T]()
   at GObject.Property`2.Get(K obj)
   at Gio.ListStore.get_NItems()
   at Pinta.Gui.Widgets.LayersListView.HandleHistoryChanged(Object sender, EventArgs e) in /home/trevorde/dev/Pinta/Pinta.Gui.Widgets/Widgets/Layers/LayersListView.cs:line 135
   at Pinta.Core.DocumentHistory.PushNewItem(BaseHistoryItem newItem) in /home/trevorde/dev/Pinta/Pinta.Core/Classes/DocumentHistory.cs:line 88
   at Pinta.Core.WorkspaceManager.NewDocument(Size imageSize, Color backgroundColor) in /home/trevorde/dev/Pinta/Pinta.Core/Managers/WorkspaceManager.cs:line 185
   at Pinta.MainClass.OpenFilesFromCommandLine(List`1 extra) in /home/trevorde/dev/Pinta/Pinta/Main.cs:line 153
   at Pinta.MainClass.<>c__DisplayClass0_0.<Main>b__0(Application _, EventArgs _) in /home/trevorde/dev/Pinta/Pinta/Main.cs:line 114
   at GObject.Signal`1.<>c__DisplayClass11_0.<Connect>b__0(Value returnValue, Value[] parameters)
   at GObject.Closure.InternalCallback(IntPtr closure, IntPtr returnValuePtr, UInt32 nParamValues, ValueData[] paramValuesData, IntPtr invocationHint, IntPtr userData)
Aborted (core dumped)

Libs:
dpkg -l libgtk*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-=================-============-===========================================================
ii libgtk-3-0:amd64 3.24.33-1ubuntu2 amd64 GTK graphical user interface library
ii libgtk-3-bin 3.24.33-1ubuntu2 amd64 programs for the GTK graphical user interface library
ii libgtk-3-common 3.24.33-1ubuntu2 all common files for the GTK graphical user interface library
un libgtk-3-dev <none> <none> (no description available)
un libgtk-4-0 <none> <none> (no description available)
ii libgtk-4-1:amd64 4.6.6+ds-0ubuntu1 amd64 GTK graphical user interface library
ii libgtk-4-bin 4.6.6+ds-0ubuntu1 amd64 programs for the GTK graphical user interface library
ii libgtk-4-common 4.6.6+ds-0ubuntu1 all common files for the GTK graphical user interface library
ii libgtk-4-dev:amd64 4.6.6+ds-0ubuntu1 amd64 development files for the GTK library
un libgtk-4-doc <none> <none> (no description available)
un libgtk-4-media-ffmpeg <none> <none> (no description available)
un libgtk-4-media-gstreamer <none> <none> (no description available)
ii libgtk-layer-shell0 0.7.0-1 amd64 Wayland Layer Shell protocol desktop component library
un libgtk2-perl <none> <none> (no description available)
ii libgtk2.0-0:amd64 2.24.33-2ubuntu2 amd64 GTK graphical user interface library - old version
ii libgtk2.0-bin 2.24.33-2ubuntu2 amd64 programs for the GTK graphical user interface library
ii libgtk2.0-cil 2.12.40-3ubuntu1 amd64 CLI binding for the GTK+ toolkit 2.12
ii libgtk2.0-common 2.24.33-2ubuntu2 all common files for the GTK graphical user interface library
ii libgtk3-perl 0.038-1 all Perl bindings for the GTK+ graphical user interface library
un libgtkmm-3.0-1 <none> <none> (no description available)
ii libgtkmm-3.0-1v5:amd64 3.24.5-1build1 amd64 C++ wrappers for GTK+ (shared libraries)
ii libgtksourceview-3.0-1:amd64 3.24.11-2build1 amd64 shared libraries for the GTK+ syntax highlighting widget
ii libgtksourceview-3.0-common 3.24.11-2build1 all common files for the GTK+ syntax highlighting widget
ii libgtksourceview-4-0:amd64 4.8.3-1 amd64 shared libraries for the GTK+ syntax highlighting widget
ii libgtksourceview-4-common 4.8.3-1 all common files for the GTK+ syntax highlighting widget

description: updated
Revision history for this message
Cameron White (cameronwhite91) wrote :

Somewhat related to bug 2016162, I think in this case a symbol from gio / glib 2.74 is required. I think this should be possible to avoid in this case , but it's fairly likely that Pinta 2.2 will probably require a recent GTK / glib version

Changed in pinta:
milestone: none → 2.2
status: New → Triaged
Revision history for this message
Cameron White (cameronwhite91) wrote :

Fixed by https://github.com/PintaProject/Pinta/commit/d115d16465ff83b65bc18527b77f34ef58d0f8bf which checks the GTK version in the configure script
https://github.com/PintaProject/Pinta/commit/fe8e739abd1696635c74067e840d6ef98fa06591 removes the usage of this newer symbol so more of Pinta might still work on an older GTK version, but it's not guaranteed to work

Changed in pinta:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.