Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIn VR mode, ServoView constructor is called twice #22197
Comments
|
Is this on oculus, or on googlevr too? |
|
googlevr. |
|
Hm, I'm not hitting this. What I get is:
I'm not able to display to VR yet because of #22162 |
|
From Slack: One thing that could affect is this: https://github.com/MozillaReality/FirefoxReality/blob/master/app/src/main/AndroidManifest.xml#L27
Check that you are using the same configChanges in the servo android manifest.xml |
|
So Servo is (likely) destroyed and reloaded because of a change of config. I was wondering why this wasn't a problem with FxR. It's because FxR doesn't use servo arguments. Anyway, that should not be too hard to fix. Looking at it. |
Handle more config changes Fix #22197 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22246) <!-- Reviewable:end -->
Handle more config changes Fix #22197 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22246) <!-- Reviewable:end -->
Which leads to a panic (
assert(DEFAULT_OPTION.is_null())).I have no idea why the view is constructed twice.