| Summary: | Cantor crashes every time I execute a Python3 instruction from a saved CWS file | ||
|---|---|---|---|
| Product: | [Applications] cantor | Reporter: | avlas <jsardid> |
| Component: | python3-backend | Assignee: | Cantor Bugs <cantor-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | warquark |
| Priority: | NOR | ||
| Version First Reported In: | 19.04 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/cantor/b441bebce8ad6b9ef33f0a49f2c2599bc73962d1 | Version Fixed/Implemented In: | 19.08 |
| Sentry Crash Report: | |||
|
Description
avlas
2019-07-05 15:13:39 UTC
Could you please attache debug output from Cantor? Also, could you uninstall installed Cantor, rebuild the app, and install it again? (In reply to Nikita Sirgienko from comment #1) > Could you please attache debug output from Cantor? How do I do that? I tried removing "-DCMAKE_BUILD_TYPE=Release -Wnodev" from cmake, but all I can get in the output is: QObject::disconnect: Unexpected null parameter KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = cantor path = /usr/bin pid = 13042 KCrash: Arguments: /usr/bin/cantor KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit sock_file=/run/user/1000/kdeinit5__0 > Also, could you uninstall installed Cantor, rebuild the app, and install it > again? Did that already, same behavior (and output) It even happens parsing a python comment, so nothing is really executed (In reply to avlas from comment #2) > (In reply to Nikita Sirgienko from comment #1) > > Could you please attache debug output from Cantor? > > How do I do that? I tried removing "-DCMAKE_BUILD_TYPE=Release -Wnodev" from > cmake, but all I can get in the output is: > > QObject::disconnect: Unexpected null parameter > KCrash: crashing... crashRecursionCounter = 2 > KCrash: Application Name = cantor path = /usr/bin pid = 13042 > KCrash: Arguments: /usr/bin/cantor > KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from > kdeinit > sock_file=/run/user/1000/kdeinit5__0 > Add "-DCMAKE_BUILD_TYPe=debug" (In reply to Nikita Sirgienko from comment #4) > Add "-DCMAKE_BUILD_TYPe=debug" Done: dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/backends" Creating MaximaBackend Creating NullBackend Creating PythonBackend Creating PythonBackend Creating SageBackend Creating ScilabBackend dir: "/usr/bin/cantor/backends" Backend "Python 3" offers extensions: ("LinearAlgebraExtension", "PackagingExtension", "PlotExtension", "ScriptExtension", "VariableManagementExtension") PythonSession(0x5599333f1240) Cantor::VariableManagementExtension(0x5599334314c0, name = "VariableManagementExtension") PythonHighlighter constructor PythonKeywords constructor new worksheetaccess interface loading assistants... dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/assistants" plugin "GràficAvançat" is not supported by "Python 3" plugin "Crea una matriu" is supported by "Python 3" , requires extensions ("LinearAlgebraExtension") plugin "Deriva" is not supported by "Python 3" plugin "Valors propis (autovalors)" is not supported by "Python 3" plugin "Vectors propis (autovectors)" is not supported by "Python 3" plugin "Importació de paquet" is supported by "Python 3" , requires extensions ("PackagingExtension") plugin "Integra" is not supported by "Python 3" plugin "Inverteix una matriu" is not supported by "Python 3" plugin "Plot2d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Plot3d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Gràfic de Qalculate" is not supported by "Python 3" plugin "ExecutaScript" is supported by "Python 3" , requires extensions ("ScriptExtension") plugin "Resol" is not supported by "Python 3" dir: "/usr/bin/cantor/assistants" loading panel plugins for session of type "Python 3" Requesting capabilities of Python3Session dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/panels" plugin "Ajuda" is supported, requires extensions ("") plugin "Gestor de variables" is supported, requires extensions ("VariableManagementExtension") dir: "/usr/bin/cantor/panels" Requesting capabilities of Python3Session Entry Appended adding panel for "Ajuda" adding panel for "Gestor de variables" PythonSession(0x559933a925f0) Cantor::VariableManagementExtension(0x5599334314c0, name = "VariableManagementExtension") loading entries Entry Appended Entry Appended setting result to a type 1 result update Entry Entry Appended Entry Appended setting result to a type 1 result update Entry Entry Appended setting result to a type 1 result update Entry Entry Appended setting result to a type 1 result update Entry Entry Appended PythonHighlighter constructor loading assistants... dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/assistants" plugin "GràficAvançat" is not supported by "Python 3" plugin "Crea una matriu" is supported by "Python 3" , requires extensions ("LinearAlgebraExtension") plugin "Deriva" is not supported by "Python 3" plugin "Valors propis (autovalors)" is not supported by "Python 3" plugin "Vectors propis (autovectors)" is not supported by "Python 3" plugin "Importació de paquet" is supported by "Python 3" , requires extensions ("PackagingExtension") plugin "Integra" is not supported by "Python 3" plugin "Inverteix una matriu" is not supported by "Python 3" plugin "Plot2d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Plot3d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Gràfic de Qalculate" is not supported by "Python 3" plugin "ExecutaScript" is supported by "Python 3" , requires extensions ("ScriptExtension") plugin "Resol" is not supported by "Python 3" dir: "/usr/bin/cantor/assistants" loading panel plugins for session of type "Python 3" Requesting capabilities of Python3Session dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/panels" plugin "Ajuda" is supported, requires extensions ("") plugin "Gestor de variables" is supported, requires extensions ("VariableManagementExtension") dir: "/usr/bin/cantor/panels" adding panel for "Ajuda" adding panel for "Gestor de variables" Requesting capabilities of Python3Session Worksheet successfully loaded in 0.057 seconds). login send command: "login" () send command: "setFilePath" ("/mypath/test_cantor.cws", "/mypath") wsStatusChange 1 evaluating: "# import sys\n\n# flag_append_local_dir = True\n# for path in sys.path:\n# if path == '.':\n# flag_append_local_dir = False\n# break\n\n# if flag_append_local_dir:\n# sys.path.append('.')\n\n# for path in sys.path:\n# print(path)" wsStatusChange 0 wsStatusChange 0 run first expression "# import sys\n\n# flag_append_local_dir = True\n# for path in sys.path:\n# if path == '.':\n# flag_append_local_dir = False\n# break\n\n# if flag_append_local_dir:\n# sys.path.append('.')\n\n# for path in sys.path:\n# print(path)\n" send command: "code" ("# import sys\n\n# flag_append_local_dir = True\n# for path in sys.path:\n# if path == '.':\n# flag_append_local_dir = False\n# break\n\n# if flag_append_local_dir:\n# sys.path.append('.')\n\n# for path in sys.path:\n# print(path)\n") Error: "Cantor Python server stopped working." loading assistants... dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/assistants" plugin "GràficAvançat" is not supported by "Python 3" plugin "Crea una matriu" is supported by "Python 3" , requires extensions ("LinearAlgebraExtension") plugin "Deriva" is not supported by "Python 3" plugin "Valors propis (autovalors)" is not supported by "Python 3" plugin "Vectors propis (autovectors)" is not supported by "Python 3" plugin "Importació de paquet" is supported by "Python 3" , requires extensions ("PackagingExtension") plugin "Integra" is not supported by "Python 3" plugin "Inverteix una matriu" is not supported by "Python 3" plugin "Plot2d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Plot3d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Gràfic de Qalculate" is not supported by "Python 3" plugin "ExecutaScript" is supported by "Python 3" , requires extensions ("ScriptExtension") plugin "Resol" is not supported by "Python 3" dir: "/usr/bin/cantor/assistants" loading panel plugins for session of type "Python 3" Requesting capabilities of Python3Session dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/panels" plugin "Ajuda" is supported, requires extensions ("") plugin "Gestor de variables" is supported, requires extensions ("VariableManagementExtension") dir: "/usr/bin/cantor/panels" adding panel for "Ajuda" adding panel for "Gestor de variables" Requesting capabilities of Python3Session send command: "exit" () Error: "Communication with Cantor python server failed for unknown reasons." loading assistants... dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/assistants" plugin "GràficAvançat" is not supported by "Python 3" plugin "Crea una matriu" is supported by "Python 3" , requires extensions ("LinearAlgebraExtension") plugin "Deriva" is not supported by "Python 3" plugin "Valors propis (autovalors)" is not supported by "Python 3" plugin "Vectors propis (autovectors)" is not supported by "Python 3" plugin "Importació de paquet" is supported by "Python 3" , requires extensions ("PackagingExtension") plugin "Integra" is not supported by "Python 3" plugin "Inverteix una matriu" is not supported by "Python 3" plugin "Plot2d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Plot3d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Gràfic de Qalculate" is not supported by "Python 3" plugin "ExecutaScript" is supported by "Python 3" , requires extensions ("ScriptExtension") plugin "Resol" is not supported by "Python 3" dir: "/usr/bin/cantor/assistants" loading panel plugins for session of type "Python 3" Requesting capabilities of Python3Session dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/panels" plugin "Ajuda" is supported, requires extensions ("") plugin "Gestor de variables" is supported, requires extensions ("VariableManagementExtension") dir: "/usr/bin/cantor/panels" adding panel for "Ajuda" adding panel for "Gestor de variables" Requesting capabilities of Python3Session Error: "Communication with Cantor python server failed for unknown reasons." loading assistants... dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/assistants" plugin "GràficAvançat" is not supported by "Python 3" plugin "Crea una matriu" is supported by "Python 3" , requires extensions ("LinearAlgebraExtension") plugin "Deriva" is not supported by "Python 3" plugin "Valors propis (autovalors)" is not supported by "Python 3" plugin "Vectors propis (autovectors)" is not supported by "Python 3" plugin "Importació de paquet" is supported by "Python 3" , requires extensions ("PackagingExtension") plugin "Integra" is not supported by "Python 3" plugin "Inverteix una matriu" is not supported by "Python 3" plugin "Plot2d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Plot3d" is supported by "Python 3" , requires extensions ("PlotExtension") plugin "Gràfic de Qalculate" is not supported by "Python 3" plugin "ExecutaScript" is supported by "Python 3" , requires extensions ("ScriptExtension") plugin "Resol" is not supported by "Python 3" dir: "/usr/bin/cantor/assistants" loading panel plugins for session of type "Python 3" Requesting capabilities of Python3Session dir: "/usr/lib/x86_64-linux-gnu/qt5/plugins/cantor/panels" plugin "Ajuda" is supported, requires extensions ("") plugin "Gestor de variables" is supported, requires extensions ("VariableManagementExtension") dir: "/usr/bin/cantor/panels" adding panel for "Ajuda" adding panel for "Gestor de variables" Requesting capabilities of Python3Session send command: "exit" () cantor_python server still running, process kill enforced logout interrupting "# import sys\n\n# flag_append_local_dir = True\n# for path in sys.path:\n# if path == '.':\n# flag_append_local_dir = False\n# break\n\n# if flag_append_local_dir:\n# sys.path.append('.')\n\n# for path in sys.path:\n# print(path)" done interrupting wsStatusChange 1 wsStatusChange 1 wsStatusChange 1 wsStatusChange 1 wsStatusChange 2 wsStatusChange 2 wsStatusChange 2 wsStatusChange 2 QObject::disconnect: Unexpected null parameter KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = cantor path = /usr/bin pid = 30760 KCrash: Arguments: /usr/bin/cantor KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit sock_file=/run/user/1000/kdeinit5__0 I think it's an incompatibility issue as crash does not happen unless I load a previously saved cws file Good catch, also your traceback was very helpfull, thanks. Git commit b441bebce8ad6b9ef33f0a49f2c2599bc73962d1 by Nikita Sirgienko. Committed on 05/07/2019 at 16:03. Pushed by sirgienko into branch 'master'. [Python] Urgent server side fix FIXED-IN: 19.08 M +1 -1 src/backends/python/pythonservermain.cpp https://commits.kde.org/cantor/b441bebce8ad6b9ef33f0a49f2c2599bc73962d1 (In reply to Nikita Sirgienko from comment #8) > Git commit b441bebce8ad6b9ef33f0a49f2c2599bc73962d1 by Nikita Sirgienko. > Committed on 05/07/2019 at 16:03. > Pushed by sirgienko into branch 'master'. > > [Python] Urgent server side fix > FIXED-IN: 19.08 > > M +1 -1 src/backends/python/pythonservermain.cpp > > https://commits.kde.org/cantor/b441bebce8ad6b9ef33f0a49f2c2599bc73962d1 Wow, that was fast, thank you! |