sonicsunsky
sonicsunsky
  • 发布:2021-01-05 14:14
  • 更新:2021-10-15 13:56
  • 阅读:1348

uni-app 打包自定义调试基座/或者云打包之后出现死循环无法正常进入app,一直卡在启动界面感觉app在不断重启

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: big sur11.1

HBuilderX类型: 正式

HBuilderX版本号: 3.0.4

手机系统: Android

手机系统版本号: Android 11

手机厂商: 模拟器

手机机型: 默认

页面类型: vue

nvue编译模式: fast

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

uview-ui官方项目打自定义调试基座/或者云打包后在网易MuMu安卓模拟器中卡在启动页面感觉在不断重启并且一直打印初始的一些log日志

预期结果:

正常进入app首页

实际结果:

出现死循环无法正常进入app,卡在启动页面

bug描述:

最新macos,最新hbuilderx正式版,最新网易木木模拟器

uni-app 打包自定义调试基座/或者云打包之后出现死循环无法正常进入app,而且hbuilderx还会发生闪退现象;
app看上去一直在不断加载重启;

会报错例如
Error: [JS Framework] Failed to receiveTasks, instance (15) is not available;

reportJSException >>>> exception function:run raxApi, exception:JavaScript execute error!Uncaught TypeError: e.WeexPlus is not a constructor

打开小虫子调试模式后可以正常进入app;

标准运行基座也可以正常进入app;

自定义调试基座/或者云打包出现死循环打印app onLaunch/onShow生命周期里的log日志导致无法正常进入app;

运行到微信小程序模拟器上也会出现开始时多打印一次log日志的情况;

使用自有android证书传统打包,使用公共测试证书结果也是一样的;

打自定义调试基座或者云打包的时候都会出现hbuilderx闪退的问题;

页面类型为vue页面;

官方内置uview-ui模版运行自定义基座也有同样的问题,死循环不断重启打印一些log日志;

uview-ui官方项目运行日志如下:
20:48:36.840 项目 'uni-uview-demo' 开始编译...
20:48:37.783 编译器版本:3.0.5(v3)详见:https://ask.dcloud.net.cn/article/36599。
20:48:37.805 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
20:48:37.806 正在编译中...
20:49:02.650 DONE Build complete. Watching for changes...
20:49:02.694 项目 'uni-uview-demo' 编译成功。
20:49:03.045 正在建立手机连接...
20:49:03.345 手机端调试基座版本号为1.8.3,版本号相同,跳过基座更新
20:49:03.388 正在同步手机端程序文件...
20:49:04.777 同步手机端程序文件完成
20:49:05.156 正在启动自定义基座...
20:49:06.578 应用【uni-uview-demo】已启动...
20:49:08.754 onLaunch!!! at App.vue:8
20:49:08.779 onShow!!! at App.vue:19
20:49:19.833 onLaunch!!! at App.vue:8
20:49:19.892 onShow!!! at App.vue:19
20:49:30.514 onLaunch!!! at App.vue:8
20:49:30.570 onShow!!! at App.vue:19
20:49:41.582 onLaunch!!! at App.vue:8
20:49:41.618 onShow!!! at App.vue:19

个人项目运行日志如下:
13:57:24.826 项目 'uni-machine' 开始编译...
13:57:25.462 编译器版本:3.0.4(v3)详见:https://ask.dcloud.net.cn/article/36599。
13:57:25.469 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
13:57:25.469 正在编译中...
13:57:47.092  DONE  Build complete. Watching for changes...
13:57:47.092 项目 'uni-machine' 编译成功。
13:57:47.343 正在建立手机连接...
13:57:48.014 检测到自定义基座有更新,正在删除旧版本...
13:57:48.332 删除旧版自定义基座基座成功
13:57:48.376 正在安装手机端自定义基座...
13:57:50.252 Performing Push Install
13:57:50.274 /Projects/uni-machine/unpackage/debug/android_debug.apk: 1 file pushed. 14.4 MB/s (24949414 bytes in 1.657s)
13:57:50.295 pkg: /data/local/tmp/android_debug.apk
13:57:51.095 Success
13:57:51.592 正在同步手机端程序文件...
13:57:52.363 同步手机端程序文件完成
13:57:52.759 正在启动自定义基座...
13:57:54.192 应用【租客端】已启动...
13:57:54.238 Error: [JS Framework] Failed to receiveTasks, instance (1) is not available.
13:57:54.259 Error: [JS Framework] Failed to receiveTasks, instance (1) is not available.
13:57:54.280 1.8.3 at main.js:34
13:57:54.304 app onLaunch: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:15
13:57:54.326 app onShow: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:21
13:57:54.351 /getBanners at libs/request/interceptor.js:20
13:57:54.374 /homeinit at libs/request/interceptor.js:20
13:57:54.399 1.8.3 at main.js:34
13:57:54.421 app onLaunch: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:15
13:57:54.441 app onShow: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:21
13:57:54.463 /getBanners at libs/request/interceptor.js:20
13:57:54.484 /homeinit at libs/request/interceptor.js:20
13:57:54.505 1.8.3 at main.js:34
13:57:54.530 app onLaunch: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:15
13:57:54.550 app onShow: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:21
13:57:54.570 /getBanners at libs/request/interceptor.js:20
13:57:54.594 /homeinit at libs/request/interceptor.js:20
13:57:56.502 1.8.3 at main.js:34
13:57:56.595 app onLaunch: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:15
13:57:56.618 app onShow: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:21
13:57:57.116 /getBanners at libs/request/interceptor.js:20
13:57:57.214 /homeinit at libs/request/interceptor.js:20
13:57:59.843 1.8.3 at main.js:34
13:57:59.887 app onLaunch: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:15
13:57:59.911 app onShow: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:21
13:58:00.084 /getBanners at libs/request/interceptor.js:20
13:58:00.105 /homeinit at libs/request/interceptor.js:20
13:58:02.359 1.8.3 at main.js:34
13:58:02.408 app onLaunch: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:15
13:58:02.430 app onShow: , [Object] {"path":"pages/machine_home/machine_home","query":{},"scene":1001}  at App.vue:21
13:58:02.585 /getBanners at libs/request/interceptor.js:20
13:58:02.608 /homeinit at libs/request/interceptor.js:20

2021-01-05 14:14 负责人:DCloud_App_Array 分享
已邀请:
MonikaChen

MonikaChen

mumu模拟器也出现这个问题,界面操作十来次就闪白屏,调试都麻烦。。

sherpifer

sherpifer

同样遇到这个问题了,解决了吗??

  • MonikaChen

    打包自定义基座时勾选arm64后就没怎么闪退了

    2021-03-10 12:35

  • sherpifer

    回复 MonikaChen: 这样子,我试试;我是真机调试没问题,模拟器调试会疯狂重启

    2021-03-10 13:47

  • MonikaChen

    回复 sherpifer: 我也是模拟器几秒钟重启一下,打包arm64基座就没事

    2021-03-10 16:49

1***@163.com

1***@163.com

你好,请问解决了吗,雷电逍遥模拟器都会重启应用,试了很多种方法,arm64 这几个都试过了还是不行

要回复问题请先登录注册