Closed marillat closed 2 years ago
Looks like a Python issue.
Please add more info, like Qt version used and distro etc.
May be related to https://bugs.debian.org/1008849 I'm doing new pyside2/shiboken2 packages to be sure.
The bug is still here but with less errors How I can debug that ?
$ LANG=C Natron
Natron Version 2.5
(C) 2018-2022 The Natron developers
(C) 2013-2018 INRIA and Alexandre Gauthier-Foichat
>>>Use the --help or -h option to print usage.<<<
args:
* Command-line parsing results:
clearCacheOnLaunch: false
clearOpenFXCacheOnLaunch: false
useDefaultSettings: false
isBackground: false
isInterpreterMode: false
enableRenderStats: false
exportDocsPath: ""
ipcPipe: ""
defaultOnProjectLoadedScript: ""
settingCommands:
pythonCommands:
writers:
readers:
atLeastOneOutput: false
filename: ""
rangeSet: false
frameRanges:
* End of command-line parsing results.
argv[0] = Natron
keyboard input locale: "en"
Fontconfig configuration file /usr/bin/../Resources/etc/fonts does not exist, not setting FONTCONFIG_PATH
"/usr/bin/../lib/python310.zip" does not exist, not added to PYTHONPATH
"/usr/bin/../lib/python3.10/site-packages" does not exist, not added to PYTHONPATH
"/usr/bin/../Plugins" does not exist, not added to PYTHONPATH
Py_SetPythonHome("/usr/bin/..")
PYTHONPATH set to /usr/bin/../lib/python3.10:/usr/bin/../lib/python3.10/lib-dynload
Py_Initialize()
PATH is /home/marillat/bin:/sbin:/usr/sbin:/home/marillat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
PYTHONPATH is /usr/bin/../lib/python3.10:/usr/bin/../lib/python3.10/lib-dynload
PYTHONHOME is (null)
Py_DebugFlag is 0
Py_VerboseFlag is 0
Py_InteractiveFlag is 0
Py_InspectFlag is 0
Py_OptimizeFlag is 0
Py_NoSiteFlag is 0
Py_BytesWarningFlag is 0
Py_FrozenFlag is 0
Py_HashRandomizationFlag is 1
Py_IsolatedFlag is 0
Py_QuietFlag is 0
Py_IgnoreEnvironmentFlag is 0
Py_DontWriteBytecodeFlag is 0
Py_NoUserSiteDirectory is 1
Py_GetProgramName is Natron
Py_GetPrefix is /usr/bin/..
Py_GetExecPrefix is /usr/bin/..
Py_GetProgramFullPath is /usr/bin/Natron
Py_GetPath is /usr/bin/../lib/python3.10:/usr/bin/../lib/python3.10/lib-dynload:/usr/bin/../lib/python310.zip:/usr/bin/../lib/python3.10:/usr/bin/../lib/python3.10/lib-dynload
Py_GetPythonHome is /usr/bin/..
'3.10.5 (main, Jun 8 2022, 09:26:22) [GCC 11.3.0]'
'/usr/bin/Natron'
'/usr/bin/..'
'/usr/bin/..'
'lib'
'/usr/bin/Natron'
'/usr/bin/..'
'/usr/bin/..'
sys.path = [
'/home/marillat',
'/usr/lib/python3.10',
'/usr/lib/python3.10/lib-dynload',
'/usr/lib/python310.zip',
'/usr/local/lib/python3.10/dist-packages',
'/usr/lib/python3/dist-packages',
]
sys.version = sys._base_executable = sys.base_prefix = sys.base_exec_prefix = sys.platlibdir = sys.executable = sys.prefix = sys.exec_prefix = <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
Python library is in /usr/lib/python3/dist-packages
Natron: AppManager.cpp:2992: void Natron::AppManager::initPython(): Assertion `ok' failed.
zsh: IOT instruction (core dumped) LANG=C Natron
Qt 5.15.2 python 3.10 amd64
Here is the backtrace
Thread 1 "Natron" received signal SIGABRT, Aborted.
0x00007ffff585f8a1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff585f8a1 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff5849546 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff584942f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff5858222 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x0000555555ba2c77 in Natron::AppManager::initPython (this=0x7fffffffde50) at AppManager.cpp:2992
#5 0x0000555555b9454f in Natron::AppManager::loadFromArgs (this=0x7fffffffde50, cl=...) at AppManager.cpp:379
#6 0x0000555555b94863 in Natron::AppManager::load (this=0x7fffffffde50, argc=1, argv=0x7fffffffdfa8, cl=...) at AppManager.cpp:415
#7 0x0000555555694631 in main (argc=1, argv=0x7fffffffdfa8) at NatronApp_main.cpp:146
Are you able to use Python 3.9?
A quick search online seems to indicate that Qt/PySide 5.15.2 does not support Python 3.10 properly(?).
I can't use python 3.9 as pyside2 packages have cpython extension build with python 3.10 Otherwise pyside2 build fine with python 3.10 as Debian add patches https://salsa.debian.org/qt-kde-team/qt/pyside2/-/tree/master/debian/patches
Yeah, something is broken in the Debian version you are using, can't help much with that.
Not an Natron issue so will close.
For reference I'm able to build and run Natron RB-2.5 on Ubuntu 22.04 (python 3.10/qt 5.15.3).
Make sure to follow our issue report guidelines
Natron version
Natron 2.5
Operating system
Linux 5.18.3 amd64
System specs
No response
Did you install Natron using the official installer?
Custom installation path
/usr/bin
What were you trying to do?
I start Natron without command line options.
What did you expect to happen? What happened instead?
Natron crash.
Step-by-step reproduction instructions
Additional details