Author: Sibylle Koczian
Posted: 2013-03-17 07:08:28 Link
Hello,
the ClassDesigner crashes again, this time no stack trace but a
segmentation fault. It happens when I try to change something in the
object inspector, no matter what or so it seems to me at the moment.
Clicking into a checkbox in the object inspector changes it to an edit
field with "False" or "True". This doesn't look right anyway. The crash
happens when I leave this field - but it happens also when I change
other, non boolean properties.
All this on Xubuntu 12.10:
Platform: GTK
Python Version: 2.7.3 on linux2
Dabo Version: 0.9.9
UI Version: 2.8.12.1 on wxGTK (gtk2)
Then I wanted to try on Debian stable and got a new error: Started the
class designer (this time not from its own directory but from the ui
directory of the application), tried to open an existing .cdxml file and
got:
sib@gespenst-debian:~/bin/urlaub/ui$ ~/src/dabo-trunk/ide/ClassDesigner.py
Traceback (most recent call last):
File "/home/sib/src/dabo-trunk/ide/ClassDesigner.py", line 4474, in
<module>
clsDes = ClassDesigner(f)
File "/home/sib/src/dabo-trunk/ide/ClassDesigner.py", line 262, in
__init__
frm = self.onNewDesign(None)
File "/home/sib/src/dabo-trunk/ide/ClassDesigner.py", line 2058, in
onNewDesign
return self.openClass(dlg.fileToOpen)
File "/home/sib/src/dabo-trunk/ide/ClassDesigner.py", line 758, in
openClass
obj = self.recreateChildren(frm.mainPanel, kids, None, False)
File "/home/sib/src/dabo-trunk/ide/ClassDesigner.py", line 1233, in
recreateChildren
self.extractSuperClassInfo(clsname)
File "/home/sib/src/dabo-trunk/ide/ClassDesigner.py", line 784, in
extractSuperClassInfo
raise IOError(_("The file '%s' does not appear to be a valid class
file.") % pth)
IOError: The file '/home/sib/bin/dabosib/testcd_2/ui/TestPanel_3.cdxml'
does not appear to be a valid class file.
The file mentioned in the traceback hasn't anything to do with the file
I wanted to open and it's in another directory.
Platform: GTK
Python Version: 2.6.6 on linux2
Dabo Version: 0.9.9
UI Version: 2.8.10.1 on wxGTK (gtk2)
Of course I could hand code all forms but it would be much more work,
because I want to change a working application with lots of panels made
with the class designer.
Thank you for help,
Sibylle
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/5145B23C.9030408@t-online.de
Author: Paul McNett
Posted: 2013-03-17 10:17:55 Link
On 3/17/13 5:08 AM, Sibylle Koczian wrote:
> Of course I could hand code all forms but it would be much more work, because I want
> to change a working application with lots of panels made with the class designer.
Would you mind doing a bit of regression testing? Loading up dabo 0.9.5 and seeing if
the error is still there, if not then 0.9.6, etc.? It would help to know when this
behavior went south.
Paul
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/5145DEA3.3050705@ulmcnett.com
Author: Paul McNett
Posted: 2013-03-17 10:24:22 Link
On 3/17/13 5:08 AM, Sibylle Koczian wrote:
> the ClassDesigner crashes again, this time no stack trace but a segmentation fault.
> It happens when I try to change something in the object inspector, no matter what or
> so it seems to me at the moment.
>
> Clicking into a checkbox in the object inspector changes it to an edit field with
> "False" or "True". This doesn't look right anyway. The crash happens when I leave
> this field - but it happens also when I change other, non boolean properties.
>
> All this on Xubuntu 12.10:
>
> Platform: GTK
> Python Version: 2.7.3 on linux2
> Dabo Version: 0.9.9
> UI Version: 2.8.12.1 on wxGTK (gtk2)
Weird, I have the same setup as you and I don't get segfaults, although I do see the
"False" and "True" in the boolean grid editor like you do.
I'm sure I'm to blame for these problems, and I think they probably stem from work I
did trying to get dGrid working right on wx2.9.4/64 on Mac, about 2 months ago. It
turns out it is pretty hard to avoid segfaults when working with grid editors, and I
altered a segfault workaround I'd put in place over 5 years ago. I probably just need
to revert all that and forget about the future wxPython versions for now.
Anyway, if you could confirm which dabo version introduced the problem, that would
still help.
Thanks
Paul
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/5145E026.9020107@ulmcnett.com
Author: Sibylle Koczian
Posted: 2013-03-17 11:31:43 Link
Am 17.03.2013 16:17, schrieb Paul McNett:
> Would you mind doing a bit of regression testing? Loading up dabo 0.9.5 and seeing if
> the error is still there, if not then 0.9.6, etc.? It would help to know when this
> behavior went south.
>
How do I get the old versions? Preferably without having to learn too
much about git ...
I've looked at https://github.com/dabodev/dabo, but I don't see how to
get the right files.
Thank you,
Sibylle
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/5145EFEF.3050706@t-online.de
Author: Paul McNett
Posted: 2013-03-17 12:17:32 Link
On 3/17/13 9:31 AM, Sibylle Koczian wrote:
> Am 17.03.2013 16:17, schrieb Paul McNett:
>> Would you mind doing a bit of regression testing? Loading up dabo 0.9.5 and seeing if
>> the error is still there, if not then 0.9.6, etc.? It would help to know when this
>> behavior went south.
>>
> How do I get the old versions? Preferably without having to learn too much about git ...
Go to https://github.com/dabodev/dabo/tags and then for each version you want to
download click the '.zip' or '.tar.gz' link. Save, extract, put it in your pythonpath
or 'python setup.py install'.
Thanks
Paul
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/5145FAAC.5070103@ulmcnett.com
On Mar 17, 2013, at 10:17 AM, Paul McNett <p@ulmcnett.com> wrote:
>> How do I get the old versions? Preferably without having to learn too much about git ...
>
> Go to https://github.com/dabodev/dabo/tags and then for each version you want to
> download click the '.zip' or '.tar.gz' link. Save, extract, put it in your pythonpath
> or 'python setup.py install'.
Another easy way with git is to just run "git checkout v0.9.5", and that will change your code to that version. When you are done, just run "git checkout master" to go back to the current version.
-- Ed Leafe
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/05BDB95B-47D0-4D86-9882-D3A49F0F51A3@rackspace.com
Author: Sibylle Koczian
Posted: 2013-03-18 09:05:26 Link
Am 17.03.2013 21:57, schrieb Ed Leafe:
> On Mar 17, 2013, at 10:17 AM, Paul McNett<p@ulmcnett.com> wrote:
>
>>> How do I get the old versions? Preferably without having to learn too much about git ...
>>
>> Go to https://github.com/dabodev/dabo/tags and then for each version you want to
>> download click the '.zip' or '.tar.gz' link. Save, extract, put it in your pythonpath
>> or 'python setup.py install'.
>
> Another easy way with git is to just run "git checkout v0.9.5", and that will change your code to that version. When you are done, just run "git checkout master" to go back to the current version.
>
Did that. No problems with version 0.9.5, after removing the reference
to GridHeaderPaint from ClassDesignerControlMixin.py. New problem with
version 0.9.6: opening a saved class gives this:
sib@gespenst-xubuntu:~/src/dabo-trunk$ ide/ClassDesigner.py
Traceback (most recent call last):
File "ide/ClassDesigner.py", line 4474, in <module>
clsDes = ClassDesigner(f)
File "ide/ClassDesigner.py", line 311, in __init__
self.start()
File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 391, in start
self._retrieveMRUs()
File "/home/sib/src/dabo-trunk/dabo/dApp.py", line 485, in _retrieveMRUs
cleanCap = cleanMenuCaption(cap)
NameError: global name 'cleanMenuCaption' is not defined
Version 0.9.7: opening the saved class works again, but now the
segmentation fault appears when I try to change a property.
Greetings
Sibylle
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/51471F26.10503@t-online.de