Print Preview does nothing (compatibility issues with Gnome?)
Clicking on "print preview" closes the print dialogue window and brings me back to the main screen with no apparent action taken.
Not sure if it has something to do with missing modules? $ flatpak run com.github.phase1geo.minder --run-tests
Gtk-Message: 09:37:15.404: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:37:15.536: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:37:15.536: Failed to load module "canberra-gtk-module"
/init: OK
$ flatpak info com.github.phase1geo.minder
Minder - Create, develop and visualize your ideas
ID: com.github.phase1geo.minder
Ref: app/com.github.phase1geo.minder/x86_64/stable
Arch: x86_64
Branch: stable
Version: 1.9.0
License: GPL-3.0+
Origin: flathub
Collection: org.flathub.Stable
Installation: user
Installed: 99.3 MB
Runtime: org.freedesktop.Platform/x86_64/19.08
Sdk: org.freedesktop.Sdk/x86_64/19.08
Commit: 0253da338b7f6c2250434583f537eab928a1d4d69e31c4dc56794d18f4240966
Parent: 21fe14f5dd81f428d3f10feb37cc215a7e18d93131e82b2323d99af49e64396a
Subject: Update to 1.9.0 (94b85bef)
Date: 2020-07-01 08:32:51 +0000
$ uname -a
Linux pop-os 5.4.0-7634-generic #38~1592497129~20.04~9a1ea2e-Ubuntu SMP Fri Jun 19 22:43:37 UTC x86_64 x86_64 x86_64 GNU/Linux
$ gnome-shell --version
GNOME Shell 3.36.2
Runtime log: $ flatpak run com.github.phase1geo.minder
Gtk-Message: 09:39:15.470: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:39:15.609: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:39:15.609: Failed to load module "canberra-gtk-module"
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node notebook, owner GtkNotebook)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: gtk_widget_size_allocate(): attempt to allocate widget with width -10 and height 997
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkRadioButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node button, owner GtkRadioButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node button, owner GtkRadioButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkColorButton)
(com.github.phase1geo.minder:2): Gtk-CRITICAL **: 09:39:16.016: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:2): Gtk-CRITICAL **: 09:39:16.016: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:2): Gtk-CRITICAL **: 09:39:16.016: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:2): Gtk-CRITICAL **: 09:39:16.016: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:2): Gtk-CRITICAL **: 09:39:16.016: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:2): Gtk-WARNING **: 09:39:16.016: gtk_widget_size_allocate(): attempt to allocate widget with width -20 and height 987
(com.github.phase1geo.minder:2): Gtk-CRITICAL **: 09:39:16.017: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(com.github.phase1geo.minder:2): GLib-GObject-WARNING **: 09:39:16.030: invalid cast from 'DrawArea' to 'GtkWindow'
(com.github.phase1geo.minder:2): GLib-GObject-WARNING **: 09:39:16.050: invalid cast from 'DrawArea' to 'GtkWindow'
(com.github.phase1geo.minder:2): GLib-GObject-WARNING **: 09:39:16.154: invalid cast from 'DrawArea' to 'GtkWindow'
(com.github.phase1geo.minder:2): GLib-GObject-WARNING **: 09:39:16.174: invalid cast from 'DrawArea' to 'GtkWindow'
(com.github.phase1geo.minder:2): Gtk-CRITICAL **: 09:39:17.728: gtk_widget_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
Things are working for me when running from source. Perhaps this is a Flatpak issue?
You may be right! I also have GIMP 2.10.20 installed from Flathub. Print preview worked correctly the first time: it exported to PDF and then asked which program I would like to view the PDF with. However, subsequent attempts to run print preview failed.
Running from terminal, same behavior (first print preview works, subsequent attempts fail): $ flatpak run org.gimp.GIMP
Gtk-Message: 09:51:56.280: Failed to load module "atk-bridge"
Gtk-Message: 09:51:56.280: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:51:56.285: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:52:15.602: Failed to load module "atk-bridge"
Gtk-Message: 09:52:15.602: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:52:15.608: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:52:20.191: Failed to load module "atk-bridge"
Gtk-Message: 09:52:20.191: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:52:20.198: Failed to load module "canberra-gtk-module"
** (print:58): WARNING **: 09:52:20.326: Couldn't connect to D-Bus system bus, Could not connect: No such file or directory
(print:58): Gtk-WARNING **: 09:52:22.469: Error launching preview Failed to execute child process “evince” (No such file or directory)
Gtk-Message: 09:52:27.129: Failed to load module "atk-bridge"
Gtk-Message: 09:52:27.129: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:52:27.135: Failed to load module "canberra-gtk-module"
** (print:80): WARNING **: 09:52:27.206: Couldn't connect to D-Bus system bus, Could not connect: No such file or directory
(print:80): Gtk-WARNING **: 09:52:30.437: Error launching preview Failed to execute child process “evince” (No such file or directory)
Gtk-Message: 09:52:58.756: Failed to load module "atk-bridge"
Gtk-Message: 09:52:58.757: Failed to load module "appmenu-gtk-module"
Gtk-Message: 09:52:58.763: Failed to load module "canberra-gtk-module"
** (print:101): WARNING **: 09:52:58.835: Couldn't connect to D-Bus system bus, Could not connect: No such file or directory
(print:101): Gtk-WARNING **: 09:53:15.927: Error launching preview Failed to execute child process “evince” (No such file or directory)
Does this look like a flatpak issue to you?
To be honest, I don’t know much about Flatpak from a development perspective. I know there are sand boxing restrictions and other subtle differences from source.