Author Topic: Assert failure on startup, linux hidpi scaled [SOLVED]  (Read 2974 times)

Offline rforcen

  • Single posting newcomer
  • *
  • Posts: 2
Assert failure on startup, linux hidpi scaled [SOLVED]
« on: June 26, 2022, 11:20:25 am »
on launching cb on a 200% scaled 4k display,  i get the following assert failure

ASSERT INFO:
./src/generic/imaglist.cpp(63): assert "(bitmap.GetWidth() >= m_width && bitmap.GetHeight() == m_height) || (m_width == 0 && m_height == 0)" failed in Add(): invalid bitmap size in wxImageList: this might work on this platform but definitely won't under Windows.

BACKTRACE:
[1] wxGenericImageList::Add(wxBitmap const&)
[2] cbAddBitmapToImageList(wxImageList&, wxBitmap const&, int, int, double)
[3] cbProjectTreeImages::MakeImageList(int, wxWindow&)
[4] wxEntry(int&, wchar_t**)
[5] __libc_start_main

this doesn't happen on lower scaled values

screenfetch:

 ██████████████████  ████████     asd@956
 ██████████████████  ████████     OS: Manjaro 21.3.1 Ruah
 ██████████████████  ████████     Kernel: x86_64 Linux 5.15.49-1-MANJARO
 ██████████████████  ████████     Uptime: 2h 57m
 ████████            ████████     Packages: 1366
 ████████  ████████  ████████     Shell: zsh 5.9
 ████████  ████████  ████████     Resolution: 3840x2160
 ████████  ████████  ████████     DE: KDE 5.95.0 / Plasma 5.24.5
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: Breeze [GTK2/3]
 ████████  ████████  ████████     Icon Theme: breeze
 ████████  ████████  ████████     Disk: 410G / 1,2T (36%)
 ████████  ████████  ████████     CPU: AMD Ryzen 7 5700G with Radeon Graphics @ 16x 3.8GHz
 ████████  ████████  ████████     GPU: AMD RENOIR (LLVM 13.0.1, DRM 3.42, 5.15.49-1-MANJARO)
                                  RAM: 3190MiB / 13872MiB


update:

latest update solved the issue,

Name                   : Code::Blocks
Version                : 20.03-r11997
SDK Version            : 2.0.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : http://www.codeblocks.org
Scaling factor         : 2.000000
Detected scaling factor: 2.000000
Display PPI            : 192x192
Display count          : 1
Display 0              : XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxGTK port)
Version 3.2.0 (Unicode: wchar_t, debug level: 1),
compiled at Jul  8 2022 16:49:34

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.34.
« Last Edit: July 19, 2022, 10:18:19 am by rforcen »

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Assert failure on startup, linux hidpi scaled
« Reply #1 on: June 26, 2022, 11:47:29 am »
If you are not using the latest nightly give it a try.

What version of C::B are you using?

Offline rforcen

  • Single posting newcomer
  • *
  • Posts: 2
Re: Assert failure on startup, linux hidpi scaled
« Reply #2 on: June 26, 2022, 05:54:05 pm »
i'm using latest 20.03, i'll have a try on latest build