Closed kasipavankumar closed 2 years ago
Not possible to read external files directory
is just an info logging, not a bug, since the device does not have an external drive.
If yo are using the custom runZonedGuarded
approach, you cannot use the appRunner
callback to init your App, just go with runApp(const App());
after the Sentry SDK is init.
Platform:
IDE:
split-debug-info and obfuscate (Flutter Android or iOS) or CanvasKit (Flutter Web):
Platform installed with:
Output of the command `flutter doctor -v` below:
``` [???] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1645], locale en-IN) ??? Flutter version 2.10.3 at K:\Data\Flutter\flutter ??? Upstream repository https://github.com/flutter/flutter.git ??? Framework revision 7e9793dee1 (6 weeks ago), 2022-03-02 11:23:12 -0600 ??? Engine revision bd539267b4 ??? Dart version 2.16.1 ??? DevTools version 2.9.2 [???] Android toolchain - develop for Android devices (Android SDK version 31.0.0) ??? Android SDK at K:\Data\Android\SDK ??? Platform android-31, build-tools 31.0.0 ??? Java binary at: K:\Program Files\Android\Android Studio\jre\bin\java ??? Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) ??? All Android licenses accepted. [???] Chrome - develop for the web ??? Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [???] Android Studio (version 2021.1) ??? Android Studio at K:\Program Files\Android\Android Studio ??? Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter ??? Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart ??? Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) [???] VS Code (version 1.66.2) ??? VS Code at C:\Users\The version of the SDK (See pubspec.lock): 6.4.0
I have initialized Sentry using the
runZonedGuarded
approach and there are 3 messages (included in Actual Result section) logged to the console. Initialization roughly looks like as shown below:Steps to reproduce
With the aforementioned rough initialization and running the app in debug mode using
flutter run
, the issue can be reproduced.Solutions tried
Here are few things I have tried to verify that this issue occurs on any device:
AndroidManifest.xml
, still the same issue.permission_handler
package but to no avail.Actual result
Sentry does not catch any exceptions. Instead, it throws the following logs:
Expected result