Menu

#83 Crash with AttributeError: 'NoneType' object has no attribute 'select'

Fixed
J-P
None
High
Defect
2017-09-12
2016-08-23
No

Crash when opening a DXF file.

Git commit: c403e9db0fb3f73f835a1d470a34351b65130ecd
Qt version: 5.7.0 (Arch Linux packages 5.7.0-1)
Python 2.7 version: 2.7.12

18:03 [master] git/dxf2gcode-sourcecode/source % ./dxf2gcode.py
KSambaShare: Could not find smb.conf!
Traceback (most recent call last):
File "/home/mcv/git/dxf2gcode-sourcecode/source/gui/treeview.py", line 280, in selectionChanged
self.selectionChangedcallback(self, selected, deselected)
File "/home/mcv/git/dxf2gcode-sourcecode/source/gui/treehandling.py", line 1104, in actionOnSelectionChange
selectionLayer.select(itemLayerSelection, QItemSelectionModel.Deselect | QItemSelectionModel.Rows)
AttributeError: 'NoneType' object has no attribute 'select'
zsh: abort (core dumped) ./dxf2gcode.py

I haven't used dxf2gcode in a while, so I can't really recall when was the last time it was working and what Qt version was used there.
The "offending" dxf file is attached.

1 Attachments

Related

Tickets: #83

Discussion

  • J-P

    J-P - 2016-09-05

    Hi this one is also reported in the user forum. It has to do with a change in Qt. If you use version 5.6 it would still work. Probably I'm the one that will fix it (I actualy hope someone else helps me out), but it will be fixed ;)

     
  • J-P

    J-P - 2016-09-05
    • status: Verified --> Accepted
    • assigned_to: J-P
     
  • chrisko

    chrisko - 2016-09-05

    I'm not a qt specialist but tell me if I can support. Will be back in 1
    week ...
    But I expect you wait for someone in the qt forum 😉
    Regards Christian

    Am 23.08.2016 18:06 schrieb "Michał Gawron" mcvsama@users.sf.net:


    Status: New
    Created: Tue Aug 23, 2016 04:06 PM UTC by Michał Gawron
    Last Updated: Tue Aug 23, 2016 04:06 PM UTC
    Owner: nobody
    Attachments:

    Crash when opening a DXF file.

    Git commit: c403e9db0fb3f73f835a1d470a34351b65130ecd
    Qt version: 5.7.0 (Arch Linux packages 5.7.0-1)
    Python 2.7 version: 2.7.12

    18:03 [master] git/dxf2gcode-sourcecode/source % ./dxf2gcode.py
    KSambaShare: Could not find smb.conf!
    Traceback (most recent call last):
    File "/home/mcv/git/dxf2gcode-sourcecode/source/gui/treeview.py", line
    280, in selectionChanged
    self.selectionChangedcallback(self, selected, deselected)
    File "/home/mcv/git/dxf2gcode-sourcecode/source/gui/treehandling.py",
    line 1104, in actionOnSelectionChange
    selectionLayer.select(itemLayerSelection, QItemSelectionModel.Deselect |
    QItemSelectionModel.Rows)
    AttributeError: 'NoneType' object has no attribute 'select'
    zsh: abort (core dumped) ./dxf2gcode.py

    I haven't used dxf2gcode in a while, so I can't really recall when was the
    last time it was working and what Qt version was used there.
    The "offending" dxf file is attached.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/dxf2gcode/tickets/83/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Tickets: #83

  • saucy

    saucy - 2017-05-08

    souceforge sucks, can't even paste anything.

    treehandling.py line 217 , similar error about "rowCount".

    It turns out that I did not have qt5 only qt4. Can't this kind of thing be tested for on start up rather than just waiting for stuff to crash with obscure error msgs?

    Using Fedora I get
    PyQt4-4.11.4
    qt 4.8.7 and qt 5.7.1

     
  • saucy

    saucy - 2017-05-08

    Just to clarify, I still get the error with qt5 installed.

    This is on first run, when I press "Apply" having made trivial change to configuration dialogue.

    QT is not going backwards on any platform. This needs attention otherwise no distro will be able to run dxf2gocde any more.

     
  • Damian Wrobel

    Damian Wrobel - 2017-09-12
    • status: Accepted --> Fixed
     
  • Damian Wrobel

    Damian Wrobel - 2017-09-12

    Change bdd80df6cb32999b907042f391e2bc4af9db6202 on develop branch contain fix for this issue.

     

Log in to post a comment.