eoyilmaz/displaycal-py3

[Windows] Assertion failed on launch

Opened this issue · 2 comments

Describe the bug
A clear and concise description of what the bug is.
image
after OK:
image
after 2-3 similar OK:
image
after OK:
image
Then it's stuck on loading screen
image
..untill killing process.

To Reproduce
Steps to reproduce the behavior:
First launch after installing.

Versions (please complete the following information):

  • OS: Windows 11 22631.4317
  • Python Version: 3.10.6 installed
  • ArgyllCMS Version: [e.g. 3.0.2, 3.1.0, 3.2.0]
  • DisplayCAL Version: [e.g. 3.9.12]

Additional context

[Window Title]
DisplayCAL

[Main Instruction]
C++ assertion "which == State_Normal" failed at ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set normal bitmap with the new size first

[Content]

Traceback (most recent call last):
  File "DisplayCAL\xh_filebrowsebutton.pyc", line 28, in DoCreateResource
  File "DisplayCAL\wxwindows.pyc", line 3185, in __init__
  File "wx\lib\filebrowsebutton.pyc", line 75, in __init__
  File "DisplayCAL\wxwindows.pyc", line 3334, in createDialog
  File "DisplayCAL\wxwindows.pyc", line 3310, in createBrowseButton
  File "DisplayCAL\wxfixes.pyc", line 1200, in __init__
  File "DisplayCAL\wxfixes.pyc", line 990, in set_bitmap_labels
wx._core.wxAssertionError: C++ assertion "which == State_Normal" failed at ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set normal bitmap with the new size first


WARNING: Your version of wxPython (4.2.1) is outdated and no longer supported. You should consider updating to wxPython 4.2.2 or newer.

[OK]

then

[Window Title]
DisplayCAL

[Main Instruction]
C++ assertion "which == State_Normal" failed at ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set normal bitmap with the new size first

[Content]
Traceback (most recent call last):
  File "DisplayCAL\xh_filebrowsebutton.pyc", line 28, in DoCreateResource
  File "DisplayCAL\wxwindows.pyc", line 3185, in __init__
  File "wx\lib\filebrowsebutton.pyc", line 75, in __init__
  File "DisplayCAL\wxwindows.pyc", line 3334, in createDialog
  File "DisplayCAL\wxwindows.pyc", line 3310, in createBrowseButton
  File "DisplayCAL\wxfixes.pyc", line 1200, in __init__
  File "DisplayCAL\wxfixes.pyc", line 990, in set_bitmap_labels
wx._core.wxAssertionError: C++ assertion "which == State_Normal" failed at ..\..\src\msw\anybutton.cpp(819) in wxAnyButton::DoSetBitmap(): Must set normal bitmap with the new size first


WARNING: Your version of wxPython (4.2.1) is outdated and no longer supported. You should consider updating to wxPython 4.2.2 or newer.

[OK]

after 2-3x ok

[Window Title]
DisplayCAL

[Main Instruction]
C++ assertion ""Assert failure"" failed at ..\..\src\common\sizer.cpp(678) in wxSizerItem::SetDimension(): can't set size of uninitialized sizer item

[Content]
Traceback (most recent call last):
  File "wx\core.pyc", line 3427, in <lambda>
  File "DisplayCAL\display_cal.pyc", line 19520, in setup_frame
  File "DisplayCAL\display_cal.pyc", line 1874, in __init__
  File "DisplayCAL\display_cal.pyc", line 2079, in init_frame
wx._core.wxAssertionError: C++ assertion ""Assert failure"" failed at ..\..\src\common\sizer.cpp(678) in wxSizerItem::SetDimension(): can't set size of uninitialized sizer item


WARNING: Your version of wxPython (4.2.1) is outdated and no longer supported. You should consider updating to wxPython 4.2.2 or newer.

I get the exact same error messages.

Windows 11 Pro 23H2 and 24H2.

Running it in compatible mode (Windows 7) seem to workaround the issue

Edit: while it launches, it recognize my 4k monitor as 1080p, so I'm not sure if it's running as expected