【发布时间】:2018-10-20 17:01:17
【问题描述】:
最近我在不同的地方经历了几次崩溃,至今无法重现。
[附加信息:它似乎只在 DEBUG 模式下发生]
我在 Windows 10 上运行。
我的应用程序使用 WebView,这也会导致许多日志条目,例如:
W/zygote (30629): Attempt to remove non-JNI local reference, dumping thread
通常,崩溃发生在以下操作过程之后:
- Facebook 身份验证(使用 WebView)
- 与我的服务器通信的对话框
- 弹出对话框
- new Future.delayed(1 seconds) [我放这个是为了确保上一个对话框的弹出是完整的]
- Navigator.of(context).pushReplacement(new MaterialPageRoute(...))
崩溃记录如下:
F/libc (30629): Fatal signal 31 (SIGSYS), code 1 in tid 30659 (1.ui), pid 30629 (mobiletest)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.007/4586646:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 30629, tid: 30659, name: 1.ui >>> com.site.mobiletest <<<
signal 31 (SIGSYS), code 1 (SYS_SECCOMP), fault addr --------
Cause: seccomp prevented call to disallowed x86 system call 7
eax 00000007 ebx 00007888 ecx ab4c9b94 edx 40000000
esi 00007888 edi 00000000
xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b
eip 97da2289 ebp ab4c9ba8 esp ab4c9b2c flags 00000282
backtrace:
#00 pc 03fcf289 /system/app/Chrome/Chrome.apk (offset 0xa2f000)
#01 pc 03fcedc9 /system/app/Chrome/Chrome.apk (offset 0xa2f000)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.007/4586646:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 30856, tid: 30856, name: 1.ui >>> com.site.mobiletest <<<
signal 31 (SIGSYS), code 1 (SYS_SECCOMP), fault addr --------
Cause: seccomp prevented call to disallowed x86 system call 7
eax 00000007 ebx 000077a5 ecx 00000000 edx 40000000
esi 000077a5 edi 00000000
xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b
eip 97da5c87 ebp ab63a998 esp ab63a92c flags 00000246
backtrace:
#00 pc 03fd2c87 /system/app/Chrome/Chrome.apk (offset 0xa2f000)
#01 pc 03fcfb77 /system/app/Chrome/Chrome.apk (offset 0xa2f000)
#02 pc ffff0021 <unknown>
Lost connection to device.
Exited (sigterm)
这是flutter -doctor的输出:
[√] Flutter (Channel beta, v0.3.2, on Microsoft Windows [Version 10.0.16299.371], locale en-US)
• Flutter version 0.3.2 at d:\flutter
• Framework revision 44b7e7d3f4 (3 weeks ago), 2018-04-20 01:02:44 -0700
• Engine revision 09d05a3891
• Dart version 2.0.0-dev.48.0.flutter-fe606f890b
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\boeledi\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 24.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 64-bit edition (version 1.23.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Dart Code extension version 2.12.1
[√] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• No issues found!
Last cmets(我不知道这是否相关):
自从我将 Flutter 升级到 0.3.2 版后,我在使用 Visual Studio Code 的 Hot Reload 时也遇到了很多问题(使用 Android Studio,问题更少)。 热重载未完成...我必须手动停止/重新启动应用程序。
非常感谢您的帮助。
【问题讨论】:
-
应该有更新的测试版。最近通过开发频道为我改进了热重载
-
当前的 0.3.2 版本会不会是导致崩溃的原因?因为,这次崩溃极大地减缓了我的发展。很多时候,模拟器在导航器中发生变化时会冻结(例如,新的 MaterialPageRoute 可能会在视口中间停止并且模拟器不再响应......)
-
最近几周我在开发频道遇到了如此热的重新加载问题,但几天前又恢复了稳定,所以这个版本可能也有这个问题。
标签: flutter