Inkscape.org
Beyond the Basics MacOS: Crash on zooming big page
  1. #1
    surfmike surfmike @surfmike
    *

    Hi!

    Newbie on INKscape, nice experience!

    I've run into an issue using a big size page, 50x100 meters (50.000x100.000mm).
    1. I can create the page.
    2. I can duplicate and move an object from top left corner to the far away top right corner.
    3. I can scroll page to see the copied object.
    4. But once I'll zoom in INKscape crashes, every time... See attached video.

    Is there a solution to this, or does anyone know what's going wrong?

     

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    The option to use cm as document units may help. There may also be a core file to customize units to get meters.

    Or, maybe work in scale?

  3. #3
    surfmike surfmike @surfmike

    Unfortunately we'll need mm as the outcome.
    Since 2017 we've been working on a new line of products. I recently found out INKscape would be an excellent choice to use for some parts in this eco system of functionality.

    I'm sure we will drive a lot of users to INKscape and I'm also happy to contribute to the future INKscape development.

    ---

    Furthermore things tend to be better if page size is smaller, but it still crashes.

    Attached is the crash report. Unfortunately I don't have the skills to make any use of it... :)

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    OK, I've edited the title of the topic so the Mac gurus can chime in.

    I'll add some comments after I muck about with a test file.

  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    In Linux, Inkscape cannot zoom far enough to see the entire page without the UI acting flaky. This may be causing a crash in MacOS. (zooming to 1% or similar)

    Since you are having crashes, you can file a bug report: https://gitlab.com/inkscape/inbox/-/issues

  6. #6
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Let me add to the mystery. I'm on a mac too and I have no problem creating a huge page like that. The only UI issue is that the zoom level can't go below 1% so I can only display a small portion of the page. Other than that I haven't noticed any problems zooming and editing shapes. Inkscape seems to handle all those extra digits seamlessly.

    I also experimented with [Document Properties] [Display] [Scale: 1000]. AFAIU this moves the decimal point in display coordinates three places right from the internal SVG coordinates. I didn't notice any differences in my system but, if large numbers are somehow the problem, this might improve your stability.

    I'm curious. Why do you need such a large page? Is a scaled solution possible?

  7. #7
    surfmike surfmike @surfmike

    "Is a scaled solution possible?"
    No, I'm stuck to mm on a big layout.

    Issue only occurs if I view the very right part of a big layout including the right page border, then the crash occurs when zooming.

  8. #8
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Here's a hacky workaround.

    First create a perfectly stable drawing 1000mm x 500mm. I know this is 1% of your required size, but stay with me. Draw your shapes at 1% scale. Draw every meter as a centimeter. Save the drawing "small_scale.svg".

    Now create a big unstable drawing 100000 x 50000mm. [File > Import > "small_scale.svg"] and choose [Link the svg file]. With the select toolbar set [X: 0.0] and [Y: 0.0] then [W: 100000] and [H: 50000]. The small image will be stretched to fill the entire large page. Save as "large_scale.svg".

    Go back to the small scale drawing window. Any edits saved from here are immediately reproduced in the linked image inside the large scale drawing.

  9. #9
    surfmike surfmike @surfmike

    Thx, indeed a very creative way of hacking the issue. :)
    I see only 2 issues for our concern:

    1. Scaling from 1% to 100% will loose accuracy since a svg file is sort of approximate.

    2. We need to teach 1.000s of users this behaviour since collaboration is part of the process.

    Is this a Mac only issue? Does it work in Windows and Linux?

     

     

  10. #10
    Tyler Durden Tyler Durden @TylerDurden

    There is a more hacky way, to modify the units.xml in the ui folder. I would test before deploying, since all users would need the mod.  A method with stock Inkscape configuration would be best.

     

  11. #11
    surfmike surfmike @surfmike

    Thx. 

    Is this a Mac only issue? Does it work on Windows and Linux?

  12. #12
    Tyler Durden Tyler Durden @TylerDurden

    On Linux, it does not crash, but display gets black lateral bars at close zoom. The other issue is the screen cannot zoom to see the entire page.

    With a modified units.xml, it all works fine.

     

  13. #13
    Paddy_CAD Paddy_CAD @Paddy_CAD
    *

    I haven't been able to reproduce your big image crash on my 2012 macbook pro, so maybe it's not an issue on intel macs.

    But I really am intrigued. What are you planning? Why so coy?

  14. #14
    surfmike surfmike @surfmike

    I will install Inkscape on my old MBP13 and see if I can make it work.

    Not "coy", more like the urge to present something when complete and working. We are soon there. I really hope we can make Inkscape part of the entire eco system of functionality.

    I'm happy you're intrigued since the very few people who've seen went from intrigued to fascinated. :)

    If the issue can be solved there's a huge step forward for everyone's concern, I can promise you that.

  15. #15
    surfmike surfmike @surfmike

    Issue is solved in 1.3. Thx dev team! :)

Inkscape Inkscape.org Inkscape Forum Beyond the Basics MacOS: Crash on zooming big page