CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Totally_Lost
Posts: 6
Joined: Tue Apr 30, 2019 1:56 am

CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by Totally_Lost »

Is this a dependency issue?


[jbass@localhost ~]$ gdb FreeCAD
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib64/freecad/bin/FreeCAD...Reading symbols from /usr/lib64/freecad/bin/FreeCAD...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install freecad-0.16-2.el7.x86_64
(gdb) r
Starting program: /usr/bin/FreeCAD
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

[New Thread 0x7fffcf41a700 (LWP 25664)]
[New Thread 0x7fffcead8700 (LWP 25665)]
[New Thread 0x7fffce2d7700 (LWP 25666)]
[New Thread 0x7fffcdad6700 (LWP 25667)]
[New Thread 0x7fffcd2d5700 (LWP 25668)]
[New Thread 0x7fffccad4700 (LWP 25669)]
[New Thread 0x7fffcc2d3700 (LWP 25670)]
[New Thread 0x7fffcbad2700 (LWP 25671)]
[Thread 0x7fffcbad2700 (LWP 25671) exited]
failed to create drawable
[New Thread 0x7fffcbad2700 (LWP 25673)]
[Thread 0x7fffcbad2700 (LWP 25673) exited]
[New Thread 0x7fffcbad2700 (LWP 25674)]
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
FreeCAD: xcb_io.c:259: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff496b207 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
55 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) q
A debugging session is active.

Inferior 1 [process 25656] will be killed.

Quit anyway? (y or n) y
[jbass@localhost ~]$
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by NormandC »

Totally_Lost wrote: Tue Apr 30, 2019 2:08 am FreeCAD 0.16, Libs: 0.16RUnknown
This is an utterly obsolete version from 2016. FreeCAD 0.18.1 was just released.

Alternatives are AppImage (Download) or flatpak available on flathub.
Totally_Lost
Posts: 6
Joined: Tue Apr 30, 2019 1:56 am

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by Totally_Lost »

Bummer ... I'm guessing from that reply that there isn't a current FreeCAD maintainer for CentOS/RHEL :(

While I spent 20 years being a UNIX kernel and driver developer, porting large LInux applications is a bit formidable for a retired linux applications novice

Guess I'll look for some other cad solution that actually works from RPM install, or grudgingly install Win 7 again.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by NormandC »

So you would reinstall Windows because you are unwilling to try AppImage of flatpak?!?
Last edited by NormandC on Tue Apr 30, 2019 3:37 am, edited 1 time in total.
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by kkremitzki »

If you want RPMs why not use Fedora?
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by kkremitzki »

Also, there's a possible workaround you can use from this Debian bug: https://bugs.debian.org/cgi-bin/bugrepo ... bug=890882
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
NormandC
Veteran
Posts: 18587
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by NormandC »

https://flatpak.org/setup/CentOS/
https://flathub.org/apps/details/org.freecadweb.FreeCAD

flatpak packages are managed from the gnome-software GUI program if that's your preference, or from the terminal.
Totally_Lost
Posts: 6
Joined: Tue Apr 30, 2019 1:56 am

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by Totally_Lost »

kkremitzki wrote: Tue Apr 30, 2019 2:57 am Also, there's a possible workaround you can use from this Debian bug: https://bugs.debian.org/cgi-bin/bugrepo ... bug=890882
"LIBGL_DRI3_DISABLE=true FreeCAD" works great thanks!
Totally_Lost
Posts: 6
Joined: Tue Apr 30, 2019 1:56 am

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by Totally_Lost »

NormandC wrote: Tue Apr 30, 2019 3:00 am https://flatpak.org/setup/CentOS/
https://flathub.org/apps/details/org.freecadweb.FreeCAD

flatpak packages are managed from the gnome-software GUI program if that's your preference, or from the terminal.
Pushing the "Flathub reprository file" button does the download into the Downloads directory, as does the FreeCAD link, bet without any guidance on how to actually install them. The Flathub page should provide the info, as it assume the user already knows how. Frankly it's not obvious where to even look.

The DRI3 fix works for now, got me running on the OLD version.
Totally_Lost
Posts: 6
Joined: Tue Apr 30, 2019 1:56 am

Re: CentOS 7 rpm install fails with "Most likely this is a multi-threaded client and XInitThreads has not been called"

Post by Totally_Lost »

kkremitzki wrote: Tue Apr 30, 2019 2:53 am If you want RPMs why not use Fedora?
I've used Fedora for more than 20 years, painfully, as it's RH's testing swamp for new UI's and API's. Between my family, my lab, and my business I support over 20 servers and some dozen plus desktops. Recovering from failed FORCED fedora updates because support drops so quickly, *IS* painful.

At least with CentOS 7, I have quite a few years before I'm forced to upgrade to the next release, and can still get security updates, and functional fixes, without having a huge number of UI's and API's break scripts and other programs. There are a few things I gave up switching from Fedora, but very few, and none worth the pain of Fedora failed updates and API changes.

I have a single Fedora server left, that runs a Mikrotik DUDE network monitor in wine ... that I hope will be gone in a few weeks.

And a single Windows laptop that runs some vendor utilities.

Everything else is currently CentOS 7 ... a several year transition that has been well worth it.0
Post Reply