Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error and crash reporting #1367

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

ggichure
Copy link
Collaborator

@ggichure ggichure commented May 15, 2024

Pull Request Description

This PR introduces error handling capabilities to the application, enabling the detection and reporting of errors. Leveraging the catcher_2 package, crashes are logged silently to a logs.txt file. Additionally, users can conveniently access and copy log data via the "Settings > Debug" section of the application.

sample logs

============================== CATCHER 2 LOG ==============================
Crash occurred on 2024-05-15 19:02:41.338115

------- DEVICE INFO -------
id: 
board: 
bootloader: 
brand: 
device: 
display: 
fingerprint:
hardware: qcom
host: 
isPhysicalDevice: true
manufacturer: 
model: 
product: spes_global
tags: release-keys
type: user
versionBaseOs: 
versionCodename: REL
versionIncremental: 1692578867
versionPreviewSdk: 0
versionRelease: 13
versionSdk: 33
versionSecurityPatch: 2023-08-05

------- APP INFO -------
environment: debug
version: 0.4.0-2
appName: Thunder
buildNumber: 53
packageName: com.hjiangsu.thunder.dev

---------- ERROR ----------
HttpException: Invalid statusCode: 400, uri = https://feddit.de/pictrs/image/A3hLXXRbsY.png?

------- STACK TRACE -------
---------- ERROR ----------
Exception: Invalid image data

------- STACK TRACE -------
#0      _futurize (dart:ui/painting.dart:6966:5)
#1      ImageDescriptor.encoded (dart:ui/painting.dart:6775:12)
#2      instantiateImageCodecWithSize (dart:ui/painting.dart:2287:60)
#3      PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:141:15)
#4      ImageLoader.loadImageAsync.<anonymous closure> (package:cached_network_image/src/image_provider/_image_loader.dart:65:22)
<asynchronous suspension>
#5      ImageLoader._load (package:cached_network_image/src/image_provider/_image_loader.dart:124:27)
<asynchronous suspension>
#6      new MultiImageStreamCompleter.<anonymous closure> (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:26:7)
<asynchronous suspension>

Issue Being Fixed

Issue Number: #340

Screenshots / Recordings

Screenshot_20240515-200628_Thunder
Screenshot_20240516-073649_Thunder

Checklist

  • Did you update CHANGELOG.md?
  • Did you use localized strings where applicable?
  • Did you add semanticLabels where applicable for accessibility?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant