Crostini / WX graphics - kicad (pcbnew) fails on maximise window |
||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; CrOS x86_64 10718.22.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.25 Safari/537.36 Platform: 10718.22.0 (Official Build) dev-channel eve Steps to reproduce the problem: 1. Install kicad (apt-get install kicad) under Crostini 2. Run kicad and open a project 3. Open a PCB design and maximise window What is the expected behavior? Window maximises as on Linux What went wrong? Error occurs and kicad exits ../include/wx/math.h(136): assert "x > INT_MIN - 0.5 && x < INT_MAX + 0.5" failed in wxRound(): argument out of supported range Trace/breakpoint trap Did this work before? No Chrome version: 68.0.3440.25 Channel: dev OS Version: 10718.22.0 Flash Version:
,
Jun 18 2018
This happens with a new blank PCB - File->New Project, Tools->PCB New
,
Jun 18 2018
I can't reproduce. Maximize works just fine for me.
,
Jun 18 2018
Interesting. Full trace, if that helps. I'm using https://github.com/cscashby/faderboard/blob/master/hardware/board-controller-2560hat/board-controller-2560hat.kicad_pcb if that helps. cscashby@penguin:~$ kicad 03:21:42 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined 03:21:43 PM: Debug: Using libcurl/7.52.1 GnuTLS/3.5.8 zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3 03:21:43 PM: Debug: noname.pro: noname.pro 03:21:59 PM: Debug: board-controller-2560hat.pro: noname.pro 03:22:04 PM: Debug: Adding duplicate image handler for 'PNG file' 03:22:04 PM: Debug: Adding duplicate image handler for 'JPEG file' 03:22:04 PM: Debug: Adding duplicate image handler for 'TIFF file' 03:22:04 PM: Debug: Adding duplicate image handler for 'GIF file' 03:22:04 PM: Debug: Adding duplicate image handler for 'PNM file' 03:22:04 PM: Debug: Adding duplicate image handler for 'PCX file' 03:22:04 PM: Debug: Adding duplicate image handler for 'IFF file' 03:22:04 PM: Debug: Adding duplicate image handler for 'Windows icon file' 03:22:04 PM: Debug: Adding duplicate image handler for 'Windows cursor file' 03:22:04 PM: Debug: Adding duplicate image handler for 'Windows animated cursor file' 03:22:04 PM: Debug: Adding duplicate image handler for 'TGA file' 03:22:04 PM: Debug: Adding duplicate image handler for 'XPM file' 03:22:05 PM: Debug: Loading project '/home/cscashby/dev/electronics/faderboard/hardware/board-controller-2560hat/board-controller-2560hat.pro' settings. 15:22:05: Debug: Skipping general section token 'links' 15:22:05: Debug: Skipping general section token 'area' 15:22:05: Debug: Skipping general section token 'drawings' 15:22:05: Debug: Skipping general section token 'tracks' 15:22:05: Debug: Skipping general section token 'zones' 15:22:05: Debug: Skipping general section token 'symbol' ../include/wx/math.h(136): assert "x > INT_MIN - 0.5 && x < INT_MAX + 0.5" failed in wxRound(): argument out of supported range Trace/breakpoint trap
,
Jun 19 2018
Not sure how to open that file. Anyhow, I suspect it's related to the resolution of the X server. Can you attach the output of 'xrandr'? What is the zoom factor you use in chrome://settings/display ? Do you have an external monitor attached? Does it repro if zoom is 100% and no external monitor is attached?
,
Jun 21 2018
It's more nuanced than that I've now realised. At 100% on Pixelbook only all works fine. At 70% (or with other HiDPI monitor) it will crash. UNLESS you've previously opened the app at 100% and resized or maximised the PCB window (deleting ~/.config/kicad proves this). It seems that the PCBnew window is getting some invalid hint from WX about available size and crashes. If a ~/.config/kicad has previously had sane values in it it works fine.
,
Jun 21 2018
xrandr at 70% (which is first report): Screen 0: minimum 320 x 200, current 3428 x 2285, maximum 8192 x 8192 XWAYLAND0 connected 3424x2285+0+0 (normal left inverted right x axis y axis) 544mm x 363mm 3424x2285 59.97*+ Switch to 100%: Screen 0: minimum 320 x 200, current 2400 x 1600, maximum 8192 x 8192 XWAYLAND0 connected 2400x1600+0+0 (normal left inverted right x axis y axis) 381mm x 254mm 2400x1600 59.95*+
,
Sep 28
,
Oct 8
,
Oct 24
Is this still a problem in the current version?
,
Oct 25
Still occurs in 10895.78.0 (Official Build) stable-channel eve Christian.
,
Oct 30
|
||||
►
Sign in to add a comment |
||||
Comment 1 by reve...@chromium.org
, Jun 18 2018