Pinta constantly crashes in Ubuntu fresh install [double free or corruption (out)]

Bug #1786822 reported by Javier Ignacio Reyes Garcia
474
This bug affects 80 people
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Undecided
Unassigned
mono (Ubuntu)
Confirmed
Undecided
Unassigned
pinta (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 18.04 Fresh install (also tested in a VM with the same OS).

Installed through the default repositories.

Steps:

- Launch the app (either from the app launcher, or from the terminal).

- Open any image file (either from the Menu, or the icon).

- Try to use any tool on it.

When run from the terminal:

javier@nuc:~$ pinta
double free or corruption (out)
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) GLib.SList.g_free (intptr) <0x0005f>
  at GLib.ListBase.Empty () <0x0013c>
  at GLib.ListBase.Dispose (bool) <0x0000f>
  at GLib.ListBase.Finalize () <0x0001d>
Killed

javier@nuc:~$ pinta -v
1.6

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Tom Hutchison (hutchy68) wrote :

I can confirm this too, new install, constantly crashes trying to do any simple tasks with an image. Doesn't seem to matter what the size of an image is.

Big question, is this going to be fixed? We been including Pinta in our imaged OS build for 2 1/2 years. It's simple, powerful and easy to learn. Unfortunately, I just had to remove Pinta from out of our latest OS image build and add in Inkscape.

Revision history for this message
Luke Jeffery (lukethecamel) wrote :

Same with me Tom.

Revision history for this message
Jason Heeris (detly) wrote :

The issue seems to be with the Mono libs. See here for instructions to install a PPA with more recent packages: https://www.mono-project.com/download/stable/#download-lin

Found via https://askubuntu.com/a/955564/19501

Using that PPA resolved the issue for me (so far...)

Revision history for this message
Lola Slade (lola-slade) wrote :

The solution in #4 worked for me. Thanks!

Revision history for this message
Manu Chandraprabha Sukumaran Nair (curious-macs) wrote :

The solution in #4 worked for me. Thanks!

Revision history for this message
Dave Kimble (dave-kimble-g) wrote :

#4 applied OK.
Running Pinta from terminal shows multiple GTK warning messages:

(Pinta:32406): Gtk-WARNING **: 07:37:16.078: Failed to read filechooser settings from "/home/dk/.config/gtk-2.0/gtkfilechooser.ini": Permission denied

with one of this message embedded in the others:

Cairo.Surface is leaking, programmer is missing a call to Dispose
Set MONO_CAIRO_DEBUG_DISPOSE to track allocation traces

This seems to fix the issue, thank you.

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

Thanks for confirming, this seems to be an issue with the default Mono version in 18.04

Changed in pinta:
status: New → Triaged
Revision history for this message
Lee Jones (lag) wrote :

Still crashes on 20.04, even with the latest version of Mono.

Bug reported here:

  https://bugs.launchpad.net/pinta/+bug/1877235

Revision history for this message
Lee Jones (lag) wrote :
Revision history for this message
Thorsten Niehues (thorsten-niehues) wrote :

updating mono fixed it for me too :)

Revision history for this message
Elias Chatzigeorgiou (echatzig) wrote :

#4 rocks! Thanks Jason.

I can confirm, adding the official latest stable mono release to my package repos
resolved the frequent crashes I used to have with pinta.

For the record, I am using MX Linux (so I used the debian packages for mono)

$ uname -a
Linux mx 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

Revision history for this message
Elias Chatzigeorgiou (echatzig) wrote :

for the record, the default mono version that comes with MX 19 is:

$ mono -V
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Wed Apr 17 16:37:36 UTC 2019)

after adding the official latest stable mono release and upgrading
$ sudo apt upgrade

I landed with

$ mono -V
Mono JIT compiler version 6.8.0.123 (tarball Tue May 12 15:15:28 UTC 2020)

Revision history for this message
Heath Mitchell (heath2) wrote :

This happens in 20.04 too. I'll try #4 and see if it helps.

Revision history for this message
grofaty (grofaty) wrote :

I can confirm steps in #4 fixes a problem in Ubuntu 18.04. Thanks.

Revision history for this message
John Freeman (thejohnfreeman) wrote :

I'm on 20.04 and the steps in #4 did not fix the problem for me.

I open Pinta, then open a 3.4 MB JPG. If I just leave it here, it's fine. Then, I click the rectangle selection tool, starting drawing a selection, it quickly hangs, then crashes. Or I start drawing on the image (the default tool after opening the image is a brush), it quickly hangs, then crashes.

This is even after following the steps in #4 and updating mono to 6.10.0.104.

Revision history for this message
John Freeman (thejohnfreeman) wrote :

Ok, I ran some other pending upgrades (`sudo apt upgrade`), restarted my computer, and Pinta has stopped crashing.

Revision history for this message
Rich Hildred (rhildred) wrote :

I updated mono

```
Mono JIT compiler version 6.12.0.90 (tarball Fri Sep 4 14:02:38 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS: __thread
        SIGSEGV: altstack
        Notifications: epoll
        Architecture: amd64
        Disabled: none
        Misc: softdebug
        Interpreter: yes
        LLVM: yes(610)
        Suspend: hybrid
        GC: sgen (concurrent by default)

```

I rebooted and it still crashes.

affects: ubuntu → pinta (Ubuntu)
summary: - Pinta constantly crashes in Ubuntu 18.04 fresh install
+ Pinta constantly crashes in Ubuntu fresh install
tags: added: bionic focal
summary: - Pinta constantly crashes in Ubuntu fresh install
+ Pinta constantly crashes in Ubuntu fresh install [double free or
+ corruption (out)]
Changed in mono (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Hausen (alex-hausen) wrote :

Resolved following answer from #4.

Ubuntu 20.04

Using pinta from apt, not snap.

$ pinta --version
1.6

Updated mono: https://www.mono-project.com/download/stable/#download-lin

$ mono --version
Mono JIT compiler version 6.12.0.122 (tarball Mon Feb 22 17:33:28 UTC 2021)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS: __thread
        SIGSEGV: altstack
        Notifications: epoll
        Architecture: amd64
        Disabled: none
        Misc: softdebug
        Interpreter: yes
        LLVM: yes(610)
        Suspend: hybrid
        GC: sgen (concurrent by default)

Revision history for this message
Bill Hayden (hayden-haydentech) wrote :

Solution in #4 did NOT work for me.

Revision history for this message
grofaty (grofaty) wrote (last edit ):

SUGGESTION TO GET OUT OF RABBIT HOLE OF CONSTANT PINTA CRASHES

Anyone to get into this crashing problems I strongly suggest to do the following:
1. Check Pinta version. Open Terminal and type in:
pinta --version

2. If version 1.6 is displayed, you are using 6 years old Pinta version. Pinta 1.7 was released more then a year ago, but sadly 6 years old Pinta version is still packaged in all of the recent Ubuntu releases (20.10, 21.04 and 21.10). I suggest to remove Pinta deb package completely:
sudo apt purge pinta
If using some other Linux distribution, check Linux distribution command to remove installed package.

3. Install Pinta 1.7 from snap package:
sudo snap install pinta

Why I suggest to install Pinta 1.7 from snap?
a) Snap packages bound Pinta program all of the dependencies into single package completely independent from Ubuntu version and completely independent from any software installed on Ubuntu distribution like Mono versions etc that is the most likely candidate for crashes. If you are using some other Linux distribution, then you need to install snapd package before step 3 above is possible. See details (there is one single command): https://snapcraft.io/docs/installing-snapd
b) I am using Pinta 1.7 snap package for more then a year and very little to none serious problems.
c) Pinta 1.7 snap package is regularly updated by snap maintainer, so any new fixes in stable branch get released you get updates and so massively reducing potential problems.

If you prefer Flatpack instead of Snap, there is also flatpack version of Pinta. See instruction how to install flatpack: https://flatpak.org/setup/ and instructions at the bottom of https://www.flathub.org/apps/details/com.github.PintaProject.Pinta how to install Pinta.

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

This fixed with Pinta 2.0 and the upgrade to .NET 6

Changed in pinta:
milestone: none → 2.0
status: Triaged → Fix Released
To post a comment you must log in.