Mousepad crashes when setting tab width > 32

Bug #1472690 reported by Alistair Buxton
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mousepad
Fix Released
Medium
mousepad (Ubuntu)
Fix Released
Medium
SYEDFAYAZ MUJAWAR

Bug Description

The reproduce:

1. Open mousepad
2. Open settings
3. Go to "editor" section
4. Set tab width to 33
5. Close settings

Mousepad will now crash with an assertion error.

This is caused due to a mismatch between the gschema and the glade UI file. The schema specifies a maximum tab width of 32 but the UI specifies a maximum of 128. These should be brought into alignment.

http://git.xfce.org/apps/mousepad/tree/mousepad/org.xfce.mousepad.gschema.xml#n108

vs

http://git.xfce.org/apps/mousepad/tree/mousepad/mousepad-prefs-dialog.glade#n46

In addition mousepad should probably not crash if there is a settings mismatch like this.

ProblemType: Crash
DistroRelease: Ubuntu 15.04
Package: mousepad 0.4.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-22.22-generic 3.19.8-ckt1
Uname: Linux 3.19.0-22-generic i686
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: i386
CurrentDesktop: XFCE
Date: Wed Jul 8 16:56:57 2015
ExecutablePath: /usr/bin/mousepad
InstallationDate: Installed on 2015-03-03 (127 days ago)
InstallationMedia: Xubuntu 15.04 "Vivid Vervet" - Alpha i386 (20150303)
ProcCmdline: mousepad
Signal: 6
SourcePackage: mousepad
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
information type: Private → Public
tags: removed: need-i386-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mousepad (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Alistair Buxton (a-j-buxton) wrote :

Created attachment 6378
Patch to fix the mismatch

Due to a mismatch between gsettings schema and UI glade.

(mousepad:27389): GLib-GIO-CRITICAL **: GObject property 'value' on a 'GtkSpinButton' object is out of schema-specified range for key 'tab-width' of 'org.xfce.mousepad.preferences.view': 33
**
GLib-GIO:ERROR:/build/buildd/glib2.0-2.40.2/./gio/gsettings.c:2389:g_settings_binding_free: assertion failed: (!binding->running)

Downstream bug https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1472690

Patch attached.

Should mousepad really crash on errors like this? Shouldn't it be a warning, rather than an assert/exit?

Changed in mousepad:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , G-matt-8 (g-matt-8) wrote :
Changed in mousepad:
status: Confirmed → Fix Released
Changed in mousepad (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Jackson Doak (noskcaj) wrote :

debdiff adding the fix to this, as well as merging from debian, attached.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

Changed in mousepad (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Jackson Doak (noskcaj) wrote :

It appears that this is only half the fix, the .ui file needs regenerating

Changed in mousepad (Ubuntu):
status: Fix Committed → Triaged
Changed in mousepad (Ubuntu):
assignee: nobody → SYEDFAYAZ MUJAWAR (syedfayaz28)
Changed in mousepad (Ubuntu):
status: Triaged → Confirmed
Revision history for this message
Jackson Doak (noskcaj) wrote :

Can you please add a reason if you're going to change this from triaged to only confirmed?

Changed in mousepad (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mousepad - 0.4.0-4ubuntu1

---------------
mousepad (0.4.0-4ubuntu1) devel; urgency=medium

  * Merge from Debian unstable. Remaining changes:
    - debian/control, debian/rules:
      + Switch to gtk3.
    - git-width-mismatch.patch: stop a tab width related crash. LP: #1472690
  * d/p/git-width-mismatch.patch:
    - Update to patch the generated .h file rather than upstream glade file.

 -- Unit 193 <email address hidden> Mon, 13 Jun 2016 05:45:59 +0000

Changed in mousepad (Ubuntu):
status: Triaged → Fix Released
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.