Ticket #1152 (closed defect: invalid)

Opened 3 months ago

Last modified 3 months ago

gtk_tooltips_set_tip: assertion `widget != NULL'

Reported by: pspierce Assigned to: somebody
Priority: major Milestone: 0.8.3
Component: app Version: 0.8.2
Keywords: Cc:

Description

After creating a very simple helloworld app, I then attempt to run the app and get:

python helloworld.py

Dabo Info Log: Mon May 12 13:57:37 2008: 0 database connection definition(s) loaded. Dabo Info Log: Mon May 12 13:57:38 2008: User interface set to 'wx' by dApp. Dabo Info Log: Mon May 12 13:57:38 2008: wxPython Version: 2.8.7.1 wxGTK (unicode) (gtk2)

(python:11273): Gtk-CRITICAL **: gtk_tooltips_set_tip: assertion `widget != NULL' failed Segmentation fault

I am running: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.04 DISTRIB_CODENAME=hardy DISTRIB_DESCRIPTION="Ubuntu 8.04"

libwxbase2.8-0 is installed with dabo version: Package Name: dabo

Version: 0.8.3

Revision: ~3920

Attachments

helloworld.cdxml (2.5 kB) - added by pspierce on 05/12/08 11:08:00.
helloworld cdxml file
helloworld.py (440 bytes) - added by pspierce on 05/12/08 11:08:26.
py file

Change History

05/12/08 11:08:00 changed by pspierce

  • attachment helloworld.cdxml added.

helloworld cdxml file

05/12/08 11:08:26 changed by pspierce

  • attachment helloworld.py added.

py file

05/12/08 11:27:59 changed by paul

When I run your code on Mac, I get a traceback, which might have a correlation with the traceback you are getting on Linux:

Traceback (most recent call last):
  File "helloworld.py", line 23, in <module>
    main()
  File "helloworld.py", line 16, in main
    app.start()
  File "/users/pmcnett/dabo/dabo/dApp.py", line 312, in start
    self.setup()
  File "/users/pmcnett/dabo/dabo/dApp.py", line 277, in setup
    self.initUIApp()
  File "/users/pmcnett/dabo/dabo/dApp.py", line 304, in initUIApp
    self.uiApp.setup()
  File "/users/pmcnett/dabo/dabo/ui/uiwx/uiApp.py", line 277, in setup
    frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
  File "/users/pmcnett/dabo/dabo/ui/uiwx/__init__.py", line 1069, in createForm
    frm = cls(*args, **kwargs)
  File "/tmp/tmp8ULcdQ.py", line 9, in __init__
    super(dPanel_9788545838, self).__init__(parent=parent, attProperties=attProperties, *args, **kwargs)
  File "/users/pmcnett/dabo/dabo/ui/uiwx/dPanel.py", line 184, in __init__
    attProperties=attProperties, *args, **kwargs)
  File "/users/pmcnett/dabo/dabo/ui/uiwx/dPanel.py", line 163, in __init__
    properties=properties, attProperties=attProperties, *args, **kwargs)
  File "/users/pmcnett/dabo/dabo/ui/uiwx/dPanel.py", line 33, in __init__
    properties=properties, attProperties=attProperties, *args, **kwargs)
  File "/users/pmcnett/dabo/dabo/ui/uiwx/dPemMixin.py", line 166, in __init__
    pre.Create(*args, **kwargs)
  File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_windows.py", line 79, in Create
    return _windows_.Panel_Create(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "parent" failed at /BUILD/wxPython-src-2.8.7.1/src/mac/carbon/window.cpp(1145) in Create(): can't create wxWindowMac without parent

05/12/08 11:45:11 changed by ed

Your cdxml does not contain a form; instead, its base class is a panel. You must have chosen 'Save as Class' for your design; this saves the contents of the form as a distinct class, with everything contained in an outer dPanel.

You can create a new form class, and then copy/paste the contents of your original design into that. Then change your helloworld.py to use this form class instead of your original panel class.

05/12/08 14:49:02 changed by ed

  • status changed from new to closed.
  • resolution set to invalid.