pyfa-org / Pyfa

Python fitting assistant, cross-platform fitting tool for EVE Online
GNU General Public License v3.0
1.6k stars 402 forks source link

M2 Mac stack trace on disable overheat #2492

Open thegilm opened 1 year ago

thegilm commented 1 year ago

Bug Report

Error occurred on ctrl+click to disable overheat on a single module. I have seen this error before and think, there are different ways to reproduce this, but am not completely sure. Gonna update this ticket, if I encounter this again with a different trigger. pyfa v2.49.0 EVE Data Version: 2178459 (2022-12-11 01:27:31)

OS version: Darwin-21.6.0-x86_64-i386-64bit Python version: 3.7.15 (default, Dec 8 2022, 16:29:15) [Clang 12.0.0 (clang-1200.0.32.28)] wxPython version: 4.0.6 (wxWidgets 3.0.5) SQLAlchemy version: 1.3.23 Logbook version: 1.5.3 Requests version: 2.28.1 Dateutil version: 2.8.2

####################

Traceback (most recent call last): File "gui/builtinShipBrowser/sfBrowserItem.py", line 291, in OnPaint File "gui/builtinShipBrowser/fitItem.py", line 487, in DrawItem File "gui/builtinShipBrowser/fitItem.py", line 457, in UpdateElementsPos AttributeError: 'NoneType' object has no attribute 'GetWidth'

####################

Traceback (most recent call last): File "gui/builtinShipBrowser/sfBrowserItem.py", line 291, in OnPaint File "gui/builtinShipBrowser/fitItem.py", line 487, in DrawItem File "gui/builtinShipBrowser/fitItem.py", line 457, in UpdateElementsPos AttributeError: 'NoneType' object has no attribute 'GetWidth'

####################

Traceback (most recent call last): File "gui/builtinShipBrowser/sfBrowserItem.py", line 291, in OnPaint File "gui/builtinShipBrowser/fitItem.py", line 487, in DrawItem File "gui/builtinShipBrowser/fitItem.py", line 457, in UpdateElementsPos AttributeError: 'NoneType' object has no attribute 'GetWidth'

Expected behavior:

Overheat on module should have disabled.

Actual behavior:

Error with stack trace was shown, overheat was still active and the tree view on the left with the fittings was completely empty.

Detailed steps to reproduce:

Worked with the fit below, enabled overheat on the XLASB, error encountered, when I tried to disable heat via ctrl+click. Had to quit and reopen pyfa to continue working.

Fits involved in EFT format (Edit > To Clipboard > EFT):

[Cyclone Fleet Issue, Gustav Mannfred's Cyclone Fleet Issue] Ballistic Control System II Ballistic Control System II Ballistic Control System II Co-Processor II Damage Control II

10MN Afterburner II Multispectrum Shield Hardener II Multispectrum Shield Hardener II Stasis Webifier II X-Large Ancillary Shield Booster

Heavy Assault Missile Launcher II,Mjolnir Javelin Heavy Assault Missile Heavy Assault Missile Launcher II,Mjolnir Javelin Heavy Assault Missile Heavy Assault Missile Launcher II,Mjolnir Javelin Heavy Assault Missile Heavy Assault Missile Launcher II,Mjolnir Javelin Heavy Assault Missile Heavy Assault Missile Launcher II,Mjolnir Javelin Heavy Assault Missile Heavy Assault Missile Launcher II,Mjolnir Javelin Heavy Assault Missile Heavy Pulse Laser II,Conflagration M Shield Command Burst II,Shield Extension Charge

Medium Hydraulic Bay Thrusters II Medium Warhead Rigor Catalyst I Medium Warhead Rigor Catalyst II

Release or development git branch? Please note the release version or commit hash:

Release 2.49.0

Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):

Mac OS 12.6