Floating point exception with empty DISPLAY

Migrated from https://bugs.launchpad.net/inkscape/+bug/1807548

Steps to reproduce:

  • touch a.dxf
  • DISPLAY='' inkscape -l output.svg a.dxf

What happened?

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: 19:45:39.966: Error: Inkscape encountered an internal error and will close now.

Floating point exception (core dumped)

This also occurs with a normal dxf file, not just with an empty one.

What should have happened?

Generate the output.svg file, or issue an error message why it could not be generated.

Inkscape Version and Operating System:

Originally reported on:

  • Inkscape Version: 0.92.3 (2405546, 2018-03-11)
  • Operating System: Ubuntu
  • Operating System version: 18.04.1 LTS

Reproduced on:

  • Inkscape Version: 0.92.4
  • Operating System: OpenSUSE TW
  • Operating System version: 20190310

Reproduced on:

  • Inkscape Version: Inkscape 1.0alpha (3a1866ab31, 2019-03-25)
  • Operating System: Ubuntu
  • Operating System version: 18.04

Was reportedly not reproduced on OpenSUSE 20190310 when running Inkscape master SHA 1457bb95

Attachments

a.dxf

backtrace.txt

Edited by Nathan Lee