scratch-text-editor crashes when empty directory selected in FileManager extension

Bug #1162756 reported by Jeremy Wootten
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Scratch
Confirmed
Undecided
Unassigned

Bug Description

With the File Manager extension selected, if an empty subdirectory is selected in the tree-view and the arrow to its left clicked, then a non-existent sub-directory is shown. If this non-existent directory is selected then the program crashes with the following messages (when run from command line):

[_LOG_LEVEL_DEBUG 12:38:53.496622] gof-directory-async.vala:490: found cached dir file:///home/jeremy
[_LOG_LEVEL_DEBUG 12:38:53.496767] >>>>reuse file file:///home/jeremy/ScratchTestEmpty
[_LOG_LEVEL_DEBUG 12:38:53.496897] gof-directory-async.vala:90: dir file:///home/jeremy/ScratchTestEmpty ref_count 2
[_LOG_LEVEL_DEBUG 12:38:53.497038] gof-directory-async.vala:233: list directory file:///home/jeremy/ScratchTestEmpty
[_LOG_LEVEL_FATAL 12:38:59.281378] [GLib-GObject] g_object_ref: assertion `G_IS_OBJECT (object)' failed
[_LOG_LEVEL_FATAL 12:38:59.281530] Scratch will not function properly.
Segmentation fault (core dumped)

Bug occurs on newly updated system (from daily) and also when built from source from trunk (1.1.1)

ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 1.1.1+r1012-0+pkg39~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-40.64-generic-pae 3.2.40
Uname: Linux 3.2.0-40-generic-pae i686
ApportVersion: 2.0.1-0ubuntu17.1+elementary3~precise1
Architecture: i386
CrashDB: scratch_text_editor
Date: Mon Apr 1 12:32:04 2013
GsettingsChanges:

InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 i386 (20121114)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :
Chris Johns (ter0)
Changed in scratch:
status: New → Confirmed
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

This bug is the same as 1152182. I have attached a fix to that bug.

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.