Bug 450854

Summary: Crash creating empty lists
Product: [Applications] cantor Reporter: heqromancer
Component: r-backendAssignee: Cantor Bugs <cantor-bugs>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: 21.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 22.03
Sentry Crash Report:
Attachments: kcrash file

Description heqromancer 2022-02-25 22:31:19 UTC
Created attachment 147127 [details]
kcrash file

SUMMARY
Creating empty list will (sometimes) crash Cantor. This is not a predictable behavior, sometimes it will happen and sometimes it won't. Thus,


STEPS TO REPRODUCE
1. create variable assigned to c(). For example: l = c()

OBSERVED RESULT
Cantor crashes

EXPECTED RESULT
It should create the list and register it in the variable manager.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.10-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 2 × Intel® Celeron® N4000 CPU @ 1.10GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 600
Comment 1 Alexander Semke 2022-02-26 17:21:08 UTC
Git commit 62a6356d49806d73b3387ee83bb7c8e6ea316c3d by Alexander Semke.
Committed on 26/02/2022 at 17:19.
Pushed by asemke into branch 'master'.

[R] properly handle the case in the variable model when there is no variable value for a given variable name (e.g. 'l = c()').
FIXED-IN: 22.03

M  +7    -2    src/backends/R/rvariablemodel.cpp

https://invent.kde.org/education/cantor/commit/62a6356d49806d73b3387ee83bb7c8e6ea316c3d
Comment 2 Alexander Semke 2022-03-30 06:51:11 UTC
*** Bug 452046 has been marked as a duplicate of this bug. ***