Summary: | Cantor crashes after closing tab with working Sage | ||
---|---|---|---|
Product: | [Applications] cantor | Reporter: | Łukasz Konieczny <ftefrjbhfvasf32> |
Component: | general | Assignee: | Alexander Semke <alexander.semke> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | alexander.semke, ftefrjbhfvasf32, warquark |
Priority: | NOR | Keywords: | drkonqi |
Version: | 20.08 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/education/cantor/commit/c71ffbcb963d1091fc7ab13b12082ea9e2b243f7 | Version Fixed In: | 21.04 |
Sentry Crash Report: |
Description
Łukasz Konieczny
2020-11-02 19:28:13 UTC
Crash on tab closing happends for Sage tabs or in all tabs? Looks like only Sage tabs crash on closing. I have tried Maxima and it works fine. Well, I have created separate bug report for Cantor ans Sage 9.2 problems: https://bugs.kde.org/show_bug.cgi?id=428961. The fix, which will make Sage 9.2 workable with Cantor will apears in 20.12, but you can manually fix it on your version, if you want it - you need only update Cantor's script file (cantor-execsage, which is placed in /usr/share/cantor/sagebackend/ or /usr/local/share/cantor/sagebackend, which depending from your installation). The new script code, which you need is here - https://invent.kde.org/education/cantor/-/blob/master/src/backends/sage/cantor-execsage. About crashing problem - I don't know, how to fix it, because crash appears in Qt code, and I even don't know why it goes there in first place. But there is a good news - crash will apears only, when Cantor can't use Sage. So, for example, the problem don't appears with Sage 9.1, because Cantor works with this version. And after script fix - the problems will gone for Sage 9.2 too. So, this problem is on low priority, and because it appears very rarely and depends from another bug - i will set status as LATER. (In reply to Nikita Sirgienko from comment #4) > About crashing problem - I don't know, how to fix it, because crash appears > in Qt code, and I even don't know why it goes there in first place. > But there is a good news - crash will apears only, when Cantor can't use > Sage. So, for example, the problem don't appears with Sage 9.1, because > Cantor works with this version. > And after script fix - the problems will gone for Sage 9.2 too. > So, this problem is on low priority, and because it appears very rarely and > depends from another bug - i will set status as LATER. OK. Thank you very much for help and explanation. Regards. Łukasz Konieczny This problem can be reproduced also for other backends like Maxima for example. It happens always when there is an expression having the status "running" and we close the tab. I'll provide a fix for it. Please note, your problem with Sage not working in Cantor won't be addressed by this, it will only stop Cantor from crashing if you try to close your "hanging" Sage worksheet. Git commit c71ffbcb963d1091fc7ab13b12082ea9e2b243f7 by Alexander Semke. Committed on 14/02/2021 at 11:48. Pushed by asemke into branch 'master'. Don't try to modify the worksheet when it's currently being destroyed. FIXED-IN: 21.04 M +11 -3 src/cantor_part.cpp M +6 -6 src/worksheet.cpp M +1 -0 src/worksheet.h https://invent.kde.org/education/cantor/commit/c71ffbcb963d1091fc7ab13b12082ea9e2b243f7 |