Comments (11)
same apk tested on samsung tab, same effect. Did you try on real hardware or emulator? Maybe I miss something somewhere?
from hello_world_android_egui.
Hi, thank you for report. It's working on my Redmi Note 9T, but the same black screen on good old LG G8. I suspect a race condition at initialization stage, will look closer tomorrow.
PS:
In log I found RustStdoutStderr: thread '<unnamed>' panicked at 'Failed get adapter at src/lib.rs line 198', src/lib.rs:198:24
can you look at your logcat output please?
from hello_world_android_egui.
Hello,
Yes it seems a thread error.
Note: you have got an adapter error, i have a device error?
../..
12-21 12:48:22.529 5128 5153 V winit::platform_impl:..: Mainloop iteration
12-21 12:48:22.530 5128 5153 W hello_world_android_e..: Got event: NewEvents(Poll) at src/lib.rs line 107
12-21 12:48:22.530 5128 5153 V winit::platform_impl:..: Handling main event InitWindow
12-21 12:48:22.530 5128 5153 W hello_world_android_e..: Got event: Resumed at src/lib.rs line 107
12-21 12:48:22.530 5128 5153 W winit::platform_impl:..: Cannot set window size on Android
12-21 12:48:22.530 5128 5153 W hello_world_android_e..: Set to new size: PhysicalSize { width: 1080, height: 2090 } at src/lib.rs line 137
12-21 12:48:22.530 5128 5153 V android_activity::nat..: Attaching input queue to looper
12-21 12:48:22.530 5128 5153 W hello_world_android_e..: Got event: MainEventsCleared at src/lib.rs line 107
12-21 12:48:22.530 5128 5153 W hello_world_android_e..: Got event: RedrawEventsCleared at src/lib.rs line 107
12-21 12:48:22.530 5128 5153 V android_activity::nat..: Calling post_exec_cmd(InitWindow)
12-21 12:48:22.530 5128 5153 V android_activity::nat..: Post: AppCmd::InitWindow
12-21 12:48:22.530 5128 5153 W hello_world_android_e..: Got event: LoopDestroyed at src/lib.rs line 107
12-21 12:48:22.530 5128 5153 W hello_world_android_e..: Recreate platform at src/lib.rs line 159
12-21 12:48:22.531 5128 5153 W hello_world_android_e..: WGPU new surface at src/lib.rs line 170
12-21 12:48:22.536 5128 5153 W hello_world_android_e..: instance request_adapter at src/lib.rs line 173
12-21 12:48:22.540 5128 5153 I Gralloc4: mapper 4.x is not supported
12-21 12:48:22.540 5128 5153 W Gralloc3: mapper 3.x is not supported
12-21 12:48:22.543 5128 5153 W Gralloc4: allocator 3.x is not supported
12-21 12:48:22.543 5128 5153 W Gralloc3: allocator 3.x is not supported
12-21 12:48:22.544 5128 5153 I Gralloc2: Adding additional valid usage bits: 0x202000
12-21 12:48:22.547 5128 5153 W wgpu_hal::vulkan::conv: Unrecognized present mode SHARED_DEMAND_REFRESH
12-21 12:48:22.547 5128 5153 W wgpu_hal::vulkan::conv: Unrecognized present mode SHARED_CONTINUOUS_REFRESH
12-21 12:48:22.547 5128 5153 I wgpu_core::instance: Adapter Vulkan AdapterInfo { name: "Adreno (TM) 512", vendor: ... device: ... device_type: IntegratedGpu, driver: "Qualcomm Technologies Inc. Adreno Vulkan Driver", driver_info: "Driver Build: ...\nDriver Branch: \n", backend: Vulkan }
12-21 12:48:22.547 5128 5153 W hello_world_android_e..: adapter request_device at src/lib.rs line 182
12-21 12:48:22.547 5128 5153 E wgpu::backend::direct: Error in Adapter::request_device: Limit 'max_storage_textures_per_shader_stage' value 8 is better than allowed 4
12-21 12:48:22.548 5128 5152 I RustStdoutStderr: thread '<unnamed>' panicked at 'Failed to request device at src/lib.rs line 195 with error
12-21 12:48:22.548 5128 5152 I RustStdoutStderr: RequestDeviceError', src/lib.rs:192:9
12-21 12:48:22.548 5128 5152 I RustStdoutStderr: stack backtrace:
../..
from hello_world_android_egui.
On Samsung Galaxy Tab S2:
12-21 13:06:53.241 21587 21604 V winit::platform_impl:..: Mainloop iteration
12-21 13:06:53.241 21587 21604 W hello_world_android_e..: Got event: NewEvents(Poll) at src/lib.rs line 107
12-21 13:06:53.241 21587 21604 V winit::platform_impl:..: Handling main event InitWindow
12-21 13:06:53.241 21587 21604 W hello_world_android_e..: Got event: Resumed at src/lib.rs line 107
12-21 13:06:53.242 21587 21604 W winit::platform_impl:..: Cannot set window size on Android
12-21 13:06:53.242 21587 21604 W hello_world_android_e..: Set to new size: PhysicalSize { width: 1536, height: 2048 } at src/lib.rs line 137
12-21 13:06:53.242 21587 21604 V android_activity::nat..: Attaching input queue to looper
12-21 13:06:53.242 21587 21604 W hello_world_android_e..: Got event: MainEventsCleared at src/lib.rs line 107
12-21 13:06:53.242 21587 21604 W hello_world_android_e..: Got event: RedrawEventsCleared at src/lib.rs line 107
12-21 13:06:53.242 21587 21604 V android_activity::nat..: Calling post_exec_cmd(InitWindow)
12-21 13:06:53.242 21587 21604 V android_activity::nat..: Post: AppCmd::InitWindow
12-21 13:06:53.242 21587 21587 D ViewRootImpl@3c23925[NativeActivity]: ViewRootImpl >> surfaceChanged W=1536, H=2048)
12-21 13:06:53.242 21587 21604 W hello_world_android_e..: Got event: LoopDestroyed at src/lib.rs line 107
12-21 13:06:53.242 21587 21604 W hello_world_android_e..: Recreate platform at src/lib.rs line 159
12-21 13:06:53.243 21587 21604 W hello_world_android_e..: WGPU new surface at src/lib.rs line 170
12-21 13:06:53.244 21587 21604 W hello_world_android_e..: instance request_adapter at src/lib.rs line 173
12-21 13:06:53.244 21587 21604 W wgpu_hal::vulkan::ada..: SPIR-V storage buffer class is not supported, hiding adapter: Adreno (TM) 510
12-21 13:06:53.245 21587 21603 I RustStdoutStderr: thread '<unnamed>' panicked at 'Failed get adapter at src/lib.rs line 180', src/lib.rs:180:24
12-21 13:06:53.245 21587 21603 I RustStdoutStderr: stack backtrace:
12-21 13:06:53.272 21587 21587 D ViewRootImpl@3c23925[NativeActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1536, 2048) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
12-21 13:06:53.272 21587 21587 D ViewRootImpl@3c23925[NativeActivity]: MSG_WINDOW_FOCUS_CHANGED 1
12-21 13:06:53.272 21587 21587 D android_activity::nat..: WindowFocusChanged: 0x7f850bed80 -- 1
12-21 13:06:53.273 21587 21587 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@8df67dd nm : rust.hello_world_android_egui ic=null
12-21 13:06:53.273 21587 21587 I InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
12-21 13:06:53.278 21587 21600 D InputTransport: Input channel constructed: fd=73
12-21 13:06:53.278 21587 21587 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@ab2bf52 nm : rust.hello_world_android_egui ic=null
from hello_world_android_egui.
Yes, there are different errors. Adapter error means wgpu was unable to find an appropriate adapter for Vulkan nor OpenGL.
The device error looks much more promising - at least we can try tune some options to fit into its capabilities. I changed limits to
limits: wgpu::Limits::downlevel_defaults(),
try it now.
from hello_world_android_egui.
Hello inferrna,
Good news with wgpu::Limits::downlevel_defaults()
: egui is now visible on my lineageos ASUS phone nevertheless, egui use the top half of the screen. But it is certainly another bug.
For the Samsung Galaxy Tab S2 nothing on the screen yet but I see this log: 12-23 20:42:51.728 1238 3225 D GameManagerService: identifyGamePackage. rust.hello_world_android_egui
. I'll try to disable GameManagerService to see if it is better.
from hello_world_android_egui.
For the Samsung Galaxy Tab S2 nothing on the screen yet but I see this log:
12-23 20:42:51.728 1238 3225 D GameManagerService: identifyGamePackage. rust.hello_world_android_egui
. I'll try to disable GameManagerService to see if it is better.
Impossible to remove this service...
I removed all packages i can using uad.
In fact, when i read again 12-21 13:06:53.244 21587 21604 W wgpu_hal::vulkan::ada..: SPIR-V storage buffer class is not supported, hiding adapter: Adreno (TM) 510
seems strange no?
from hello_world_android_egui.
Galaxy Tab S2, found some errors at start:
12-23 21:14:08.026 5405 5405 E Zygote : v2
...
12-23 21:14:08.028 5405 5405 E Zygote : accessInfo : 0
...
12-23 21:14:08.258 5405 5443 W hello_world_android_e..: Winit build window at src/lib.rs line 63
12-23 21:14:08.258 5405 5443 W hello_world_android_e..: WGPU new instance at src/lib.rs line 79
12-23 21:14:08.259 5405 5443 E vulkan : invalid vkGetInstanceProcAddr(VK_NULL_HANDLE, "vkEnumerateInstanceVersion") call
12-23 21:14:08.259 5405 5443 E vulkan : invalid vkGetInstanceProcAddr(VK_NULL_HANDLE, "vkEnumerateInstanceVersion") call
from hello_world_android_egui.
SPIR-V storage buffer class is not supported, hiding adapter: Adreno (TM) 510
comes from https://wgpu.rs/doc/src/wgpu_hal/vulkan/adapter.rs.html#961
Unfortunately, WGPU targeting newer stack, than old devices can afford.
Regarding your half-screen problem with ASUS - try to play with code on lines 170~220 of lib.rs. Also look into logcat for this
"Set to new size: {:?} at {} line {}",
to see screen size it tries to use.
from hello_world_android_egui.
Hello inferrna, thank you very much for your help. I think we can't do more for this issue. Do you think i can close it ? Thx!
from hello_world_android_egui.
Ok
from hello_world_android_egui.
Related Issues (7)
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 hello_world_android_egui.