Application crashes on 1440 x 2560 monitor

Bug #1196761 reported by Gary Riddell
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
High
Unassigned

Bug Description

Windows 7
Inkscape 0.48.4 r9939

I have two 2560 x 1440 monitors. The "second" one is used in portrait mode (i.e. 1440 x 2560). When I move the Inkscape application to this monitor and maximise it, any attempt to do anything (e.g. zoom the image) causes the application to crash.

Tags: crash win32
jazzynico (jazzynico)
tags: added: crash win32
Revision history for this message
h-h-h (h-h-h) wrote :

I use a 4K monitor in portrait mode with 200 % DPI scaling. I have to run Inkscape in upscaled mode (the way it starts by default), that is, every logical pixel is displayed as 4 device pixels. When I turn the upscaling off in the properties dialog of inkscape.exe, the application starts and shows a few display errors in the document area and black rectangles in tool windows (may vary, but black rectangles have an important role). Sometimes, it doesn't crash right away, so I may need to try showing a menu from the menubar, but the only thing that's displayed is the menu's shadow. I may need to switch around to try to show one of the other menus. Then, Inkscape just disappears, that is, crashes.

OS: Windows 10
Inkscape version: Inkscape 0.91 r13725

Revision history for this message
Patrick Storz (ede123) wrote :

Confirmed in
- Inkscape 0.92.2 (b2fd37fce9, 2017-10-23)
- Inkscape 0.92+devel (4dc6e12d29, 2017-10-26)
on Windows 10.

Backtrace attached, relevant section:

Thread 1 received signal SIGSEGV, Segmentation fault.
0x000000000361d035 in SPCanvas::paintRectInternal(PaintRectSetup const*, Geom::GenericRect<int> const&) ()
   from E:\Temp\Inkscape\inkscape.git\master\build64\inkscape\libinkscape_base.dll
#0 0x000000000361d035 in SPCanvas::paintRectInternal(PaintRectSetup const*, Geom::GenericRect<int> const&) ()
   from E:\Temp\Inkscape\inkscape.git\master\build64\inkscape\libinkscape_base.dll
... (endless calls to paintRectInternal())
#16239 0x000000000361d18f in SPCanvas::paintRectInternal(PaintRectSetup const*, Geom::GenericRect<int> const&) ()
   from E:\Temp\Inkscape\inkscape.git\master\build64\inkscape\libinkscape_base.dll
#16240 0x000000000361eb73 in SPCanvas::paint() ()
   from E:\Temp\Inkscape\inkscape.git\master\build64\inkscape\libinkscape_base.dll
#16241 0x000000000361fa18 in SPCanvas::idle_handler(void*) ()

Changed in inkscape:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Joshua Doe (joshuadoe) wrote :

I have this same problem, running version 0.92.3 x64 on Windows 10.

With the monitor at 2160x3840 (portrait mode), it exhibits the previously described behavior. The GUI will appear, then sometimes crash spontaneously, other times I'll have to click a menu title (which shows the outline of the menu but no contents) to cause a crash, other times it will just hang and I'll have to kill the process.

The resolutions that I tested and work fine are 2160x1920, 1600x2560, and 720x1280.

I checked that the hangups were being caused by infinite recursions in SPCanvas::paintRectInternal. Looking through the code here, I don't see an obvious bug that would cause this recursion, perhaps something about the calculation of mid?:
https://gitlab.com/inkscape/inkscape/blob/master/src/display/sp-canvas.cpp#L1732

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.