Skip to content

Fix crash when removing a list item of a parameter - #1188

Merged
ice0 merged 3 commits into
synfig:masterfrom
rodolforg:fix-remove-parameter-list-item
Mar 26, 2020
Merged

ice0 merged 3 commits into
synfig:masterfrom
rodolforg:fix-remove-parameter-list-item

Conversation

@rodolforg

Copy link
Copy Markdown
Contributor

If you select a vertex item of Spline parameter list and then right-click on it and choose Remove item (Smart), app crashes.
Not anymore. Simple, but not the best, solution.

@rodolforg

rodolforg commented Feb 29, 2020 •

Copy link
Copy Markdown
Contributor Author

Superseds on #1104.
Could you please review both PR (and possibly discard previous)?

@rodolforg
rodolforg force-pushed the fix-remove-parameter-list-item branch from a7f231f to 84b3e6c Compare February 29, 2020 20:20
@rodolforg rodolforg changed the title Fix remove parameter list item Fix crash when removing a list item of a parameter Mar 1, 2020
@ice0

ice0 commented Mar 4, 2020

Copy link
Copy Markdown
Collaborator

@blackwarthog found a deeper problem, so i will continue to review after he take decision to use hack or fix original problem.

@ice0 ice0 self-assigned this Mar 4, 2020
@rodolforg

Copy link
Copy Markdown
Contributor Author

@ice0 This PR just avoids Synfig Studio from crashing. Crash yells a bad reputation for the software: work hour loss :(

The problem root seems to be bad (or none) reaction to item removal of parameter list: connected signals and queued redrawing before internal (studio) structure/data update.

@ice0

ice0 commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator

@rodolforg I agree. Just want to check if better solution is possible. Anyway we do not release, until this issue is closed.

@blackwarthog

blackwarthog commented Mar 10, 2020 via email

Copy link
Copy Markdown
Collaborator

@ice0

ice0 commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@ice0

ice0 commented Mar 26, 2020

Copy link
Copy Markdown
Collaborator

Created a new issue to find the better solution later: #1287

@morevnaproject morevnaproject added this to the v1.4.0 milestone Mar 26, 2020
morevnaproject pushed a commit that referenced this pull request Mar 26, 2020
…#1188)

* fix crash when removing a list item of a parameter

* avoid some possible null dereferences in invalid valuenodes and report them

* fix missing explicit initializer
morevnaproject pushed a commit that referenced this pull request Mar 26, 2020
…#1188)

* fix crash when removing a list item of a parameter

* avoid some possible null dereferences in invalid valuenodes and report them

* fix missing explicit initializer
@rodolforg rodolforg mentioned this pull request May 7, 2020
12 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants