Skip to content

Pinch-to-zoom crashes Inkscape on MacOS Mojave.

Steps to reproduce:

  • open Inkscape
  • use the pinch gesture on my trackpad

What happened?

**
Gdk:ERROR:../gdk/quartz/gdkevents-quartz.c:992:fill_pinch_event: code should not be reached
Bail out! Gdk:ERROR:../gdk/quartz/gdkevents-quartz.c:992:fill_pinch_event: code should not be reached

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
**
Gdk:ERROR:../gdk/quartz/gdkevents-quartz.c:992:fill_pinch_event: code should not be reached
Bail out! Gdk:ERROR:../gdk/quartz/gdkevents-quartz.c:992:fill_pinch_event: code should not be reached
[1]    65366 abort      ./inkscape

Inkscape Version and Operating System:

  • Inkscape Version: 1.0rc1 (also tested (and crashes) with 1.1.0-dev [ce96f98] and Inkscape 1.1-dev (8475e9b475, 2020-04-13))
  • Operating System: MacOS 'Mojave'
  • Operating System version: 10.14.6
  • MacBook Air (11-inch, Early 2015)
  • Intel HD Graphics 6000

Additional Information

I tested with three different versions and all crashed:

With the first two, the crash seems to happen instantly. With the version I built myself, usually it crashes instantly but sometimes pinch-to-zoom works for a second or two before crashing.

Before each test, I cleared my preferences using: rm -rf ~/Library/Application\ Support/org.inkscape.Inkscape ~/Library/Application\ Support/Inkscape ~/.config/inkscape

The third was built with:

  • Apple LLVM version 10.0.1 (clang-1001.0.46.4)

Dependencies from homebrew:

  • adwaita-icon-theme: stable 3.36.0
  • bdw-gc: stable 8.0.4
  • boost: stable 1.72.0
  • cairo: stable 1.16.0
  • cmake: stable 3.17.1
  • double-conversion: stable 3.1.5
  • gdl: stable 3.34.0
  • gettext: stable 0.20.1
  • gsl: stable 2.6
  • gtk+3: stable 3.24.17
  • gtkmm3: stable 3.24.2
  • little-cms2: stable 2.9
  • libsoup: stable 2.70.0
  • libxslt: stable 1.1.34
  • ninja: stable 1.10.0
  • poppler: stable 0.87.0
  • potrace: stable 1.16

Dependencies from pip:

  • py-lxml: 4.2.5
  • numpy: 1.15.4

Configured using: cmake -G Ninja -DCMAKE_INSTALL_PREFIX="$PREFIX" -DWITH_OPENMP=OFF -DCMAKE_BUILD_TYPE=Debug -DIntl_INCLUDE_DIR=/usr/local/opt/gettext/include ../

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information