Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_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#75998 - [opencascade] Crash in applications that depend on opencascade

Attached to Project: Community Packages
Opened by R (rittelle) - Saturday, 24 September 2022, 14:43 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 24 September 2022, 20:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Programs that use opencascade crash on my machine. My guess is that this happens due to incompatible Qt versions, but I was not able to build the opencascade package myself (CMake fails).

Here is the FreeCAD output:

FreeCAD 0.20.1, Libs: 0.20.1R29410 (Git)
© 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.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

[1] 7612 IOT instruction (core dumped) freecad

Running it inside GDB reveals that the crash occurs in a qt_assert call.

I also tried an example from the opencascade project that I ripped out of the source tree, which also crashes:

Cannot mix incompatible Qt library (5.15.5) with this library (5.15.6)
[1] 8324 IOT instruction (core dumped) ./build/Tutorial

GDB reveals that it is also a qt_assert call that causes the crash.

Steps to reproduce (freecad):
1. install opencascade and freecad
2. execute freecad in a shell

Steps to reproduce (sample project):
1. install opencascade
2. extract the attached archive ($ tar -xf 2022-09-24\ OCCT\ Tutorial\ Qt.tar)
3. create a build directory ($ mkdir 2022-09-24\ OCCT\ Tutorial\ Qt/build)
4. cd into the build directory ($ cd 2022-09-24\ OCCT\ Tutorial\ Qt/build)
5. build the project ($ cmake .. && cmake --build .)
6. run the application ($ ./Tutorial)
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 24 September 2022, 20:12 GMT
Reason for closing:  Not a bug
Comment by R (rittelle) - Saturday, 24 September 2022, 14:46 GMT
It seems to me that the package (or one of its dependencies) was built with an older Qt version and was not rebuild after the Qt package in Arch got updated?
Comment by Antonio Rojas (arojas) - Saturday, 24 September 2022, 15:40 GMT
please post the full backtrace
Comment by R (rittelle) - Saturday, 24 September 2022, 19:06 GMT
I investigated a bit further and found the reason:
I didn't rebuild my theme engine after an update (well, I actually did, but the wrong one; that's why I ruled this possibility at first).
Sorry for creating an unneccessary bug report out of my own stupidity :) .

Loading...