Vector can cause a crash

Bugs

Modérateur : xcasadmin

ftneek
Messages : 19
Inscription : sam. juin 08, 2024 7:40 pm

Vector can cause a crash

Message par ftneek » ven. août 09, 2024 11:41 pm

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

parisse
Messages : 5878
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Vector can cause a crash

Message par parisse » sam. août 10, 2024 6:37 am

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).

ftneek
Messages : 19
Inscription : sam. juin 08, 2024 7:40 pm

Re: Vector can cause a crash

Message par ftneek » jeu. août 29, 2024 5:27 am

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!

parisse
Messages : 5878
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Vector can cause a crash

Message par parisse » sam. août 31, 2024 6:32 am

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.

ftneek
Messages : 19
Inscription : sam. juin 08, 2024 7:40 pm

Re: Vector can cause a crash

Message par ftneek » dim. sept. 01, 2024 9:37 am

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.

parisse
Messages : 5878
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Vector can cause a crash

Message par parisse » mar. sept. 03, 2024 7:36 am

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...

parisse
Messages : 5878
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Vector can cause a crash

Message par parisse » mer. sept. 04, 2024 11:50 am


ftneek
Messages : 19
Inscription : sam. juin 08, 2024 7:40 pm

Re: Vector can cause a crash

Message par ftneek » jeu. oct. 10, 2024 10:30 pm

Thanks for resolving the clipping messages. I just checked, and the vector freeze still occurs.

Répondre