Bug 166757 - Print preview button for LibreOffice Base Form causes crash.
Summary: Print preview button for LibreOffice Base Form causes crash.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Print-Preview Crash
  Show dependency treegraph
 
Reported: 2025-05-28 05:48 UTC by datlaunchystark
Modified: 2025-05-29 21:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
bt (11.39 KB, text/plain)
2025-05-29 21:14 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description datlaunchystark 2025-05-28 05:48:04 UTC
When viewing a form with the print preview button not grayed out (when the form is 8.5x11 letter sized), the program will completely crash with the following terminal output.

(soffice:37): GLib-GObject-CRITICAL **: 22:28:35.853: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
Unspecified Application Error

This happened on every computer I've tried.  Regular print option does work including the embedded preview pane. Using the Flatpak version on Debian 12.
Comment 1 Robert Großkopf 2025-05-28 06:50:23 UTC
Tested this one:
Opened a form in Base.
Tried to find any possibility to start "Print preview". 
Button in toolbar and in menu is greyed out.
So no possibility here to start the preview in a Base form.

Please post you version of LO ( Help → about…)

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
Comment 2 datlaunchystark 2025-05-28 09:45:53 UTC
The page has to be letter sized to show the print preview button.  Clicking on File > Print then closing the print dialog box reformats the page as letter size.  After which the print preview option becomes available and clicking on it causes the program to crash with the following terminal output.

(soffice:37): GLib-GObject-CRITICAL **: 22:28:35.853: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
Unspecified Application Error

I've tried on multible computers running Debian 12.

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-CA (en_CA.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 3 jcsanz 2025-05-28 10:30:09 UTC
Tested:
Opened a form in Base.
Tried to find any possibility to start "Print preview". 
Button in toolbar and in menu is greyed out.

Click on File > Print then closing the print dialog box reformats the page as letter size (or any other size) then the "Print preview" is active

Click on print preview, the preview is shown without any problem

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 4 datlaunchystark 2025-05-28 10:48:38 UTC
(In reply to jcsanz from comment #3)
> Tested:
> Opened a form in Base.
> Tried to find any possibility to start "Print preview". 
> Button in toolbar and in menu is greyed out.
> 
> Click on File > Print then closing the print dialog box reformats the page
> as letter size (or any other size) then the "Print preview" is active
> 
> Click on print preview, the preview is shown without any problem
> 
> Version: 25.2.3.2 (X86_64) / LibreOffice Community
> Build ID: bbb074479178df812d175f709636b368952c2ce3
> CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render:
> Skia/Raster; VCL: win
> Locale: es-ES (es_ES); UI: es-ES
> Calc: CL threaded

Maybe it seams to be only present in the flatpak Linux version.  All the computers I've tried are Linux systems.
Comment 5 Robert Großkopf 2025-05-28 12:47:58 UTC
(In reply to datlaunchystark from comment #2)
> The page has to be letter sized to show the print preview button.  Clicking
> on File > Print then closing the print dialog box reformats the page as
> letter size.  After which the print preview option becomes available and
> clicking on it causes the program to crash with the following terminal
> output.

With this description I will get the print preview available. And I will get the crash with LO 25.2.3.2 and VCL: kf5

I get the same buggy behavior with many older versions here, oldes version I have tested is LO 7.4.7.2 on OpenSUSE Linux.

So seems to be an older bug fro Linux only.
Comment 6 Julien Nabet 2025-05-29 21:14:33 UTC
Created attachment 201035 [details]
bt

On pc Debian x86-64 with master sources updated today, I could reproduce this.