Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault when using cw_fslider #1724

Closed
brandy125 opened this issue Jan 11, 2024 · 2 comments
Closed

segfault when using cw_fslider #1724

brandy125 opened this issue Jan 11, 2024 · 2 comments

Comments

@brandy125
Copy link

I am getting segfaults with recent GDL versions when using this lines:

base     = Widget_base(/COLUMN)
addvalue = Cw_fslider(base,title=' ')

This version does not segfault:

GDL> !gdl
{
    "RELEASE": "1.0.2 Git",
    "BUILD_DATE": "Mar 18 2023",
    "EPOCH": 1679108400,
    "GDL_USE_DSFMT": 1,
    "GDL_USE_WX": 1,
    "GDL_POSIX": 1
}
@frankmri
Copy link
Contributor

Hi,
I've come across the same issue.
Maybe helpful for you guys, it seems related to WIDGET_SLIDER producing a segfault when instantiated with TITLE="..." and subsequently using WIDGET_CONTROL, myslider, SET_VALUE=...

Doesn't work:

GDL> base=widget_base()
GDL> sli=widget_slider(base, title="test")
GDL> widget_control, sli, set_value=0
Segmentation fault (core dumped)

Works:

GDL> base=widget_base()
GDL> sli=widget_slider(base)
GDL> widget_control, sli, set_value=0
GDL>

Thanks for making GDL!
Frank

GillesDuvert added a commit that referenced this issue Jan 23, 2024
Fixes #1724: WIDGET_SLIDER with TITLE crashes when setting value
@brandy125
Copy link
Author

Thanks @GillesDuvert !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants