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

Fix freeze on start #3228

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Fix freeze on start #3228

merged 1 commit into from
Apr 3, 2024

Conversation

wonder-sk
Copy link
Contributor

I was getting black screen upon app start on linux. It was quite horrible to debug, but in the end this is how it goes:

  • at some point during init, when ScaleBarKit::updateScaleBar() tries to figure out good scale bar width, the InputUtils::screenUnitsToMeters() function returns NaN because we're trying to do ellipsoid calculations with bad coordinates
  • NaN gets propagated and the scale bar gets width = -2147483600
  • ShaderEffectSource used for the blur box gets sourceRect set to -2147483600 and that gets the code stuck somewhere in Quick Scene Graph code forever

Before:
mm-black-before

After:
mm-black-after

@wonder-sk wonder-sk merged commit a2a31dd into master Apr 3, 2024
6 of 8 checks passed
@tomasMizera tomasMizera deleted the fix-freeze-on-start branch April 3, 2024 15:57
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

Successfully merging this pull request may close these issues.

2 participants