-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Fixed the crash on application launch under Windows #1252
Conversation
It looks like the bug was not triggerred under Linux due to a different order of function calls (because of some peculiarity of concurrent execution and/or signal processing).
The bug itself happens due to initialization&update of MultiZimButton (via established signal/slot connections) at a time when the main application window hasn't yet been shown and the dimensions of various widgets are bogus. The end result is that a too narrow menu leads to the elided text string being empty which was outside of the assumptions of the getElidedText() function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't built/tested but LGTM ; thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The chopped
change isn't a hack as it is indeed something we need to handle. Not sure why they would leave it as undefined behaviour tho...
Note: The behavior is undefined if len is negative or greater than size().
Please open the two issues, IMHO they are both blockerw for 2.5.0. |
@ShaopengLin That fix is a hack since its only purpose is to prevent a crash. It doesn't make any sense to elide text in such a way. |
Fixes #1235
Other noticed issues (that should be fixed in separate PRs):