GithubHelp home page GithubHelp logo

Child pages are not rendered after exiting a nested initial page with the back gesture and launching from the Android launcher. about auto_route_library HOT 9 OPEN

kouroku-room avatar kouroku-room commented on June 11, 2024 3
Child pages are not rendered after exiting a nested initial page with the back gesture and launching from the Android launcher.

from auto_route_library.

Comments (9)

d029940 avatar d029940 commented on June 11, 2024 2

I have a similar problem with the emulator. From AndroidStudio (or VSCode) launched the app and it shows nicely. Then I close the app and restart it again. => Black screen and error message:
E/emuglGLESv2_enc( 4107): device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502

from auto_route_library.

d029940 avatar d029940 commented on June 11, 2024 2

I tried several emulators. I have still no solution, but may be a hint.
If I created an emulator from the predefined list, and I choose API 30 or less. A system image x86 will be taken. This works.
If I take an API greater than 30, a system image x86_64 is applied. Now I have the same problem. Either the app must be uninstalled or the cache cleared.

Then I created a new emulator and used "New hardware profile". (Not one from the predefined list). I chose an API greater than 30. And it will work. Regardless whether you chose software or hardware for graphics mode.

So, I think choosing an emulator from the predefined list and selecting an API greater than 30 (i.e. x86_64 image), you will run into an error. Maybe the predefined hardware profiles don't match.

Additionally viewing details of the emulators with regards to gpu, I am getting the following info:

Predefined Pixel 8 (API 34): hw.gpu.enabled = yes, hw.gpu.mode = auto => error
Device defined by myself (API 34): hw.gpu.enabled = yes, hw.gpu.mode = host => works
Predefined Pixel 8 (API 30): hw.gpu.enabled = yes, hw.gpu.mode = auto => works

I am on Windows 11, latest AndroidStudio / SDK. It doesn't matter if the hypervisor is from Microsoft (Windows Pro version) or if the hypervisor is taken from the SDK. Same results.

Very confusing. I would advice that you try to create an emulator yourself - and not using one of the predefined ones.

from auto_route_library.

MG-LSJ avatar MG-LSJ commented on June 11, 2024

This only started to happen when I updated Android Studio

from auto_route_library.

AbdelrahmanEsam avatar AbdelrahmanEsam commented on June 11, 2024

@MG-LSJ in android studio Iguana that doesn't happen the first time you install your app or if your cache cleared ... otherwise this will happen .

from auto_route_library.

d029940 avatar d029940 commented on June 11, 2024

I completely uninstalled AndroidStudio on Windows. Deleted %appdata%/local/Android and .android in the home folder and reinstalled again. Now it works. So, probably the update caused the error. Likely, clearing the cache would have solved the problem.

So, thank you.

from auto_route_library.

AbdelrahmanEsam avatar AbdelrahmanEsam commented on June 11, 2024

@d029940 with me it doesn't ... you need to clear cache of the app everytime .

from auto_route_library.

kouroku-room avatar kouroku-room commented on June 11, 2024

Thanks for confirming this problem.

I've reported it on Google's Issue Tracker as similar issues seem to occur to others.
https://issuetracker.google.com/issues/338667188

-> Google's Issue Tracker was not the appropriate place to report it, so I reported it to the Flutter team.
flutter/flutter#148347

from auto_route_library.

kouroku-room avatar kouroku-room commented on June 11, 2024

I tried several emulators. I have still no solution, but may be a hint. If I created an emulator from the predefined list, and I choose API 30 or less. A system image x86 will be taken. This works. If I take an API greater than 30, a system image x86_64 is applied. Now I have the same problem. Either the app must be uninstalled or the cache cleared.

Then I created a new emulator and used "New hardware profile". (Not one from the predefined list). I chose an API greater than 30. And it will work. Regardless whether you chose software or hardware for graphics mode.

So, I think choosing an emulator from the predefined list and selecting an API greater than 30 (i.e. x86_64 image), you will run into an error. Maybe the predefined hardware profiles don't match.

Additionally viewing details of the emulators with regards to gpu, I am getting the following info:

Predefined Pixel 8 (API 34): hw.gpu.enabled = yes, hw.gpu.mode = auto => error Device defined by myself (API 34): hw.gpu.enabled = yes, hw.gpu.mode = host => works Predefined Pixel 8 (API 30): hw.gpu.enabled = yes, hw.gpu.mode = auto => works

I am on Windows 11, latest AndroidStudio / SDK. It doesn't matter if the hypervisor is from Microsoft (Windows Pro version) or if the hypervisor is taken from the SDK. Same results.

Very confusing. I would advice that you try to create an emulator yourself - and not using one of the predefined ones.

I tried this opinion, but it seems to cause an error in my environment...

[Create Virtual Device] -> [New Harware Profile] -> [Create(All Default settings)]
->this Hardware Profile + API 34 ->error (same behavior as issue video)

However, I was able to do it in my environment without any problems with API 30 too!
Predefined Pixel 8 (API 30) => works

The above information was tested without reinstalling Android Studio.


Added

I did a clean install* of Android Studio, but the behavior did not change.
*Relation file ("C:\Users\username.android" & "C:\Users\username\AppData\Roaming\Google" & "C:\Users\username\AppData\Local\Android" ) deleted.

from auto_route_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.