Author |
Topic  |
|
mduds
Germany
Posts |
Posted - 05/29/2021 : 04:17:02 AM
|
Origin Ver. and Service Release 2021b SR1: Operating System: Windows 10 64 bit Education
Good morning,
is there any chance to fix the bug in Origin 2021b which crashes Origin connecting to R using R version 4.0.3 or newer?
Manfred |
|
minimax
362 Posts |
Posted - 05/29/2021 : 11:52:02 AM
|
Hi Manfred,
No, sorry that there is no workaround solution, you will have to use a lower version (<=4.0.2) to avoid the crash.
Max OriginLab Technical Support |
 |
|
minimax
362 Posts |
Posted - 05/30/2021 : 10:17:53 PM
|
Hi Manfred,
PS, is there some special features in newer R version which promotes you to upgrade?
Or you in general want to work on a latest R version?
Max OriginLab Technical Support |
 |
|
mduds
Germany
Posts |
Posted - 05/31/2021 : 05:02:20 AM
|
Hi MaX,
no, I just wanted to play with the new features and performance enhancements in R 4.1.0. I do not understand the crashes of Origin 2021b. If you type in the R console "a=1" it works. If you type as first command just "a" Origin crashes. Does it has something to do with the R response "Error: object 'a' not found"? But why in 4.1.0 and not in 4.0.2?
Manfred |
 |
|
minimax
362 Posts |
Posted - 05/31/2021 : 05:08:57 AM
|
Manfred,
R changes some API since 4.0.3 and thus our way to call it fails and leads to crash.
The crash is related to the messages dumped in R Console.
If you execute "a=1", nothing is output to Console.
But when you execute "a" or whatever legal commands, it tries to output result in Console and thus crash. |
 |
|
mduds
Germany
Posts |
Posted - 05/31/2021 : 08:32:14 AM
|
Not totally true. Origin crashes if you type "a" as first command. But if you assign a value to"a", the following command "a" returns the correct result to the console:

Manfred |
 |
|
minimax
362 Posts |
Posted - 06/01/2021 : 01:25:08 AM
|
Never mind, it is a kind of memory out-of-bounds access problem, so it might be lucky not to crash.
Max OriginLab Technical Support |
 |
|
cpyang
USA
1406 Posts |
Posted - 06/25/2021 : 9:12:49 PM
|
We have released SR2, which has the fix to this bug.
CP
|
 |
|
|
Topic  |
|