Error when closing without saving

21 views
Skip to first unread message

Lionel Roubeyrie

unread,
May 10, 2013, 12:47:03 PM5/10/13
to project...@googlegroups.com
Hi,
with the last camelot version, I get an error when closing a form without saving (for the purpose, I erase an item in a relationship field and try to close the form) :

RuntimeError: wrapped C/C++ object of type QDataWidgetMapper has been deleted
Fichier "/home/lionel/codaten/main.py", ligne 60, dans <module>
  start_application()
Fichier "/home/lionel/codaten/main.py", ligne 57, dans start_application
  main(MyApplicationAdmin())
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/view/main.py", ligne 45, dans main
  app.gui_run()
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/admin/action/application.py", ligne 63, dans gui_run
  sys.exit( app.exec_() )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/view/controls/formview.py", ligne 346, dans action_triggered
  action_action.action.gui_run( self.gui_context )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/admin/action/form_action.py", ligne 187, dans gui_run
  super( CloseForm, self ).gui_run( gui_context )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/admin/action/base.py", ligne 363, dans gui_run
  super(Action, self).gui_run( gui_context )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/admin/action/base.py", ligne 233, dans gui_run
  runner.exec_()
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/view/action_runner.py", ligne 91, dans exec_
  return super( ActionRunner, self ).exec_( flags )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/view/proxy/collection_proxy.py", ligne 886, dans _emit_changes
  self.dataChanged.emit( top_left, bottom_right )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/view/controls/action_widget.py", ligne 63, dans data_changed
  self.current_row_changed( index1.row() )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/view/controls/action_widget.py", ligne 60, dans current_row_changed
  args = (self.gui_context.create_model_context(),) )
Fichier "/usr/local/lib/python2.7/dist-packages/Camelot-13.04.13-py2.7.egg/camelot/admin/action/form_action.py", ligne 127, dans create_model_context
  context._model = self.widget_mapper.model()
 

Erik Janssens

unread,
May 11, 2013, 5:12:44 AM5/11/13
to project...@googlegroups.com

Hello Lionel,

 

can you tell me how to reproduce this stacktrace ?

 

is it a popup exception, or one that you see only in the command

line ?

 

Thanks,

 

Erik

--
--
You received this message because you are subscribed to the "Project Camelot" group.
Visit www.python-camelot.com for more information
 
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
project-camel...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/project-camelot?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Project Camelot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-camel...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



Lionel Roubeyrie

unread,
May 11, 2013, 6:14:07 AM5/11/13
to project...@googlegroups.com
Hi Erik,
you can reproduce this error with the example application. Go to the "Visitor Reports" of the Movies section, open the first entry (the Shining--23/05/1980) and clear the movie entry. Close the form and select "Close without saving".
The strange thing is this error freezes the app if I use WingIDE, not if it's called from the console.

Another problem : the app is not translated even if the log info claims using locale fr_FR

Erik Janssens

unread,
May 11, 2013, 6:47:25 AM5/11/13
to project...@googlegroups.com

are we talking about the latest released version, or the default branch

from bitbucket ?

--

Lionel Roubeyrie

unread,
May 11, 2013, 6:52:56 AM5/11/13
to project...@googlegroups.com

Sorry, this is the default branch from bitbucket

You received this message because you are subscribed to a topic in the Google Groups "Project Camelot" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/project-camelot/dVcb4PaQ-2I/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to project-camel...@googlegroups.com.

Erik Janssens

unread,
May 11, 2013, 7:00:41 AM5/11/13
to project...@googlegroups.com

ok, I'm in the process of changing the application startup process a bit,

this is probably causing the freezing.

 

The idea is that the application itself becomes an Action, so it becomes

straightforward to customize the application startup process, or to

run any Action as application on itself, without the need for a mainwindow

etc.

 

I'll post on the list, when this change can be considered 'usable'

Lionel Roubeyrie

unread,
May 11, 2013, 7:42:46 AM5/11/13
to project...@googlegroups.com
I have removed the camelot directory and easy_install(ed) the last stable from pypi, the french translation comes back but the "close without saving" error remains...

Erik Janssens

unread,
May 11, 2013, 10:48:22 AM5/11/13
to project...@googlegroups.com

Hello Lionel,

 

I cannot reproduce this on my side, but it might be timing related.

 

I have pushed a patch to the stable branch on bitbucket, could you

please check if this solves the issue on your side ?

 

Thx,

 

Erik

--

Lionel Roubeyrie

unread,
May 11, 2013, 12:09:23 PM5/11/13
to project...@googlegroups.com
Ok, the update on the stable head solves this problem.
Thanks Erik
Reply all
Reply to author
Forward
0 new messages