[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Bug on PyQt 5.4.0/sip 4.16.5: Access violation reading location
From:       Karina Fasolin <karina () esss ! com ! br>
Date:       2015-02-18 17:31:10
Message-ID: CAHK33mmaghKCks0RJ-VbFTv=bWCn+w+Gh6Kp3HzaT4=1SM8zvg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


We are having problems to port our code base from PyQt4 to PyQt5 and think
there is a bug on sip.

We are testing this on windows and our lib verions are:
Qt 5.4.0
PyQt 5.4.0
sip 4.16.5

Running a test for an editable QTableView in debug mode triggers a
"Unhandled exception at 0x544591af (QtCore_d.pyd) in python_d.exe:
0xC0000005: Access violation reading location 0xdbdbdda3."

The error and stack trace can be viewed in the attached image. The problem
occurs on application exit, when the objects are being destroyed and we
couldn't find what is generating this. We have tried to
set sip.setdestroyonexit without success.

Running the same test in release mode generates the following trace:

table_viewer_model.py:114: RuntimeWarning: tp_compare didn't return -1 or
-2 for exception
  if role == qt_traits.Qt.DisplayRole:
Traceback (most recent call last):
  File "table_viewer_model.py", line 114, in headerData
    if role == qt_traits.Qt.DisplayRole:
*AttributeError: 'QLineEdit' object has no attribute 'QLineEdit'*

This error doesn't fail the test but occur for different modules an
different places in code, not only QLineEdit.

Have you seen this behavior before? Any thoughts about what is wrong?

Thanks a lot,

[]s


*Karina Fasolin, M.Sc.*
*Technical Coordinator*

ESSS - SIMULATING THE FUTURE | Florianópolis - SC - Brazil
Office: +55 (48) 3953 0017 | Mobile: +55 (48) 8813 1555 | Skype: karina.esss
E-mail: *karina.fasolin@esss.com.br
<karina.fasolin@esss.com.br> | www.esss.com.br <http://www.esss.com.br/>*

[Attachment #5 (text/html)]

<div dir="ltr"><div>We are having problems to port our code base from PyQt4 to PyQt5 \
and think there is a bug on sip.</div><div><br></div><div>We are testing this on \
windows and our lib verions are:</div><div>Qt 5.4.0<br></div><div><div>PyQt \
5.4.0</div><div>sip 4.16.5</div></div><div><br></div><div>Running a test for an \
editable QTableView in debug mode triggers a &quot;Unhandled exception at 0x544591af \
(QtCore_d.pyd) in python_d.exe: 0xC0000005: Access violation reading location \
0xdbdbdda3.&quot;<br></div><div><br></div><div>The error and stack trace can be \
viewed in the attached image. The problem occurs on application exit, when the \
objects are being destroyed and we couldn&#39;t find what is generating this. We have \
tried to set  sip.setdestroyonexit without success.</div><div><br></div><div>Running \
the same test in release mode generates the following \
trace:<br></div><div><br></div><div><div><div>table_viewer_model.py:114: \
RuntimeWarning: tp_compare didn&#39;t return -1 or -2 for exception</div><div>   if \
role == qt_traits.Qt.DisplayRole:</div><div>Traceback (most recent call \
last):</div><div>   File &quot;table_viewer_model.py&quot;, line 114, in \
headerData</div><div>      if role == \
qt_traits.Qt.DisplayRole:</div><div><b>AttributeError: &#39;QLineEdit&#39; object has \
no attribute &#39;QLineEdit&#39;</b></div></div><div><br></div><div>This error \
doesn&#39;t fail the test but occur for different modules an different places in \
code, not only QLineEdit.  </div></div><div><br></div><div>Have you seen this \
behavior before? Any thoughts about what is \
wrong?<br></div><div><br></div><div>Thanks a \
lot,</div><div><br></div><div>[]s</div><div><div><div class="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><span \
style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"></span><p></p><br><div><b><span \
style="font-size:11pt;font-family:Arial,sans-serif">Karina Fasolin, \
M.Sc.</span></b><br></div><b><span \
style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(102,102,102)">Technical \
Coordinator</span></b><br><p><span \
style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(102,102,102)"> ESSS - \
SIMULATING THE FUTURE  | Florianópolis - SC - Brazil<br>Office: <a \
value="+554839530099">+55 (48) 3953 0017</a> | Mobile: <a value="+554899999999">+55 \
(48) 8813 1555</a> |  Skype: karina.esss<br>E-mail:  <b><a \
href="mailto:karina.fasolin@esss.com.br" \
target="_blank">karina.fasolin@esss.com.br</a>  |  <a href="http://www.esss.com.br/" \
target="_blank"><span \
style="color:rgb(102,102,102);text-decoration:none">www.esss.com.br</span></a></b></span></p>
 <p><img src="http://www.esss.com.br/signature/signature_esss.png"><br></p><span \
style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"></span></div></div></div></div></div>
 </div></div>


["qt_error.png" (image/png)]
[Attachment #7 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic