Pinta hates a specific image and crashes

Bug #1966058 reported by Stdedos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
New
Undecided
Unassigned

Bug Description

$ /usr/bin/mono /usr/lib/pinta/Pinta.exe
Gtk-Message: 12:41:16.037: Failed to load module "canberra-gtk-module"
free(): invalid pointer

=================================================================
 Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
 Native stacktrace:
=================================================================
 0x55802c47beb5 - /usr/bin/mono : (null)
 0x55802c47c250 - /usr/bin/mono : (null)
 0x55802c429129 - /usr/bin/mono : (null)
 0x55802c47b467 - /usr/bin/mono : (null)
 0x7f32bec273c0 - /lib/x86_64-linux-gnu/libpthread.so.0 : (null)
 0x7f32bea4903b - /lib/x86_64-linux-gnu/libc.so.6 : gsignal
 0x7f32bea28859 - /lib/x86_64-linux-gnu/libc.so.6 : abort
 0x7f32bea9329e - /lib/x86_64-linux-gnu/libc.so.6 : (null)
 0x7f32bea9b32c - /lib/x86_64-linux-gnu/libc.so.6 : (null)
 0x7f32bea9cb5c - /lib/x86_64-linux-gnu/libc.so.6 : (null)
 0x40a18283 - Unknown

=================================================================
 Telemetry Dumper:
=================================================================
Pkilling 0x7f32bea01780 from 0x7f32bb887700
Entering thread summarizer pause from 0x7f32bb887700
Finished thread summarizer pause from 0x7f32bb887700.

Waiting for dumping threads to resume

=================================================================
 External Debugger Dump:
=================================================================
[New LWP 274332]
[New LWP 274333]
[New LWP 274334]
[New LWP 274335]
[New LWP 274345]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f32beb189cf in __GI___poll (fds=0x55802d8b1620, nfds=3, timeout=493) at ../sysdeps/unix/sysv/linux/poll.c:29
29 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
  Id Target Id Frame
* 1 Thread 0x7f32bea01780 (LWP 274331) "mono" 0x00007f32beb189cf in __GI___poll (fds=0x55802d8b1620, nfds=3, timeout=493) at ../sysdeps/unix/sysv/linux/poll.c:29
  2 Thread 0x7f32bdbff700 (LWP 274332) "SGen worker" futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55802c86de08) at ../sysdeps/nptl/futex-internal.h:183
  3 Thread 0x7f32bb887700 (LWP 274333) "Finalizer" 0x00007f32beae8caf in __GI___wait4 (pid=274381, stat_loc=0x7f32bb884f14, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
  4 Thread 0x7f32b94ab700 (LWP 274334) "gmain" 0x00007f32beb189cf in __GI___poll (fds=0x55802cd890b0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  5 Thread 0x7f32b8caa700 (LWP 274335) "gdbus" 0x00007f32beb189cf in __GI___poll (fds=0x55802cd1de70, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  6 Thread 0x7f32a5ca8700 (LWP 274345) "pool-Pinta" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38

Thread 6 (Thread 0x7f32a5ca8700 (LWP 274345)):
#0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007f32ba3d1746 in g_cond_wait_until () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f32ba354581 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f32ba354ba6 in g_async_queue_timeout_pop () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f32ba3ae419 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f32ba3adad1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007f32bec1b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7 0x00007f32beb25163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f32b8caa700 (LWP 274335)):
#0 0x00007f32beb189cf in __GI___poll (fds=0x55802cd1de70, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007f32ba38436e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f32ba3846f3 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f32ba641f8a in ?? () from /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4 0x00007f32ba3adad1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f32bec1b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6 0x00007f32beb25163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f32b94ab700 (LWP 274334)):
#0 0x00007f32beb189cf in __GI___poll (fds=0x55802cd890b0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007f32ba38436e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f32ba3844a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f32ba3844f1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007f32ba3adad1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007f32bec1b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6 0x00007f32beb25163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f32bb887700 (LWP 274333)):
#0 0x00007f32beae8caf in __GI___wait4 (pid=274381, stat_loc=0x7f32bb884f14, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1 0x000055802c47c0bf in ?? ()
#2 0x000055802c47c250 in ?? ()
#3 0x000055802c429129 in ?? ()
#4 0x000055802c47b467 in ?? ()
#5 <signal handler called>
#6 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7 0x00007f32bea28859 in __GI_abort () at abort.c:79
#8 0x00007f32bea9329e in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f32bebbd298 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#9 0x00007f32bea9b32c in malloc_printerr (str=str@entry=0x7f32bebbb4c1 "free(): invalid pointer") at malloc.c:5347
#10 0x00007f32bea9cb5c in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:4173
#11 0x0000000040a18283 in ?? ()
#12 0x000055802d412360 in ?? ()
#13 0x00007f32bb886ca0 in ?? ()
#14 0x000055802ca595c0 in ?? ()
#15 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f32bdbff700 (LWP 274332)):
#0 futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55802c86de08) at ../sysdeps/nptl/futex-internal.h:183
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55802c86de20, cond=0x55802c86dde0) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0x55802c86dde0, mutex=0x55802c86de20) at pthread_cond_wait.c:638
#3 0x000055802c6d0dc6 in ?? ()
#4 0x00007f32bec1b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#5 0x00007f32beb25163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f32bea01780 (LWP 274331)):
#0 0x00007f32beb189cf in __GI___poll (fds=0x55802d8b1620, nfds=3, timeout=493) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007f32ba38436e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f32ba3846f3 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f32babcc092 in gtk_main () from /lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4 0x00000000409df250 in ?? ()
#5 0x000055802caaae40 in ?? ()
#6 0x000055802ca5d578 in ?? ()
#7 0x00007ffcfb2b1138 in ?? ()
#8 0x00007ffcfb2b12e0 in ?? ()
#9 0x0000000041daa010 in ?? ()
#10 0x000055802ca75f30 in ?? ()
#11 0x00007ffcfb2b1060 in ?? ()
#12 0x00007ffcfb2b0f20 in ?? ()
#13 0x0000000000000000 in ?? ()
[Inferior 1 (process 274331) detached]

=================================================================
 Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7f32bea4903b):0x7f32bea4902b d2 4c 89 ce bf 02 00 00 00 b8 0e 00 00 00 0f 05 .L..............
0x7f32bea4903b 48 8b 84 24 08 01 00 00 64 48 33 04 25 28 00 00 H..$....dH3.%(..
0x7f32bea4904b 00 75 26 44 89 c0 48 81 c4 18 01 00 00 c3 0f 1f .u&D..H.........
0x7f32bea4905b 80 00 00 00 00 48 8b 15 09 8e 1a 00 f7 d8 41 b8 .....H........A.

=================================================================
 Managed Stacktrace:
=================================================================
   at <unknown> <0xffffffff>
   at GLib.SList:g_free <0x000a2>
   at GLib.ListBase:Empty <0x001a4>
   at GLib.ListBase:Dispose <0x0002b>
   at GLib.ListBase:Finalize <0x00035>
   at System.Object:runtime_invoke_virtual_void__this__ <0x0008c>
=================================================================
Aborted (core dumped)

(file will follow once I manage to get Pinta to not crash in order to sanitize it)

Additionally, (maybe as part of this bug?) I see that the selection rectangle sometimes does not render as I expected. e.g.:
1. On a non-selected area
2. I click to start the selection

Expected:
I can start dragging and finish my selection

Actual:
The whole image is selected

Revision history for this message
Stdedos (stdedos) wrote :
Revision history for this message
Cameron White (cameronwhite91) wrote :

This looks like the same crash as 1786822, which was fixed in Pinta 2.0

Revision history for this message
Stdedos (stdedos) wrote :

Oh yeah. There's no deb package for v2 in ppa

deb http://ppa.launchpad.net/pinta-maintainers/pinta-daily/ubuntu focal main

:/

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

Yes, https://groups.google.com/g/pinta-project/c/HdT4Q56O9-E/m/UtP2H7LuAQAJ has some more details on why the PPA is not updated for 2.0. You can install it from the snap or flatpak packages

Revision history for this message
Stdedos (stdedos) wrote (last edit ):

I am not sure why is this a problem? 😕

> Depending on other PPAs
> If you want Launchpad to satisfy your package dependencies using one or more other PPAs, follow the Edit PPA dependencies link on your PPA.

If the problem is "optionally: other PPAs *in Launchpad*", have you asked Launchpad maintainers, if they'd be willing to lift restrictions for this PPA?

Of course, it's always possible to create a docker image and build the deb package inside it.

I could help with that, if you'd want (on Launchpad or a docker build thing).

(Apologies, I seem to not have rights to respond to the group message you've sent)

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

Yeah, I think the issue is that the dotnet repository is not another PPA in Launchpad.
Contributions are very welcome from anyone who's more knowledgeable about Debian packaging than I am :)

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.