Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71711 - [scribus] Crashes when using the Qt GTK plugin

Attached to Project: Community Packages
Opened by Daniel (archsoft) - Monday, 02 August 2021, 22:50 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 03 August 2021, 09:52 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Caleb Maclennan (alerque)
Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

My scribus crashes when opening it. It looks like dependencies are broken.


$ scribus
Warning: dynamic library '/usr/lib/osgPlugins-3.6.5/osgdb_ogr.so' exists, but an error occurred while trying to open it:
libgdal.so.29: cannot open shared object file: No such file or directory
sizeof(TrkHeader)=1000
ReaderWriterTF::writeObject
Warning: dynamic library '/usr/lib/osgPlugins-3.6.5/osgdb_vnc.so' exists, but an error occurred while trying to open it:
libvncclient.so.1: cannot open shared object file: No such file or directory
Warning: dynamic library '/usr/lib/osgPlugins-3.6.5/osgdb_gdal.so' exists, but an error occurred while trying to open it:
libgdal.so.29: cannot open shared object file: No such file or directory
pathForIcon: Unable to load icon /usr/share/scribus/icons/1_5_1/lab.png: File not found
pathForIcon: Unable to load icon /usr/share/scribus/icons/1_5_1/spot.png: File not found
pathForIcon: Unable to load icon /usr/share/scribus/icons/1_5_1/register.png: File not found
qt.gui.icc: Unsupported ICC profile class 70727472
QPngHandler: Failed to parse ICC profile
Scribus ist abgestürzt
-------------
Absturz durch Signal #11


$ ldd /usr/lib/osgPlugins-3.6.5/osgdb_ogr.so
...
libgdal.so.29 => not found
...


community/openscenegraph 3.6.5-8 (8.0 MiB 40.4 MiB) (Installed)
community/gdal 3.3.1-3 (8.2 MiB 29.0 MiB) (Not Installed)
This task depends upon

Comment by Antonio Rojas (arojas) - Tuesday, 03 August 2021, 06:33 GMT
The gdal warnings are irrelevant. Please post a backtrace of the crash
Comment by Daniel (archsoft) - Tuesday, 03 August 2021, 09:29 GMT
Okay, Thanks.


$ gdb scribus
GNU gdb (GDB) 10.2

Reading symbols from scribus...
(No debugging symbols found in scribus)
(gdb) run
Starting program: /usr/bin/scribus
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff154c640 (LWP 43482)]
[New Thread 0x7fffebcae640 (LWP 43483)]
[New Thread 0x7fffeb4ad640 (LWP 43484)]
[New Thread 0x7fffeaa92640 (LWP 43485)]
[New Thread 0x7fffea259640 (LWP 43486)]
[New Thread 0x7fffe8e99640 (LWP 43487)]
[New Thread 0x7fffda570640 (LWP 43488)]
[New Thread 0x7fffd9d6f640 (LWP 43489)]
[New Thread 0x7fffd956e640 (LWP 43490)]
[Detaching after fork from child process 43491]
[Detaching after fork from child process 43492]
[Detaching after fork from child process 43493]
[Detaching after fork from child process 43494]
[Detaching after fork from child process 43495]
Warning: dynamic library '/usr/lib/osgPlugins-3.6.5/osgdb_ogr.so' exists, but an error occurred while trying to open it:
libgdal.so.29: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
sizeof(TrkHeader)=1000
ReaderWriterTF::writeObject
Warning: dynamic library '/usr/lib/osgPlugins-3.6.5/osgdb_vnc.so' exists, but an error occurred while trying to open it:
libvncclient.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Warning: dynamic library '/usr/lib/osgPlugins-3.6.5/osgdb_gdal.so' exists, but an error occurred while trying to open it:
libgdal.so.29: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
pathForIcon: Unable to load icon /usr/share/scribus/icons/1_5_1/lab.png: File not found
pathForIcon: Unable to load icon /usr/share/scribus/icons/1_5_1/spot.png: File not found
pathForIcon: Unable to load icon /usr/share/scribus/icons/1_5_1/register.png: File not found
qt.gui.icc: Unsupported ICC profile class 70727472
QPngHandler: Failed to parse ICC profile

Thread 1 "scribus" received signal SIGSEGV, Segmentation fault.
0x00007ffff5278a0e in __strcmp_avx2 () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff5278a0e in __strcmp_avx2 () at /usr/lib/libc.so.6
#1 0x00007ffff478ea4a in g_str_equal () at /usr/lib/libglib-2.0.so.0
#2 0x00007ffff478f832 in g_hash_table_lookup () at /usr/lib/libglib-2.0.so.0
#3 0x00007ffff47b52f6 in g_intern_static_string () at /usr/lib/libglib-2.0.so.0
#4 0x00007ffff03a1cc5 in g_param_spec_internal () at /usr/lib/libgobject-2.0.so.0
#5 0x00007ffff03a24c3 in g_param_spec_object () at /usr/lib/libgobject-2.0.so.0
#6 0x00007ffff0691eb7 in () at /usr/lib/libgtk-3.so.0
#7 0x00007ffff03b69eb in () at /usr/lib/libgobject-2.0.so.0
#8 0x00007ffff03bd89f in () at /usr/lib/libgobject-2.0.so.0
#9 0x00007ffff03be279 in g_type_class_ref () at /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff03a7b0c in g_object_new_valist () at /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff03a7bea in g_object_new () at /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff069840b in gtk_file_chooser_dialog_new () at /usr/lib/libgtk-3.so.0
#13 0x00007ffff0cf75fd in () at /usr/lib/qt/plugins/platformthemes/libqgtk3.so
#14 0x00007ffff0cfc1d4 in () at /usr/lib/qt/plugins/platformthemes/libqgtk3.so
#15 0x00007ffff6600d4e in QDialogPrivate::platformHelper() const () at /usr/lib/libQt5Widgets.so.5
#16 0x00007ffff661686b in QFileDialogPrivate::init(QFileDialogArgs const&) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff6616d0b in QFileDialog::QFileDialog(QWidget*, QFlags<Qt::WindowType>) () at /usr/lib/libQt5Widgets.so.5
#18 0x000055555606587c in NewDocDialog::createOpenDocPage() ()
#19 0x0000555556068cdc in NewDocDialog::NewDocDialog(QWidget*, QStringList const&, bool, QString const&) ()
#20 0x0000555555d7d9fa in ScribusMainWindow::startUpDialog() ()
#21 0x0000555555d991f7 in ScribusCore::startGUI(bool, bool, bool, QString const&) ()
#22 0x0000555555d8b3e4 in ScribusQApp::init() ()
#23 0x000055555594518a in mainApp(int, char**) ()
#24 0x00007ffff5144b25 in __libc_start_main () at /usr/lib/libc.so.6
#25 0x00005555558e790e in _start ()
(gdb) quit
Comment by Antonio Rojas (arojas) - Tuesday, 03 August 2021, 09:51 GMT
Thanks, I confirm the crash when using QT_QPA_PLATFORMTHEME=gtk3. You should report this upstream.
Comment by Caleb Maclennan (alerque) - Tuesday, 24 August 2021, 08:53 GMT
Is this still a problem? I am unable to replicate it using the scribus-1.5.7-2 package. Neither by default nor with the env var mentioned by Antonio does it crash for me.
Comment by Pierre Paysant-Le Roux (pplr) - Sunday, 29 August 2021, 20:32 GMT
Hello, I have scribus 1.5.7-2 installed and it crashes with the same backtrace by me.
Comment by Daniel (archsoft) - Monday, 30 August 2021, 21:53 GMT
i can confirm, too: my scribus 1.5.7-2 is still crashing.
Comment by Caleb Maclennan (alerque) - Thursday, 30 September 2021, 09:18 GMT
Per @arojas's suggestion above, has anybody that is actually able to reproduce this reported it upstream? I'm willing to help with the packaging it it turns out to be something we can fix, but it sounds like an upstream issue and I don't have a desktop environment where this is a problem so I'm sure I'm the best one to report it.

Please cross-link it here when it is reported.
Comment by Antonio Rojas (arojas) - Thursday, 30 September 2021, 13:38 GMT
This is fixed for me with gtk 3.24.30+62+g8d04980f38, please confirm
Comment by Daniel (archsoft) - Monday, 04 October 2021, 19:40 GMT
extra/gtk3 1:3.24.30+62+g8d04980f38-2 (7.6 MiB 48.5 MiB) (Installed)

No fix, still crashing for me.
Comment by Daniel (archsoft) - Tuesday, 16 November 2021, 22:13 GMT
my scribus 1.5.7-7 is still crashing.
Comment by Clemmitt Sigler (cmsigler) - Thursday, 18 November 2021, 17:25 GMT
Hi all,

OK, this is really vexing.  FS#71277  shows what is apparently the same error -- it contains one workaround, which is to run as root. This is a workaround for me, too, scribus 1.5.7-7.  FS#71277  was closed as WFM because the 17 June 2021 update to scribus 1.5.7-1 resolved the problem for the reporter (lcv). (1.5.7-1 won't run for me, I assume because of dependency hell.)

Please see also: https://forums.scribus.net/index.php/topic,4139.msg19250.html
as well as: https://forums.scribus.net/index.php/topic,4059.msg18968.html

Obviously running as root isn't a solution, and seems to show there is something permissions related going on (he guessed optimistically)??? When I run it as root at the command line I get exactly the same warnings spew except for the addition of:

"QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'"

and there is no:

"Scribus Crash
-------------
Scribus crashes due to Signal #11
Calling Emergency Save"

obviously. My backtrace shows it crashes thusly:

"Thread 1 "scribus" received signal SIGSEGV, Segmentation fault.
0x00007ffff524b2da in __strcmp_ssse3 () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff524b2da in __strcmp_ssse3 () at /usr/lib/libc.so.6"

Only difference seems to be which architecture optimized strcmp glibc is employing(?). Speaking of architecture and age of CPU, this old laptop's /proc/cpuinfo says in part:

vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
stepping : 10
microcode : 0xa0c
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl cpuid aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti tpr_shadow vnmi flexpriority vpid dtherm ida

A somewhat newer old one:

vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz
stepping : 7
microcode : 0x1b
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm arat pln pts

This newer one also crashes, in __strcmp_sse2_unaligned in this case.

My newest laptop, a ThinkPad E595:

vendor_id : AuthenticAMD
cpu family : 23
model : 24
model name : AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
stepping : 1
microcode : 0x8108102
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca sme sev sev_es

On this newest laptop, scribus runs without a problem as an unprivileged user. Isn't something weird happening around CPU architecture and permissions?... I'm obviously not an expert.

I'm assuming this is a fairly narrow problem. There aren't hundreds of people screaming about it in FlySpray or on the Scribus forums. This isn't much, but HTH. I will try running the appimage later, assuming I can figure out how to run appimages ;^)

Clemmitt Sigler
Comment by Clemmitt Sigler (cmsigler) - Thursday, 18 November 2021, 20:34 GMT
Hello again,

More (largely useless) info. I downloaded the appimage generated Nov. 11 from https://gitlab.com/scribus/scribus/-/jobs -- with it I get a bunch of warnings like this:

"Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description""

Before that I get:

"Run experimental bundle that bundles everything
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed"

Finally, I get:

"Fontconfig warning: FcPattern object weight does not accept value [40 210)
Segmentation fault (core dumped)"

gdb is no help because zero symbols:

"Thread 1 "ld-linux-x86-64" received signal SIGSEGV, Segmentation fault.
0x00007fffe53a3fc4 in ?? () from /tmp/.mount_ScribuHhPKDv/usr/lib/libQt5XcbQpa.so.5"

I also built scribus-svn 24770-1 from AUR on my fast laptop. With the Arch pkgs I can run 'scribus -h', 'scribus -v', etc., non-graphical branches to exit, but not the graphics unless it's run as root. Is there any chance this is due to some weird Qt thing? Just spitballin' :^\

TIA.

Clemmitt
Comment by Clemmitt Sigler (cmsigler) - Friday, 19 November 2021, 20:03 GMT
Sorry -- duplicate comment -- removed
Comment by Adrien Hegy (AdrienHegy) - Monday, 29 November 2021, 15:34 GMT
Hi there,

I had a similar problem (#11 signal), I don’t know if it has same origin but what did the job for me :

Use the no-splash option which disable starting screen, after that Scribus start at document creation and seems to work fine.
Following lines from scribus -h gave me this idea (french version, sorry about that) :
-ns, --no-splash Ne pas afficher l'écran de démarrage
-nns, --never-splash Cesse d'afficher l'écran de démarrage au démarrage. Ecrit un fichier vide appelé .neversplash dans ~/.config /scribus
I confirm that using -nns option works even after launching program out of a terminal (from start menu or from a file)

Hope this might help you having Scribus working and maybe debugging the problem.

Loading...