Vector can cause a crash
Modérateur : xcasadmin
Vector can cause a crash
I found an easily reproducible crash (Xcas 1.9.0 compiled on macOS)
Execute vector(1,0,0)
Then press down on the keyboard until the vector exits the box.
Observe: crash
Hopefully an easy fix
Execute vector(1,0,0)
Then press down on the keyboard until the vector exits the box.
Observe: crash
Hopefully an easy fix
Re: Vector can cause a crash
Could not reproduce on linux. I tried with valgrind, I get some warnings about conditional jumps depending on uninitialized variables, but no crash. I'll try on macos next month (I don't have a mac at hand right now).
Re: Vector can cause a crash
A few more details for when you can get to it:
Maybe crash was the wrong word, hang might be more accurate. The application needs to be quit and relaunched to regain control.
Some messages appear in the terminal, but they always seem to appear for 3d plots so it may not be an issue:
fl_push_clip: clip stack overflow!
fl_push_clip: clip stack overflow!
fl_pop_clip: clip stack underflow!
fl_pop_clip: clip stack underflow!
Maybe crash was the wrong word, hang might be more accurate. The application needs to be quit and relaunched to regain control.
Some messages appear in the terminal, but they always seem to appear for 3d plots so it may not be an issue:
fl_push_clip: clip stack overflow!
fl_push_clip: clip stack overflow!
fl_pop_clip: clip stack underflow!
fl_pop_clip: clip stack underflow!
Re: Vector can cause a crash
This is a limitation of FLTK without modifications, it does not have a large enough stack for clipping rectangles. Did you try with windows? I'll probably have to recompile a modified FLTK version...
But that does not mean it is the issue. I have crashes from time to time with the windows version of Xcas, and I don't know why.
But that does not mean it is the issue. I have crashes from time to time with the windows version of Xcas, and I don't know why.
Re: Vector can cause a crash
I don't have access to a windows computer at the moment, however if I can get a windows report I'll share it here.
I figured the messages weren't the issue (because they do not occur only in this case), but it would be nice if that could also be addressed if you get a chance.
I figured the messages weren't the issue (because they do not occur only in this case), but it would be nice if that could also be addressed if you get a chance.
Re: Vector can cause a crash
The issue is the same on Mac and Windows, in both cases I did not recompile a version of FLTK, I'll do that and the clipping messages should disappear...
Re: Vector can cause a crash
Cf. viewtopic.php?f=8&t=2909&p=13037#p13037 for Mac arm64.
Re: Vector can cause a crash
Thanks for resolving the clipping messages. I just checked, and the vector freeze still occurs.