Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1051296: freecad: Crashes when creating/opening a file.

63 views
Skip to first unread message

Alejandro Rosso

unread,
Sep 5, 2023, 5:40:05 PM9/5/23
to
Package: freecad
Version: 0.20.2+dfsg1-10
Severity: important
X-Debbugs-Cc: delt...@gmail.com

Dear Maintainer,

FreeCAD crashes when trying to create a new file or opening an existing one.
If it is run from command line, this is the output:

```
$ freecad
FreeCAD 0.20.2, Libs: 0.20.2R
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

freecad: ./src/glue/gl.cpp:2354: const cc_glglue* cc_glglue_instance(int): Assertion `current_ctx && "Must have a current GL context when instantiating cc_glglue!! (Note: if you are using an old Mesa GL version, set the environment variable COIN_GL_NO_CURRENT_CONTEXT_CHECK to get around what may be a Mesa bug.)"' failed.
Aborted
```

The following related/same issue is opened upstream:

https://github.com/FreeCAD/FreeCAD/issues/9273

-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.4.0-3-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freecad depends on:
ii freecad-python3 0.20.2+dfsg1-10

Versions of packages freecad recommends:
ii calculix-ccx 2.20-1
ii graphviz 2.42.2-7+b3
ii python3-opencamlib 2023.01.11-3

Versions of packages freecad suggests:
pn povray <none>

-- no debconf information

Michele Cane

unread,
Oct 7, 2023, 2:00:06 PM10/7/23
to
Package: freecad
Version: 0.20.2+dfsg1-10
Followup-For: Bug #1051296

Dear Maintainer,

exact same problem. Followed the upstream issue mentioned in the bugreport and can make it run with:

export COIN_GL_NO_CURRENT_CONTEXT_CHECK=1

Cheers

-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_CH.UTF-8, LC_CTYPE=en_CH.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freecad depends on:
ii freecad-python3 0.20.2+dfsg1-10

Versions of packages freecad recommends:
ii calculix-ccx 2.20-1
ii graphviz 2.42.2-7+b3
ii python3-opencamlib 2023.01.11-4

Maxime Chambonnet

unread,
Nov 15, 2023, 9:00:06 AM11/15/23
to
Package: freecad
Version: 0.20.2+dfsg1-10
Followup-For: Bug #1051296
X-Debbugs-Cc: max...@maxzor.eu

Dear Maintainer,

I have the same problem with GNOME wayland on trixie.
Unsetting the environment variable as proposed in the linked
github issue solved it for me too.

BR, Maxime


-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-4-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freecad depends on:
ii freecad-python3 0.20.2+dfsg1-10

Versions of packages freecad recommends:
ii calculix-ccx 2.20-1
ii graphviz 2.42.2-7+b3
ii python3-opencamlib 2023.01.11-4

Leonardo Canducci

unread,
Nov 16, 2023, 12:10:07 PM11/16/23
to
Package: freecad
Version: 0.20.2+dfsg1-10
Followup-For: Bug #1051296

Dear Maintainer,

I've made some tests to get FreeCAD running correctly on my gome+wayland
sid system. First of all version 20.2 runs fine on XFCE and X. It
chashes on gnome+wayland when opening a file or creating a new project.
With the suggested fix (export COIN_GL_NO_CURRENT_CONTEXT_CHECK=1)
FreeCAD runs but its still very slow compared to XFCE (just open some
STL file and try panning or rotating the view). Tu sum up the suggested
fix improves things but doesn't completely solve the problem here.

I've tried the latest version (0.21.1) downloading the appimage file and
it works fine with wayland. All is fine also with the 0.20.2 appimage
file so I guess the problem is related to the debian packaged version
only or its dependencies.

Regards,
Leonardo

-- System Information:
Debian Release: trixie/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freecad depends on:
ii freecad-python3 0.20.2+dfsg1-10

Versions of packages freecad recommends:
ii calculix-ccx 2.20-1
ii graphviz 2.42.2-7+b3
ii python3-opencamlib 2023.01.11-4

Leonardo Canducci

unread,
Dec 19, 2023, 12:10:05 PM12/19/23
to
Package: freecad
Version: 0.21.2+dfsg1-1
Followup-For: Bug #1051296

Dear Maintainer,
I'm experiencing a simular behaviour with the latest version. FreeCAD
crashes when open a file o creating a new one when launched on gnome
with wayland. All is fine when launched on XFCE. The appimage package
from upstream works fine in both desktop environments.

Using the suggested fix solves the problem right now and doesn't slow
down FreeCAD's execution as with version 0.20. Overall this update is an
improvement and I can stop using the appimage package.

Regards,
Leonardo

-- System Information:
Debian Release: trixie/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freecad depends on:
ii freecad-python3 0.21.2+dfsg1-1

Versions of packages freecad recommends:
ii calculix-ccx 2.20-1
ii graphviz 2.42.2-7+b3
ii python3-opencamlib 2023.01.11-4+b1
0 new messages