Closed atavism closed 7 months ago
Fixes the following crash on desktop after merging https://github.com/getlantern/lantern-client/pull/1062
flutter: [2024-05-01 16:09:47.022011 | Catcher 2 | INFO] ============================== CATCHER 2 LOG ============================== flutter: [2024-05-01 16:09:47.022106 | Catcher 2 | INFO] Crash occurred on 2024-05-01 16:09:47.020733 flutter: [2024-05-01 16:09:47.022166 | Catcher 2 | INFO] flutter: [2024-05-01 16:09:47.022289 | Catcher 2 | INFO] ------- DEVICE INFO ------- flutter: [2024-05-01 16:09:47.022443 | Catcher 2 | INFO] computerName: atavism's MacBook Air flutter: [2024-05-01 16:09:47.022475 | Catcher 2 | INFO] hostName: Darwin flutter: [2024-05-01 16:09:47.022529 | Catcher 2 | INFO] arch: arm64 flutter: [2024-05-01 16:09:47.022616 | Catcher 2 | INFO] model: Mac14,15 flutter: [2024-05-01 16:09:47.022640 | Catcher 2 | INFO] kernelVersion: Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 flutter: [2024-05-01 16:09:47.022791 | Catcher 2 | INFO] osRelease: Version 14.4.1 (Build 23E224) flutter: [2024-05-01 16:09:47.022832 | Catcher 2 | INFO] activeCPUs: 8 flutter: [2024-05-01 16:09:47.022860 | Catcher 2 | INFO] memorySize: 8589934592 flutter: [2024-05-01 16:09:47.022884 | Catcher 2 | INFO] cpuFrequency: 0 flutter: [2024-05-01 16:09:47.022923 | Catcher 2 | INFO] flutter: [2024-05-01 16:09:47.023160 | Catcher 2 | INFO] ------- APP INFO ------- flutter: [2024-05-01 16:09:47.023199 | Catcher 2 | INFO] environment: debug flutter: [2024-05-01 16:09:47.023220 | Catcher 2 | INFO] version: 1.0.0 flutter: [2024-05-01 16:09:47.023240 | Catcher 2 | INFO] appName: Lantern flutter: [2024-05-01 16:09:47.023259 | Catcher 2 | INFO] buildNumber: 1 flutter: [2024-05-01 16:09:47.023278 | Catcher 2 | INFO] packageName: org.getlantern.lantern flutter: [2024-05-01 16:09:47.023303 | Catcher 2 | INFO] flutter: [2024-05-01 16:09:47.023324 | Catcher 2 | INFO] ---------- ERROR ---------- flutter: [2024-05-01 16:09:47.023348 | Catcher 2 | INFO] LateInitializationError: Field 'methodChannel' has not been initialized. flutter: [2024-05-01 16:09:47.023369 | Catcher 2 | INFO] flutter: [2024-05-01 16:09:47.023595 | Catcher 2 | INFO] ------- STACK TRACE ------- flutter: [2024-05-01 16:09:47.023724 | Catcher 2 | INFO] #0 Model.methodChannel (package:lantern/common/model.dart) flutter: [2024-05-01 16:09:47.023748 | Catcher 2 | INFO] #1 SessionModel.enableScreenShot (package:lantern/common/session_model.dart:828:12) flutter: [2024-05-01 16:09:47.023770 | Catcher 2 | INFO] #2 new SessionModel (package:lantern/common/session_model.dart:73:5) flutter: [2024-05-01 16:09:47.023790 | Catcher 2 | INFO] #3 sessionModel (package:lantern/common/session_model.dart:10:22) flutter: [2024-05-01 16:09:47.023815 | Catcher 2 | INFO] #4 sessionModel (package:lantern/common/session_model.dart) flutter: [2024-05-01 16:09:47.023872 | Catcher 2 | INFO] #5 _LanternAppState.build.<anonymous closure> (package:lantern/app.dart:124:18) flutter: [2024-05-01 16:09:47.024037 | Catcher 2 | INFO] #6 _FutureBuilderState.build (package:flutter/src/widgets/async.dart:609:55) flutter: [2024-05-01 16:09:47.024149 | Catcher 2 | INFO] #7 StatefulElement.build (package:flutter/src/widgets/framework.dart:5592:27) flutter: [2024-05-01 16:09:47.024211 | Catcher 2 | INFO] #8 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5480:15) flutter: [2024-05-01 16:09:47.024239 | Catcher 2 | INFO] #9 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5643:11) flutter: [2024-05-01 16:09:47.024371 | Catcher 2 | INFO] #10 Element.rebuild (package:flutter/src/widgets/framework.dart:5196:7) flutter: [2024-05-01 16:09:47.024542 | Catcher 2 | INFO] #11 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2904:19) flutter: [2024-05-01 16:09:47.024577 | Catcher 2 | INFO] #12 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:989:21) flutter: [2024-05-01 16:09:47.024598 | Catcher 2 | INFO] #13 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:448:5) flutter: [2024-05-01 16:09:47.024618 | Catcher 2 | INFO] #14 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386:15) flutter: [2024-05-01 16:09:47.024638 | Catcher 2 | INFO] #15 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1311:9) flutter: [2024-05-01 16:09:47.024657 | Catcher 2 | INFO] #16 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1169:5) flutter: [2024-05-01 16:09:47.024676 | Catcher 2 | INFO] #17 _invoke (dart:ui/hooks.dart:312:13) flutter: [2024-05-01 16:09:47.024705 | Catcher 2 | INFO] #18 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:399:5) flutter: [2024-05-01 16:09:47.024730 | Catcher 2 | INFO] #19 _drawFrame (dart:ui/hooks.dart:283:31)
Fixes the following crash on desktop after merging https://github.com/getlantern/lantern-client/pull/1062