Page 1 sur 1

Vector can cause a crash

Publié : ven. août 09, 2024 11:41 pm
par ftneek
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

Re: Vector can cause a crash

Publié : sam. août 10, 2024 6:37 am
par parisse
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

Publié : jeu. août 29, 2024 5:27 am
par ftneek
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!

Re: Vector can cause a crash

Publié : sam. août 31, 2024 6:32 am
par parisse
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.

Re: Vector can cause a crash

Publié : dim. sept. 01, 2024 9:37 am
par ftneek
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.

Re: Vector can cause a crash

Publié : mar. sept. 03, 2024 7:36 am
par parisse
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

Publié : mer. sept. 04, 2024 11:50 am
par parisse

Re: Vector can cause a crash

Publié : jeu. oct. 10, 2024 10:30 pm
par ftneek
Thanks for resolving the clipping messages. I just checked, and the vector freeze still occurs.