f***@proton.me
f***@proton.me
  • 发布:2025-05-13 16:06
  • 更新:2025-05-13 16:06
  • 阅读:34

【报Bug】部分低端机型在打开应用时无法正常加载进入首页,会卡在启动图页面

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10 64位

HBuilderX类型: 正式

HBuilderX版本号: 4.54

手机系统: Android

手机系统版本号: Android 11

手机厂商: 小辣椒

手机机型: 小辣椒DE30

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

以下是打开软件时adb的logcat日志


05-13 16:03:49.071   879  1321 I ActivityTaskManager: ->startActivity for ActivityRecord{f088090 u0 com.fengsheng.yd/io.dcloud.PandoraEntry t824} result:START_SUCCESS  
05-13 16:03:49.081 17893  8149 E Launcher.Log: Launcher.Launch>>AppUsagesModel: >> UsageInfo{id=-1, mComponentName='com.fengsheng.yd/io.dcloud.PandoraEntry', mVersionCode='110091', mVersionName='11.91.2', mAppTitle='涓扮洓鏈夐亾', mLaunchTimes=0, mLaunchLastestTime=0}  
05-13 16:03:49.101   879   910 I ActivityManager: Start proc 8680:com.fengsheng.yd/u0a200 for pre-top-activity {com.fengsheng.yd/io.dcloud.PandoraEntry}  
05-13 16:03:49.115   879  1321 D WindowManager:  update app focus from ActivityRecord{6c3bdad u0 com.freeme.launcher/com.android.launcher3.uioverrides.QuickstepLauncher t750} to ActivityRecord{f088090 u0 com.fengsheng.yd/io.dcloud.PandoraEntry t824}  
05-13 16:03:49.116   480   480 D vendor.unisoc.hardware.power-service: Enter getSceneIdByName: sceneName:com.fengsheng.yd  
05-13 16:03:49.122   468   531 I gralloc4: allocate: id=1d4000010f3, hal_format=RGBA8888, mali_format=RGBA8888, afbc=false, usage=CPU_RW|GPU_R|HWC, size=720x1600, stride=720, name=Splash Screen com.fengsheng.yd#0  
05-13 16:03:49.159  8680  8680 I DeviceInfo: sPackageName=com.fengsheng.yd;  
05-13 16:03:49.167  8680  8680 I TetheringManager: registerTetheringEventCallback:com.fengsheng.yd  
05-13 16:03:49.178  8680  8680 I DeviceInfo: sPackageName=com.fengsheng.yd;  
05-13 16:03:49.178  8680  8680 I DeviceInfo: sBaseFsRootPath=/storage/emulated/0/Android/data/com.fengsheng.yd/;  
05-13 16:03:49.178  8680  8680 I DeviceInfo: sBaseFsRootFullPath=file:///storage/emulated/0/Android/data/com.fengsheng.yd/;  
05-13 16:03:49.178  8680  8680 I DCloud_LOG: createNewFile 0:/storage/emulated/0/Android/data/com.fengsheng.yd/apps/  
05-13 16:03:49.178  8680  8680 I DCloud_LOG: createNewFile 0:/storage/emulated/0/Android/data/com.fengsheng.yd/sitemap/  
05-13 16:03:49.268  8680  8680 I chatty  : uid=10200(com.fengsheng.yd) identical 2 lines  
05-13 16:03:49.293  8680  8702 E WXParams: setCrashFilePath: /data/user/0/com.fengsheng.yd/app_crash  
05-13 16:03:49.293  8680  8702 E weex    : weexjss's Path is/data/app/~~e66Gtp0Jj4CPxpUkKKVXSQ==/com.fengsheng.yd-DxQr5a7sCCSTscYbEWZsEQ==/lib/arm64/libweexjss.so  
05-13 16:03:49.296  8680  8702 E weex    : getLibJsbPath is running /data/user/0/com.fengsheng.yd/cache/cache/weex/libs/weexjsb/arm64-v8a/libweexjsb.so  
05-13 16:03:49.296  8680  8702 E weex    : getLibLdPath is running /data/app/~~e66Gtp0Jj4CPxpUkKKVXSQ==/com.fengsheng.yd-DxQr5a7sCCSTscYbEWZsEQ==/lib/arm64:/data/app/~~e66Gtp0Jj4CPxpUkKKVXSQ==/com.fengsheng.yd-DxQr5a7sCCSTscYbEWZsEQ==/base.apk!/lib/arm64-v8a  
05-13 16:03:49.303  8713  8713 W WeexJSBridgeThr: type=1400 audit(0.0:379053): avc: denied { setattr } for name="libweexjsb.so" dev="mmcblk0p76" ino=29540 scontext=u:r:untrusted_app_27:s0:c200,c256,c512,c768 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0 app=com.fengsheng.yd  
05-13 16:03:49.314   879  1321 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.fengsheng.yd/io.dcloud.PandoraEntryActivity bnds=[360,860][526,1059] (has extras)} from uid 10200, pid 8680  
05-13 16:03:49.318   879  1321 I ActivityTaskManager: ->startActivity for ActivityRecord{6f4aaa2 u0 com.fengsheng.yd/io.dcloud.PandoraEntryActivity t824} result:START_SUCCESS  
05-13 16:03:49.303  8713  8713 W WeexJSBridgeThr: type=1400 audit(0.0:379054): avc: denied { setattr } for name="libweexjsb.so" dev="mmcblk0p76" ino=29540 scontext=u:r:untrusted_app_27:s0:c200,c256,c512,c768 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0 app=com.fengsheng.yd  
05-13 16:03:49.336   468   531 I gralloc4: allocate: id=1d4000010f4, hal_format=RGBA8888, mali_format=RGBA8888, afbc=false, usage=CPU_RW|GPU_R|HWC, size=720x1600, stride=720, name=Splash Screen com.fengsheng.yd#0  
05-13 16:03:49.394   879  1900 I WindowManager: Input focus has changed to Window{8294408 u0 com.fengsheng.yd/io.dcloud.PandoraEntry}  
05-13 16:03:49.395   879   903 D WindowManager: update input focus to Window{8294408 u0 com.fengsheng.yd/io.dcloud.PandoraEntry} , run:true  
05-13 16:03:49.413   468   531 I gralloc4: allocate: id=1d4000010f5, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntry#0  
05-13 16:03:49.414   468   531 I gralloc4: allocate: id=1d4000010f6, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntry#0  
05-13 16:03:49.416   512   512 I SurfaceFlinger: SF-Update,layer=com.fengsheng.yd/io.dcloud.PandoraEntry#0,name=Window{8294408 u0 com.fengsheng.yd/io.dcloud.PandoraEntry},token=0xb400007a012edbc0,id=7103 dirty=1,inputChanged=0,syncInput=0,visible=0,paused=0,portal=-1,param=0x81810120,feature=0x0  
05-13 16:03:49.416   468   531 I gralloc4: allocate: id=1d4000010f7, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntry#0  
05-13 16:03:49.455   879  1973 D WindowManager:  update app focus from ActivityRecord{f088090 u0 com.fengsheng.yd/io.dcloud.PandoraEntry t824} to ActivityRecord{6f4aaa2 u0 com.fengsheng.yd/io.dcloud.PandoraEntryActivity t824}  
05-13 16:03:49.468   879  1900 I InputDispatcher: Focus entered window: Window{8294408 u0 com.fengsheng.yd/io.dcloud.PandoraEntry} in display 0  
05-13 16:03:49.481   879  1900 I InputDispatcher: Focus left window: Window{8294408 u0 com.fengsheng.yd/io.dcloud.PandoraEntry} in display 0  
05-13 16:03:49.547  8680  8680 I WebAppActivity: onCreateSplash;intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.fengsheng.yd/io.dcloud.PandoraEntryActivity bnds=[360,860][526,1059] (has extras) }  
05-13 16:03:49.654   879  1321 D Atlas   : [PermissionManager] { reqUid: 10200, reqPkg: com.fengsheng.yd, reqPid: 8680, dstUid: 10153, dstPkg: com.android.webview, type: BIND_SERVICE, time: 11015, grant: true, used: true }  
05-13 16:03:49.657   879  1321 D Atlas   : [PermissionManager] { reqUid: 10200, reqPkg: com.fengsheng.yd, reqPid: 8680, dstUid: 10153, dstPkg: com.android.webview, type: BIND_SERVICE, time: 11017, grant: true, used: true }  
05-13 16:03:49.667   879   910 I ActivityManager: Start proc 8764:com.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0/u0i53 for  {com.fengsheng.yd/org.chromium.content.app.SandboxedProcessService0:0}  
05-13 16:03:49.684   879   909 W BroadcastQueue: Permission Denial: broadcasting Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) } from null (pid=-1, uid=-1) requires huawei.permission.CLICK_STATUSBAR_BROADCAST due to registered receiver BroadcastFilter{21605f1 10200/u0 ReceiverList{fc53998 8680 com.fengsheng.yd/10200/u0 remote:ffde77b}}  
05-13 16:03:49.711  8680  8680 E DCloud_LOG: channel:com.fengsheng.yd|__UNI__4ED7732|125240180603|common;ver:1.9.9.82370;max:3;trim:0;dg:false  
05-13 16:03:49.724   879  1973 D ConnectivityService: requestNetwork for uid/pid:10200/8680 NetworkRequest [ TRACK_DEFAULT id=445, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ]  
05-13 16:03:49.725   879  1160 D ConnectivityService: sending new Min Network Score(60): NetworkRequest [ TRACK_DEFAULT id=445, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ]  
05-13 16:03:49.725   879  1199 D Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=445, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:49.725   879  1153 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=445, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:49.725   879  1153 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=445, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:49.725  1214  1214 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=445, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:49.735   879  1900 I WindowManager: Input focus has changed to Window{41d7a77 u0 com.fengsheng.yd/io.dcloud.PandoraEntryActivity}  
05-13 16:03:49.736   879   903 D WindowManager: update input focus to Window{41d7a77 u0 com.fengsheng.yd/io.dcloud.PandoraEntryActivity} , run:true  
05-13 16:03:49.739   468   531 I gralloc4: allocate: id=1d4000010f8, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0  
05-13 16:03:49.740   468   531 I gralloc4: allocate: id=1d4000010f9, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0  
05-13 16:03:49.742   468   531 I gralloc4: allocate: id=1d4000010fa, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0  
05-13 16:03:49.762   512   512 I SurfaceFlinger: SF-Update,layer=com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0,name=Window{41d7a77 u0 com.fengsheng.yd/io.dcloud.PandoraEntryActivity},token=0xb400007a012ec460,id=7109 dirty=1,inputChanged=0,syncInput=0,visible=0,paused=0,portal=-1,param=0x81810120,feature=0x0  
05-13 16:03:49.795   879  1973 I InputDispatcher: Focus entered window: Window{41d7a77 u0 com.fengsheng.yd/io.dcloud.PandoraEntryActivity} in display 0  
05-13 16:03:49.821   512   552 E BufferQueueProducer: [com.fengsheng.yd/io.dcloud.PandoraEntry#0](id:2000000044e,api:0,p:-1,c:512) disconnect: not connected (req=1)  
05-13 16:03:49.851   512   552 E BufferQueueProducer: [com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0](id:2000000044f,api:0,p:-1,c:512) disconnect: not connected (req=1)  
05-13 16:03:49.853   468   531 I gralloc4: allocate: id=1d4000010fb, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0  
05-13 16:03:49.928   468   531 I gralloc4: allocate: id=1d4000010fc, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0  
05-13 16:03:49.944   468   531 I gralloc4: allocate: id=1d4000010fd, hal_format=RGBA8888, mali_format=RGBA8888, afbc=SPLIT, usage=GPU_RW|HWC|BACKBUF, size=720x1600, stride=720, name=com.fengsheng.yd/io.dcloud.PandoraEntryActivity#0  
05-13 16:03:50.301   879  1232 D ConnectivityService: requestNetwork for uid/pid:10200/8680 NetworkRequest [ TRACK_DEFAULT id=447, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ]  
05-13 16:03:50.302   879  1160 D ConnectivityService: sending new Min Network Score(60): NetworkRequest [ TRACK_DEFAULT id=447, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ]  
05-13 16:03:50.302   879  1199 D Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=447, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:50.302   879  1153 D WifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=447, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:50.302   879  1153 D UntrustedWifiNetworkFactory: got request NetworkRequest [ TRACK_DEFAULT id=447, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:50.302  1214  1214 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=447, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Uid: 10200 AdministratorUids: [] RequestorUid: 10200 RequestorPackageName: com.fengsheng.yd] ] with score 60 and providerId 5  
05-13 16:03:51.148  8680  8694 I chatty  : uid=10200(com.fengsheng.yd) FinalizerDaemon identical 2 lines  
05-13 16:03:54.865  8680  8837 D ProfileInstaller: Installing profile for com.fengsheng.yd```

操作步骤:

使用以上机型打开已经打包好的应用apk,无法正常启动应用

预期结果:

正常进入首页

实际结果:

卡在启动图页面无法进入首页

bug描述:

应用在打包完成后,大部分机型可以正常使用,但是在部分低端机型中会卡在启动图页面无法进入首页,经过log日志捕捉确定是因SELinux权限限制和WebView兼容性导致的启动问题。目前出现问题的机型包括小辣椒DE30(安卓版本11),荣耀20pro(安卓版本10),荣耀x50(安卓版本14)等。经过小辣椒DE30的真机调试,发现项目也无法正常进入页面,会卡在Hbuilder的logo部分无法正常进入,但是控制台打印日志已经到达app show的阶段。

2025-05-13 16:06 负责人:无 分享
已邀请:

要回复问题请先登录注册