Skip to content

[Synfig Studio] Fixed crash when frame rendering throws exception while animating - #1861

Merged
ice0 merged 4 commits into
synfig:masterfrom
rodolforg:fix-crash-workarea-rendering-missing-import
Dec 14, 2020
Merged

ice0 merged 4 commits into
synfig:masterfrom
rodolforg:fix-crash-workarea-rendering-missing-import

Conversation

@rodolforg

@rodolforg rodolforg commented Nov 22, 2020 •

Copy link
Copy Markdown
Contributor

It now displays the exception message inside WorkArea when the current frame throws an exception.

It also displays an error dialog while animating in WorkArea

Description

If a frame throws an exception/error, Synfig shows its message:

  • in console/prompt

  • in work area at problematic frame:
    a782b3880b4612b31c89fa472be27af07976bffd

  • via error message dialog, while animating:
    f976d23fbb9c6bdd9e550f2b1003bbc5a7da4743

fix crash-bug reported in forums by lgolden:
https://forums.synfig.org/t/lst-file-from-papagayo-crashes-synfig/11540

@rodolforg
rodolforg force-pushed the fix-crash-workarea-rendering-missing-import branch from a50b592 to 8583942 Compare November 22, 2020 06:38
@rodolforg rodolforg changed the title don't crash when animating and frame rendering throws exception don't crash if frame rendering throws exception while animating Nov 22, 2020
@rodolforg
rodolforg force-pushed the fix-crash-workarea-rendering-missing-import branch from 8583942 to d163ee0 Compare November 22, 2020 06:51
@ice0 ice0 added this to the v1.4.1 milestone Nov 23, 2020
@ice0
ice0 requested a review from morevnaproject November 23, 2020 02:55
@morevnaproject

Copy link
Copy Markdown
Member
* via error message dialog, while animating

I see it displays error message while playback. Maybe we should display workarea warning instead (so playback willnot be interrupted)?

Thank you for the fix! ^__^

@rodolforg

Copy link
Copy Markdown
Contributor Author

Well, I thought it would be good to draw user attention while on playback :)

I'll try to make the required changes

@ice0

ice0 commented Nov 23, 2020

Copy link
Copy Markdown
Collaborator

Don't know if it might be worth stopping playback if an error occurs?

@morevnaproject

Copy link
Copy Markdown
Member

Don't know if it might be worth stopping playback if an error occurs?

If this exception breaks rendering operation (I mean when doing export via CLI or GUI), then, yes - it is better to show error message and stop playback.

@rodolforg

Copy link
Copy Markdown
Contributor Author

If this exception breaks rendering operation (I mean when doing export via CLI or GUI),

When rendering the final animation, the CLI and GUI (via render dialog) stop at broken frame (already with a proper error report).

@morevnaproject

Copy link
Copy Markdown
Member

When rendering the final animation, the CLI and GUI (via render dialog) stop at broken frame (already with a proper error report).

In this case I agree - during playback it is better to show a warning dialog AND stop the playback. ^__^

@rodolforg

Copy link
Copy Markdown
Contributor Author

And I wasn't able to show the frame error in workarea while on playback :P
It should be rendering, but it's not :P

@rodolforg

Copy link
Copy Markdown
Contributor Author

Done :)

@rodolforg

Copy link
Copy Markdown
Contributor Author

(already with a proper error report).

Well, the GUI version only showed a generic string… so I detailed it better in last commit

@morevnaproject

Copy link
Copy Markdown
Member

I have tested latest commit and found one issue: it is not possible to playback anymore after warning appears for the first time.
Video - https://youtu.be/lRCAPifsWqo

@rodolforg

rodolforg commented Nov 25, 2020 •

Copy link
Copy Markdown
Contributor Author

it is not possible to playback anymore after warning appears for the first time.

fixed.

(force-pushed the new commit to better wording in comments)

@rodolforg
rodolforg force-pushed the fix-crash-workarea-rendering-missing-import branch from 402da56 to 43132d8 Compare November 25, 2020 04:55
@morevnaproject morevnaproject self-assigned this Dec 10, 2020
@morevnaproject

Copy link
Copy Markdown
Member

Testing now! ^__^

@ice0 ice0 added the Crash label Dec 13, 2020
@ice0 ice0 changed the title don't crash if frame rendering throws exception while animating [Synfig Studio] Fixed crash when frame rendering throws exception while animating Dec 13, 2020
morevnaproject
morevnaproject previously approved these changes Dec 13, 2020

@morevnaproject morevnaproject left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly now! Thank you!

@ice0
ice0 force-pushed the fix-crash-workarea-rendering-missing-import branch from 43132d8 to ba89fe0 Compare December 14, 2020 04:18
@ice0
ice0 merged commit f47d674 into synfig:master Dec 14, 2020
@morevnaproject morevnaproject removed their assignment Dec 28, 2020
ice0 added a commit to ice0/synfig that referenced this pull request Dec 30, 2020
…g throws exception while animating

[Synfig Studio] Fixed crash when frame rendering throws exception while animating

(cherry picked from commit f47d674)
@ice0 ice0 mentioned this pull request Dec 30, 2020
ice0 added a commit to ice0/synfig that referenced this pull request Feb 28, 2021
…g throws exception while animating

[Synfig Studio] Fixed crash when frame rendering throws exception while animating

(cherry picked from commit f47d674)
morevnaproject pushed a commit that referenced this pull request Apr 20, 2021
…ws exception while animating

[Synfig Studio] Fixed crash when frame rendering throws exception while animating

(cherry picked from commit f47d674)
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
…g throws exception while animating

[Synfig Studio] Fixed crash when frame rendering throws exception while animating

(cherry picked from commit f47d674)
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
…g throws exception while animating

[Synfig Studio] Fixed crash when frame rendering throws exception while animating

(cherry picked from commit f47d674)
@rodolforg
rodolforg deleted the fix-crash-workarea-rendering-missing-import branch November 2, 2021 13:04
@rodolforg rodolforg removed the Backport label Feb 2, 2024
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.

3 participants