dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

MAUI Blazor # Android system uses USB device app to reload and then black screen #19589

Closed ychangh closed 8 months ago

ychangh commented 11 months ago

Description

No such problem using .net7

logs

2023-12-26 09:32:49.231 0-0/? I/usb 3-1: Product: NS021 USB HID Keyboard 2023-12-26 09:32:49.231 0-0/? I/usb 3-1: Manufacturer: Newland Auto-ID 2023-12-26 09:32:49.232 0-0/? I/usb 3-1: SerialNumber: ND10213501370 2023-12-26 09:32:49.245 0-0/? I/input: Newland Auto-ID NS021 USB HID Keyboard as /devices/platform/fd840000.usb/usb3/3-1/3-1:1.0/0003:324F:0041.0025/input/input47 2023-12-26 09:32:49.303 0-0/? I/hid-generic 0003: 324F:0041.0025: input,hidraw1: USB HID v2.00 Keyboard [Newland Auto-ID NS021 USB HID Keyboard] on usb-fd840000.usb-1/input0 2023-12-26 09:32:27.168 405-474/system_process D/EventHub: No input device configuration file found for device 'Newland Auto-ID NS021 USB HID Keyboard'. 2023-12-26 09:32:27.191 405-474/system_process I/EventHub: usingClockIoctl=true 2023-12-26 09:32:27.192 405-474/system_process I/EventHub: New device: id=42, fd=309, path='/dev/input/event6', name='Newland Auto-ID NS021 USB HID Keyboard', classes=0x83, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, 2023-12-26 09:32:27.192 405-474/system_process I/InputReader: Device added: id=41, eventHubId=42, name='Newland Auto-ID NS021 USB HID Keyboard', descriptor='2516d38e09357638612c2c250f3056d79e3ec27d',sources=0x80000101 2023-12-26 09:32:27.197 405-473/system_process W/ActivityTaskManager: Current config: {1.0 ?mcc?mnc [zh_CN] ldltr sw768dp w1366dp h696dp 160dpi xlrg long land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1366, 768) mAppBounds=Rect(0, 0 - 1366, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1752} unchanged for IME proc com.google.android.inputmethod.pinyin 2023-12-26 09:32:27.202 405-473/system_process I/ActivityTaskManager: Config changes=30 {1.0 ?mcc?mnc [zh_CN] ldltr sw768dp w1366dp h696dp 160dpi xlrg long land finger qwerty/v/v -nav/h winConfig={ mBounds=Rect(0, 0 - 1366, 768) mAppBounds=Rect(0, 0 - 1366, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1752} 2023-12-26 09:32:27.271 405-473/system_process W/ActivityTaskManager: Current config: {1.0 ?mcc?mnc [zh_CN] ldltr sw768dp w1366dp h696dp 160dpi xlrg long land finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1366, 768) mAppBounds=Rect(0, 0 - 1366, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1752} unchanged for IME proc com.google.android.inputmethod.pinyin 2023-12-26 09:32:27.274 405-473/system_process I/WindowManager: Override config changes=30 {1.0 ?mcc?mnc [zh_CN] ldltr sw768dp w1366dp h696dp 160dpi xlrg long land finger qwerty/v/v -nav/h winConfig={ mBounds=Rect(0, 0 - 1366, 768) mAppBounds=Rect(0, 0 - 1366, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1752} for displayId=0 2023-12-26 09:32:27.276 405-473/system_process V/ActivityTaskManager: Sending to IME proc com.google.android.inputmethod.pinyin new config {1.0 ?mcc?mnc [zh_CN] ldltr sw768dp w1366dp h696dp 160dpi xlrg long land finger qwerty/v/v -nav/h winConfig={ mBounds=Rect(0, 0 - 1366, 768) mAppBounds=Rect(0, 0 - 1366, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1752} 2023-12-26 09:32:27.278 405-473/system_process W/ActivityTaskManager: Current config: {1.0 ?mcc?mnc [zh_CN] ldltr sw768dp w1366dp h696dp 160dpi xlrg long land finger qwerty/v/v -nav/h winConfig={ mBounds=Rect(0, 0 - 1366, 768) mAppBounds=Rect(0, 0 - 1366, 720) mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1752} unchanged for IME proc com.google.android.inputmethod.pinyin 2023-12-26 09:32:27.314 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.324 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.368 210-256/? I/gralloc4: use RK_GRALLOC_USAGE_WITHIN_4G 2023-12-26 09:32:27.370 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.391 210-256/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate; got new private_handle_t instance @0xb4000076a347e530 for buffer 'screenshot'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 1366, height : 768, req_format : 0x1, producer_usage : 0x333, consumer_usage : 0x333, internal_format : 0x0, stride : 1376, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 4227072, layer_count : 1, backing_store_size : 4227072, backing_store_id : 901943134095, allocating_pid : 210, ref_count : 1, yuv_info : 0 2023-12-26 09:32:27.392 210-256/? D/gralloc4: plane_info[0]: offset : 0, byte_stride : 5504, alloc_width : 1366, alloc_height : 768 2023-12-26 09:32:27.392 210-256/? D/gralloc4: plane_info[1]: offset : 0, byte_stride : 0, alloc_width : 0, alloc_height : 0 2023-12-26 09:32:27.403 405-473/system_process W/ImageReader_JNI: Unable to acquire a buffer item, very likely client tried to acquire more than maxImages buffers 2023-12-26 09:32:27.421 561-575/com.android.systemui W/ndroid.systemu: Reducing the number of considered missed Gc histogram windows from 830 to 100 2023-12-26 09:32:27.421 405-405/system_process W/NotificationHistory: Attempted to add notif for locked/gone/disabled user 0 2023-12-26 09:32:27.423 405-473/system_process V/WindowManager: Orientation start waiting for draw, mDrawState=DRAW_PENDING in Window{58f7cac u0 NavigationBar0}, surfaceController Surface(name=NavigationBar0)/@0x91ed500 2023-12-26 09:32:27.423 405-473/system_process V/WindowManager: Orientation start waiting for draw, mDrawState=DRAW_PENDING in Window{ec7cc72 u0 StatusBar}, surfaceController Surface(name=StatusBar)/@0x506e139 2023-12-26 09:32:27.424 405-473/system_process V/WindowManager: Orientation start waiting for draw, mDrawState=DRAW_PENDING in Window{1f2f9ac u0 com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity}, surfaceController Surface(name=com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity)/@0x7e99e0f 2023-12-26 09:32:27.424 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.427 405-427/system_process W/system_server: Long monitor contention with owner InputDispatcher (473) at android.content.res.Configuration com.android.server.wm.ActivityTaskManagerService.getGlobalConfigurationForPid(int)(ActivityTaskManagerService.java:973) waiters=0 in void com.android.server.wm.WindowAnimator.lambda$new$1$WindowAnimator(long) for 225ms 2023-12-26 09:32:27.429 405-426/system_process W/system_server: Long monitor contention with owner InputDispatcher (473) at android.content.res.Configuration com.android.server.wm.ActivityTaskManagerService.getGlobalConfigurationForPid(int)(ActivityTaskManagerService.java:973) waiters=1 in void com.android.server.wm.WindowManagerService.notifyHardKeyboardStatusChange() for 220ms 2023-12-26 09:32:27.433 405-780/system_process V/WindowManager: Orientation start waiting for draw, mDrawState=DRAW_PENDING in Window{1f2f9ac u0 com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity}, surfaceController Surface(name=com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity)/@0x7e99e0f 2023-12-26 09:32:27.455 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.467 332-365/? D/NuPlayerDriver: NuPlayerDriver(0xedd40dd0) created, clientPid(561) 2023-12-26 09:32:27.534 332-20357/? D/GenericSource: FileSource remote 2023-12-26 09:32:27.554 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.564 210-256/? I/gralloc4: use RK_GRALLOC_USAGE_WITHIN_4G 2023-12-26 09:32:27.564 210-256/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate; got new private_handle_t instance @0xb4000076a347c7f0 for buffer 'Bitmap::allocateHardwareBitmap pid [561]'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 30, height : 32, req_format : 0x1, producer_usage : 0x100, consumer_usage : 0x100, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 4096, layer_count : 1, backing_store_size : 4096, backing_store_id : 901943134096, allocating_pid : 210, ref_count : 1, yuv_info : 0 2023-12-26 09:32:27.565 210-256/? D/gralloc4: plane_info[0]: offset : 0, byte_stride : 128, alloc_width : 30, alloc_height : 32 2023-12-26 09:32:27.565 210-256/? D/gralloc4: plane_info[1]: offset : 0, byte_stride : 0, alloc_width : 0, alloc_height : 0 2023-12-26 09:32:27.572 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.590 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.591 19751-19751/com.companyname.mauiapp2 W/monodroid-assembly: open_from_bundles: failed to load assembly Xamarin.AndroidX.Lifecycle.Runtime.dll 2023-12-26 09:32:27.595 19751-19751/com.companyname.mauiapp2 W/monodroid-assembly: open_from_bundles: failed to load assembly Xamarin.Kotlin.StdLib.dll 2023-12-26 09:32:27.599 210-256/? I/gralloc4: use RK_GRALLOC_USAGE_WITHIN_4G 2023-12-26 09:32:27.599 327-327/? E/Utils: did not find channel-count and/or sample-rate 2023-12-26 09:32:27.600 210-256/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate; got new private_handle_t instance @0xb4000076a347e530 for buffer 'Bitmap::allocateHardwareBitmap pid [561]'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 30, height : 32, req_format : 0x1, producer_usage : 0x100, consumer_usage : 0x100, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 4096, layer_count : 1, backing_store_size : 4096, backing_store_id : 901943134097, allocating_pid : 210, ref_count : 1, yuv_info : 0 2023-12-26 09:32:27.600 210-256/? D/gralloc4: plane_info[0]: offset : 0, byte_stride : 128, alloc_width : 30, alloc_height : 32 2023-12-26 09:32:27.600 210-256/? D/gralloc4: plane_info[1]: offset : 0, byte_stride : 0, alloc_width : 0, alloc_height : 0 2023-12-26 09:32:27.602 327-3024/? E/Utils: did not find channel-count and/or sample-rate 2023-12-26 09:32:27.607 210-256/? I/gralloc4: use RK_GRALLOC_USAGE_WITHIN_4G 2023-12-26 09:32:27.608 210-256/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate; got new private_handle_t instance @0xb4000076a347c7f0 for buffer 'Bitmap::allocateHardwareBitmap pid [561]'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 26, height : 28, req_format : 0x1, producer_usage : 0x100, consumer_usage : 0x100, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 3584, layer_count : 1, backing_store_size : 3584, backing_store_id : 901943134098, allocating_pid : 210, ref_count : 1, yuv_info : 0 2023-12-26 09:32:27.608 210-256/? D/gralloc4: plane_info[0]: offset : 0, byte_stride : 128, alloc_width : 26, alloc_height : 28 2023-12-26 09:32:27.608 210-256/? D/gralloc4: plane_info[1]: offset : 0, byte_stride : 0, alloc_width : 0, alloc_height : 0 2023-12-26 09:32:27.614 210-256/? I/gralloc4: use RK_GRALLOC_USAGE_WITHIN_4G 2023-12-26 09:32:27.615 210-256/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate; got new private_handle_t instance @0xb4000076a347e530 for buffer 'Bitmap::allocateHardwareBitmap pid [561]'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 26, height : 28, req_format : 0x1, producer_usage : 0x100, consumer_usage : 0x100, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 3584, layer_count : 1, backing_store_size : 3584, backing_store_id : 901943134099, allocating_pid : 210, ref_count : 1, yuv_info : 0 2023-12-26 09:32:27.615 210-256/? D/gralloc4: plane_info[0]: offset : 0, byte_stride : 128, alloc_width : 26, alloc_height : 28 2023-12-26 09:32:27.615 210-256/? D/gralloc4: plane_info[1]: offset : 0, byte_stride : 0, alloc_width : 0, alloc_height : 0 2023-12-26 09:32:27.616 405-780/system_process I/MediaFocusControl: requestAudioFocus() from uid/pid 10110/561 clientId=android.media.AudioManager@5960f73 callingPack=com.android.systemui req=3 flags=0x0 sdk=30 2023-12-26 09:32:27.618 210-256/? I/gralloc4: use RK_GRALLOC_USAGE_WITHIN_4G 2023-12-26 09:32:27.619 210-256/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate; got new private_handle_t instance @0xb4000076a347c7f0 for buffer 'Bitmap::allocateHardwareBitmap pid [561]'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 26, height : 28, req_format : 0x1, producer_usage : 0x100, consumer_usage : 0x100, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 3584, layer_count : 1, backing_store_size : 3584, backing_store_id : 901943134100, allocating_pid : 210, ref_count : 1, yuv_info : 0 2023-12-26 09:32:27.619 210-256/? D/gralloc4: plane_info[0]: offset : 0, byte_stride : 128, alloc_width : 26, alloc_height : 28 2023-12-26 09:32:27.619 210-256/? D/gralloc4: plane_info[1]: offset : 0, byte_stride : 0, alloc_width : 0, alloc_height : 0 2023-12-26 09:32:27.622 210-256/? I/gralloc4: use RK_GRALLOC_USAGE_WITHIN_4G 2023-12-26 09:32:27.622 210-256/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate; got new private_handle_t instance @0xb4000076a347e530 for buffer 'Bitmap::allocateHardwareBitmap pid [561]'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 26, height : 28, req_format : 0x1, producer_usage : 0x100, consumer_usage : 0x100, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 3584, layer_count : 1, backing_store_size : 3584, backing_store_id : 901943134101, allocating_pid : 210, ref_count : 1, yuv_info : 0 2023-12-26 09:32:27.622 210-256/? D/gralloc4: plane_info[0]: offset : 0, byte_stride : 128, alloc_width : 26, alloc_height : 28 2023-12-26 09:32:27.623 210-256/? D/gralloc4: plane_info[1]: offset : 0, byte_stride : 0, alloc_width : 0, alloc_height : 0 2023-12-26 09:32:27.544 405-780/system_process I/chatty: uid=1000(system) Binder:405_9 identical 1 line 2023-12-26 09:32:27.554 405-780/system_process V/WindowManager: Orientation start waiting for draw, mDrawState=DRAW_PENDING in Window{1f2f9ac u0 com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity}, surfaceController Surface(name=com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity)/@0x7e99e0f 2023-12-26 09:32:27.637 405-427/system_process V/WindowManager: Orientation start waiting for draw, mDrawState=DRAW_PENDING in Window{1f2f9ac u0 com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity}, surfaceController Surface(name=com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity)/@0x7e99e0f 2023-12-26 09:32:27.656 561-561/com.android.systemui D/InterruptionStateProvider: No bubble up: not allowed to bubble: -1|android|19|null|1000 2023-12-26 09:32:27.657 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.657 561-561/com.android.systemui D/InterruptionStateProvider: No heads up: unimportant notification: -1|android|19|null|1000 2023-12-26 09:32:27.672 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.689 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:27.705 227-1442/? E/BufferQueueProducer: com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity#0 disconnect: not connected (req=1) 2023-12-26 09:32:27.705 19751-19816/com.companyname.mauiapp2 W/libEGL: EGLNativeWindowType 0xb400007482d87c80 disconnect failed 2023-12-26 09:32:27.728 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:28.052 211-211/? I/chatty: uid=1000(system) composer@2.1-se identical 17 lines 2023-12-26 09:32:28.070 211-211/? I/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/core/mali_gralloc_formats.cpp; [Line] : 1858; [Func] : rk_gralloc_select_format; AFBC IS disabled for fb_target_layer. 2023-12-26 09:32:28.122 561-561/com.android.systemui V/MediaRouter: Selecting route: RouteInfo{ name=平板电脑, description=null, status=null, category=RouteCategory{ name=系统 types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null } 2023-12-26 09:32:28.122 332-20356/? I/GenericSource: start 2023-12-26 09:32:28.150 332-20368/? D/CCodec: allocate(c2.android.vorbis.decoder) 2023-12-26 09:32:28.158 345-345/? V/C2Store: in init 2023-12-26 09:32:28.158 345-345/? V/C2Store: loading dll 2023-12-26 09:32:28.277 332-20368/? I/CCodec: Created component [c2.android.vorbis.decoder] 2023-12-26 09:32:28.281 332-20368/? D/CCodecConfig: read media type: audio/vorbis 2023-12-26 09:32:28.283 332-20368/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values 2023-12-26 09:32:28.284 332-20368/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values 2023-12-26 09:32:28.284 332-20368/? D/ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values 2023-12-26 09:32:28.284 332-20368/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values 2023-12-26 09:32:28.285 332-20368/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values 2023-12-26 09:32:28.285 332-20368/? D/ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values 2023-12-26 09:32:28.285 332-20368/? D/ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values 2023-12-26 09:32:28.290 332-20368/? I/CCodecConfig: query failed after returning 7 values (BAD_INDEX) 2023-12-26 09:32:28.290 332-20368/? D/CCodecConfig: c2 config diff is Dict { c2::u32 coded.bitrate.value = 64000 c2::u32 input.buffers.max-size.value = 32768 c2::u32 input.delay.value = 0 string input.media-type.value = "audio/vorbis" string output.media-type.value = "audio/raw" c2::u32 raw.channel-count.value = 1 c2::u32 raw.sample-rate.value = 48000 } 2023-12-26 09:32:28.292 332-20368/? D/CCodec: [c2.android.vorbis.decoder] buffers are bound to CCodec for this session 2023-12-26 09:32:28.292 332-20368/? D/CCodecConfig: no c2 equivalents for durationUs 2023-12-26 09:32:28.292 332-20368/? D/CCodecConfig: no c2 equivalents for csd-1 2023-12-26 09:32:28.292 332-20368/? D/CCodecConfig: no c2 equivalents for channel-mask 2023-12-26 09:32:28.292 332-20368/? D/CCodecConfig: no c2 equivalents for flags 2023-12-26 09:32:28.293 332-20368/? W/Codec2Client: query -- param skipped: index = 1107298332. 2023-12-26 09:32:28.294 332-20368/? D/CCodec: setup formats input: AMessage(what = 0x00000000) = { int32_t channel-count = 1 int32_t max-input-size = 32768 string mime = "audio/vorbis" int32_t sample-rate = 48000 } and output: AMessage(what = 0x00000000) = { int32_t channel-count = 1 string mime = "audio/raw" int32_t sample-rate = 48000 int32_t channel-mask = 1 } 2023-12-26 09:32:28.294 332-20368/? I/MediaCodec: MediaCodec will operate in async mode 2023-12-26 09:32:28.295 332-20368/? W/Codec2Client: query -- param skipped: index = 1342179345. 2023-12-26 09:32:28.295 332-20368/? W/Codec2Client: query -- param skipped: index = 2415921170. 2023-12-26 09:32:28.297 332-20368/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.298 332-20368/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.298 332-20368/? D/CCodecBufferChannel: [c2.android.vorbis.decoder#625] Created input block pool with allocatorID 16 => poolID 482 - OK (0) 2023-12-26 09:32:28.299 345-6550/? D/BufferPoolAccessor2.0: bufferpool2 0xb4000073a951a748 : 0(0 size) total buffers - 0(0 size) used buffers - 66/70 (recycle/alloc) - 4/69 (fetch/transfer) 2023-12-26 09:32:28.299 345-6550/? D/BufferPoolAccessor2.0: Destruction - bufferpool2 0xb4000073a951a748 cached: 0/0M, 0/0% in use; allocs: 70, 94% recycled; transfers: 69, 94% unfetched 2023-12-26 09:32:28.301 345-345/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.301 345-345/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.302 332-6727/? D/BufferPoolAccessor2.0: bufferpool2 0xe8f82668 : 0(0 size) total buffers - 0(0 size) used buffers - 65/73 (recycle/alloc) - 8/144 (fetch/transfer) 2023-12-26 09:32:28.302 332-6727/? D/BufferPoolAccessor2.0: Destruction - bufferpool2 0xe8f82668 cached: 0/0M, 0/0% in use; allocs: 73, 89% recycled; transfers: 144, 94% unfetched 2023-12-26 09:32:28.302 332-20368/? I/CCodecBufferChannel: [c2.android.vorbis.decoder#625] Created output block pool with allocatorID 16 => poolID 491 - OK 2023-12-26 09:32:28.303 332-20368/? D/CCodecBufferChannel: [c2.android.vorbis.decoder#625] Configured output block pool ids 491 => OK 2023-12-26 09:32:28.315 345-20369/? D/SimpleC2Component: Using output block pool with poolID 491 => got 491 - 0 2023-12-26 09:32:28.317 332-20368/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.318 345-345/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.329 345-20369/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.330 332-6727/? E/FMQ: grantorIdx must be less than 3 2023-12-26 09:32:28.331 332-20368/? D/CCodecBuffers: [c2.android.vorbis.decoder#625:Output[N]] popFromStashAndRegister: output format changed to AMessage(what = 0x00000000) = { int32_t channel-count = 1 string mime = "audio/raw" int32_t sample-rate = 48000 int32_t channel-mask = 1 } 2023-12-26 09:32:28.340 222-222/? D/AudioFlinger: Client defaulted notificationFrames to 12254 for frameCount 24508 2023-12-26 09:32:28.344 222-222/? D/AF::TrackHandle: OpPlayAudio: track:520 usage:5 not muted 2023-12-26 09:32:28.354 202-1967/? D/AudioHardwareTiny: start_output_stream:975 out = 0xf07c4340,device = 0x2,outputs[OUTPUT_HDMI_MULTI] = 0x0 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: card0 id:rockchiprk809co 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: No exist proc/asound/card1/id, break and finish parsing 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: dump out device info 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: dev_info SPEAKER card=0, device:0 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: out->Device : 0x2 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: out->SampleRate : 44100 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: out->Channels : 2 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: out->Format : 0 2023-12-26 09:32:28.355 202-1967/? D/AudioHardwareTiny: out->PreiodSize : 512 2023-12-26 09:32:28.355 202-1967/? D/alsa_route: route_info->sound_card 0, route_info->devices 0
2023-12-26 09:32:28.355 405-12999/system_process I/system_server: oneway function results will be dropped but finished with status OK and parcel size 4 2023-12-26 09:32:28.355 202-1967/? D/alsa_route: route_set_controls() set route 0 2023-12-26 09:32:28.357 405-521/system_process I/system_server: oneway function results will be dropped but finished with status OK and parcel size 4 2023-12-26 09:32:28.372 202-1967/? D/AudioHardwareTiny: start_output_stream:1090, out = 0xf07c4340 2023-12-26 09:32:28.377 331-931/? D/AudioAnalytics: gc(400, 500): key size:400 2023-12-26 09:32:27.647 405-427/system_process I/chatty: uid=1000(system) android.anim identical 2 lines 2023-12-26 09:32:27.653 405-427/system_process V/WindowManager: Orientation start waiting for draw, mDrawState=DRAW_PENDING in Window{1f2f9ac u0 com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity}, surfaceController Surface(name=com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity)/@0x7e99e0f 2023-12-26 09:32:29.416 405-426/system_process W/WindowManager: App freeze timeout expired. 2023-12-26 09:32:29.416 405-426/system_process W/WindowManager: Force clearing freeze: ActivityRecord{6a7cc8c u0 com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity t536} 2023-12-26 09:32:29.416 405-426/system_process I/WindowManager: Screen frozen for +2s125ms due to ActivityRecord{6a7cc8c u0 com.companyname.mauiapp2/crc6452f1ea43b9adf718.MainActivity t536}

Steps to Reproduce

  1. Create any maui blazor project
  2. Run the project
  3. Plug in the USB device (such as printer, scanner)

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

.net 7.0

Affected platforms

Android

Affected platform versions

Android 11 , WebView 83.0.4103.120

Did you find any workaround?

No response

Relevant log output

No response

Eilon commented 11 months ago

Hi @ychangh , the Android System WebView looks quite old - can you try updating it from the Android/Google Play App Store?

ychangh commented 11 months ago

Hi @ychangh , the Android System WebView looks quite old - can you try updating it from the Android/Google Play App Store?

It should not be a problem with webview, because .net7 is working normally. I now use settings: ConfigurationChanges = ConfigChanges.Navigation | ConfigChanges.KeyboardHidden | ConfigChanges.Keyboard to avoid reloading

ninachen03 commented 9 months ago

I Created Maui Blazor project and Plug in the USB device(Samsung Galaxy S22(12) phones. Xiaomi (android version 11) and Google Pixel 6a(12)phones) , but the issue couldn't be reproduced on 17.10 Preview 1