quickly debug crashing for quickly created ubuntu-application

Bug #1001059 reported by T_W
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
quickly (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

$ apt-cache policy quickly
quickly:
  Installed: 12.04-0ubuntu1
  Candidate: 12.04-0ubuntu1
  Version table:
 *** 12.04-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
        100 /var/lib/dpkg/status

I created a simple test app using 'quickly create ubuntu-application my-new-project'.

I can run the project fine using 'quickly run'.

If I debug the project using 'quickly debug' I can step through the program initialization until the following line from the Window.finish_initializing in my_new_project_lib/Window.py:

self.settings = Gio.Settings("net.launchpad.my-new-project")

When I step over this line in Winpdb, in the console window brought up by 'quickly debug', I see the error:

/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwargs)

(my-new-project:3889): GLib-GIO-ERROR **: Settings schema 'net.launchpad.my-new-project' is not installed

/bin/bash: line 1: 3889 Trace/breakpoint trap (core dumped) /usr/bin/python "/usr/lib/pymodules/python2.7/rpdb2.py" --debugee --rid=9805772 "/home/walsh/Workspaces/quickly/my-new-project/bin/my-new-project"

And Winpdb goes into the DETACHED state.

If I try to debug the quickly generated app in Eclipse, the exact same thing happens. In the Eclipse console I see the error

(my-new-project:4532): GLib-GIO-ERROR **: Settings schema 'net.launchpad.my-new-project' is not installed

And the debug session is terminated.

As to " What you expected to happen", I would expect an app created via 'quickly create' could be debugged via 'quickly debug'.

Note: The GLib-GIO-ERROR is not displayed when I do a 'quickly run'

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: quickly 12.04-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic-pae 3.2.14
Uname: Linux 3.2.0-24-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Thu May 17 21:57:28 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
QuicklyDataPath: /usr/share/quickly
QuicklyTemplates:
 /usr/share/quickly/templates/ubuntu-flash-game
 /usr/share/quickly/templates/ubuntu-cli
 /usr/share/quickly/templates/ubuntu-application
 /usr/share/quickly/templates/unity-lens
QuicklyTemplatesDirectories: /usr/share/quickly/templates/
SourcePackage: quickly
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
T_W (walshtc) wrote :
Revision history for this message
Ed Moore (ed-moore) wrote :

I am getting the exact same problem. The program seems to run fine however I am getting the same error message.

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

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

Changed in quickly (Ubuntu):
status: New → Confirmed
Revision history for this message
Julio Molina Soler (jmolinaso) wrote :

Hi,

I have the exact same problem, the way I workaround is by init the XDG_DATA_DIRS before I issue 'quickly debug'

Do the following steps, and replace the <path to your quickly project> with your path:

export XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/<path to your quickly project>/data
quickly debug

That would do it.

Revision history for this message
T_W (walshtc) wrote :

The workaround in comment #4 worked for me.

Could the quickly tool set up the environment automatically before launching the debugger?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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