[PyQt] Weird crashing

Jason Hihn jason at eyemaginations.com
Mon Oct 29 19:26:17 GMT 2007


This is a long shot. 

 

I have an application that works 90% of the time. It is rock-solid on
desktops, but the 10% is laptop installed base.  The laptops seem to have
two issues:

On 1 computer in particular, python.exe crashes whenever you open a document
outside of the application, such as an Excel file, but it does nto crash
when a browser is opening cache files. Right after the double click but
before excel has actually opened, the application crash dialog comes up.
This violates the notion of private address space and process separation.
(This is on XP.)

 

The other crazy problem is with QHttp, as far as I can tell. We have a
function that does a simple get() to obtain the latest version number of the
software (to see if an update is available) in the "background".  This
request is performed, but it seems when the response is received it crashes
the program. Weirder yet, the affected laptops seem to have Verizon wireless
cards, but not in every case, just most of them. It does not seem to matter
if they are using VZW or a CAT5 cable.

 

I can't imagine what could be causing these issues, I am hoping someone out
there could see a potential conflict, or some GIL knowledge that I am
lacking, or if there is some debugging technique that I can use. AFAIK, all
this is happening in one thread. The illusion is multitasking is created by
signals/slots. The crashes were reported in the original version using
4.2.3, and are still present in 4.3.1.

 

Update code:

            self.x=QHttp('www.mysite.com')

self.buffer=QBuffer(self.bytes, self.x)

            self.buffer.open(QIODevice.ReadWrite)

QObject.connect (self.x, SIGNAL('done(bool)'),  self.versionCheckDone)

self.x.get('/version.txt')

 

 

def versionCheckDone(self, b):

data=str(self.x.readAll())  

print 'data:', data

 

Thank you for your time. 

---

Regards,

Jason Hihn

Director of Software Engineering
Eyemaginations, Inc.

600 Washington Ave, Suite #100
Towson, MD 21204
Domestic: 877.321.5481 ext. 8617
International: 410.321.5481 ext. 8617
Fax: 410.616.8657
jason at eyemaginations.com
www.eyemaginations.com
www.3d-eye.com

=================================================
The information transmitted within this email document or fax is intended
only for 

the person(s) or entity to which it is specifically addressed and may
contain 

confidential and/or privileged material of Eyemaginations. Any re-creation,
review, 

distribution, retransmission, dissemination or other use of, or taking of
any action 

in reliance upon, this information by persons or entities other than the
intended 

parties is completely prohibited. If you have received this email in error,
please 

contact the sender or author and permanently delete and destroy the email
from 

any computer which houses its contents. 

=================================================

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071029/e50f0c2f/attachment.html


More information about the PyQt mailing list