[#501] profiling and draw_shape extension crashes thuban at startup

Date:
2007-10-04 16:42
Priority:
3
State:
Open
Submitted by:
Didrik Pinte (dpinte)
Assigned to:
Nobody (None)
Category:
none
Version:
none
Resolution:
none
Summary:
profiling and draw_shape extension crashes thuban at startup

Detailed description
When profiling extension or draw_shape extension are enabled in thubanstart.py the following error appears :

did@ddp:~/projets/python/thuban/current/thuban$ python thuban.py
Problems with PyOGCLib (not installed?)
An unhandled exception occurred:
argument number 1: a 'wxWindow *' is expected, 'PySwigObject(_p_wxPyApp)' is received
(please report to http://thuban.intevation.org/bugtracker.html)

Traceback (most recent call last):
File "thuban.py", line 36, in ?
Thuban.UI.main.main()
File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/main.py", line 31, in main
app = application.ThubanApplication(0)
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__
self._BootstrapApp()
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/application.py", line 75, in OnInit
self.read_startup_files()
File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/application.py", line 110, in read_startup_files
exceptiondialog.run_exception_dialog(self, "cannot import mod %s" %str(e))
File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/exceptiondialog.py", line 62, in run_exception_dialog
dialog = ExceptionDialog(parent, message, title)
File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/exceptiondialog.py", line 26, in __init__
style = wx.RESIZE_BORDER|wx.CAPTION|wx.DIALOG_MODAL)
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_windows.py", line 640, in __init__
newobj = _windows_.new_Dialog(*args, **kwargs)
TypeError: argument number 1: a 'wxWindow *' is expected, 'PySwigObject(_p_wxPyApp)' is received


This is strange. It seems there is a side-effect somewhere but I don't get it ...

Message  ↓
Date: 2007-12-01 00:31
Sender: Bernhard Reiter

The drawshape extension is highly experimental it would only work, if you apply the patch which is in the same directory. I suggest we do not enable this particular extension so far.

As for the profiling extension: I have just found out
that python-profiler is non-free (check the license,
there is a restriction that the code cannot be translated in other languages or something like this.).

No attached documents

No changes have been made to this item