Comments (9)
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.
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.
This only started to happen when I updated Android Studio
from auto_route_library.
@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.
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.
@d029940 with me it doesn't ... you need to clear cache of the app everytime .
from auto_route_library.
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.
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)
- AutoRouterDelegate.declarative is deprecated - use guards instead - no docs? HOT 8
- Explicit Type Casting for Route Assignments HOT 1
- context.router.pushNamed is not working HOT 7
- Issue with screen going blank after navigating back from nested routes with wrappers in version 8.0.0 HOT 2
- Can not swipe back on iOS when using nested navigation HOT 10
- Question: Access BuildContext from within AutoRouteGuard HOT 1
- Redirect on arg parsing fail HOT 5
- Back button on Android closes App on Sub route
- Implement Persist Navigation State Feature
- Back navigation blank issue still persists in 8.1.1 HOT 1
- removeWhere removes the wrong route HOT 1
- PopScope not working on web browser back button HOT 1
- How to add new Nested Navigation Tab dynamically?
- Deeplink getting called multiple times HOT 12
- Regression on StackRouter.popAndPushAll()
- Cannot reload route with callback parameter HOT 1
- [BUG] deeplinkBuilder is not called
- Codegen can't find widgets, they need to be imported into the app_router file HOT 1
- Inconsistent ReevaluateListenable Behavior on Web vs. Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto_route_library.