473,327 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

crash in wx.TreeListCtrl SelectItem()

Hello list,

I have a strange crash (segfault on FreeBSD) that I can not reliably reproduce
and therefore unfortunately can not provide a self contained test case at the
moment.

Here is what I do (and what works almost always, but sometimes crashes):

1) find an item in a wx.TreeListCtrl by its pydata (code posted to this list)
2) if the item is found:
********a) call EnsureVisible(foundItem)
********b) call SelectItem(foundItem)

The call to EnsureVisible() always returns, but SelectItem() crashes python
sometimes.

foundItem on a crash is something like this:
<wx._controls.TreeItemId; proxy of C++ wxTreeItemId instance at
_a0d0c708_p_wxTreeItemId>

calling GetPyData(foundItem) returns the correct pydate.

Any ideas what could be happening or how to further debug this?

Thank you in advance for your time!

Johannes
Aug 18 '06 #1
1 2100
Hi,
I have a strange crash (segfault on FreeBSD) that I can not reliably reproduce
and therefore unfortunately can not provide a self contained test case at the
moment.

Here is what I do (and what works almost always, but sometimes crashes):

1) find an item in a wx.TreeListCtrl by its pydata (code posted to this list)
2) if the item is found:
a) call EnsureVisible(foundItem)
b) call SelectItem(foundItem)

The call to EnsureVisible() always returns, but SelectItem() crashes python
sometimes.

foundItem on a crash is something like this:
<wx._controls.TreeItemId; proxy of C++ wxTreeItemId instance at
_a0d0c708_p_wxTreeItemId>

calling GetPyData(foundItem) returns the correct pydate.

Any ideas what could be happening or how to further debug this?
Try anyway to reproduce with a sample. The only way I know in this case
is to split the code and see if it happens again. If so, split again,
and again, and so on...
It can be long, but the only way. Very often, you'll find yourself the
buggy part.
Once time you'll have a sample, post it, I can try on linux and windows.
Also please give the versions of the softwares you use.
rgds
jm
Aug 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
8
by: Eric Brunel | last post by:
Hi all, I was creating a Tkinter widget in the style of the reversed tabs below Excel worksheets and I stepped in a serious problem: the code I made makes python crash with a seg fault, bus...
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
0
by: sendhil kumar | last post by:
Hi all, whwn working with xml connectvity to python, i have a sash window, in which first window has a Tree Control that has 'n' parent fields preceded by + sign and on leftdown all the childs...
34
by: NewToCPP | last post by:
Hi, Why does a C/C++ programs crash? When there is access to a null pointer or some thing like that programs crash, but why do they crash? Thanks.
0
by: Johannes Lochmann | last post by:
Hello list, here is a small code snippet to recursively search a wx.TreeListCtrl for an item with specific pydata. Feel free to comment! def recursiveFindItemByPydata(self, parent,...
12
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.