jhomlala / catcher

Flutter error catching & handling plugin. Handles and reports exceptions in your app!
Apache License 2.0
784 stars 175 forks source link

[BUG]Duplicate log output #271

Open hiperioncn opened 4 months ago

hiperioncn commented 4 months ago

Describe the bug I used the sample code https://github.com/jhomlala/catcher/blob/master/example/lib/update_config_example.dart to modify the config. I found that it was normal before modifying the config. After modifying the config file, the console Printing is repeated. Something like this:

` Crash occurred on 2024-04-15 16:55:24.421906 Crash occurred on 2024-04-15 16:55:24.421906 ------- DEVICE INFO ------- ------- DEVICE INFO ------- id: UP1A.231005.007 id: UP1A.231005.007 board: lahaina board: lahaina bootloader: G9910ZCS6FXA1 bootloader: G9910ZCS6FXA1 versionSdk: 34 versionSdk: 34 versionSecurityPatch: 2023-12-01 versionSecurityPatch: 2023-12-01

------- STACK TRACE ------- ------- STACK TRACE -------

0 Catcher.sendTestException (package:catcher/core/catcher.dart:716:5)

0 Catcher.sendTestException (package:catcher/core/catcher.dart:716:5)

. . .

24 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:429:7)

24 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:429:7)

25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262:31)

25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262:31)

Report result: true Report result: true `

To Reproduce click "Change Config" click "Generate error" Got Repeated log

Flutter doctor [✓] Flutter (Channel stable, 3.19.3, on macOS 14.4.1 23E224 darwin-x64, locale zh-Hans-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.88.0) [✓] Connected device (4 available) [✓] Network resources

• No issues found!

Catcher version

Smartphone (please complete the following information):