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

Terminal spam with F/android.hardware.atrace@1.0-service(25128): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs #94652

Open
nikhilbadyal opened this issue Dec 4, 2021 · 11 comments
Labels
a: build Building flutter applications with the tool a: error message Error messages from the Flutter framework e: device-specific Only manifests on certain devices P3 Issues that are less important to the Flutter project platform-android Android applications specifically team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-android Triaged by Android platform team

Comments

@nikhilbadyal
Copy link

Whenever i try to run flutter application. It spams the whole terminal with these lines.
and it only happens when i use WIRELESS DEBUGGING.
Any fix or solution ?

F/android.hardware.atrace@1.0-service(25139): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25152): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25161): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25168): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25178): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25186): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25196): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25205): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25218): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25226): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25234): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25243): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25254): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(25261): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing.....
@maheshmnj maheshmnj added the in triage Presently being triaged by the triage team label Dec 6, 2021
@maheshmnj
Copy link
Member

HI @nikhilbadyal, please share your output of flutter doctor -v and the IDE in which you are seeing these logs, I ran the flutter counter app on the latest stable 2.5.3 on Android in debug mode with wireless debugging over adb, but I could not see those logs.

flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-arm, locale en-GB)
    • Flutter version 2.5.3 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (7 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.61.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • 192.168.1.4:5555 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.0.1 21A559 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 96.0.4664.55

• No issues found!
logs
Launching lib/main.dart on Redmi K20 Pro in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
W/FlutterActivityAndFragmentDelegate(32654): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Connecting to VM Service at ws://127.0.0.1:56893/p93dhDdpoN4=/ws
I/m.example.hell(32654): ProcessProfilingInfo new_methods=461 is saved saved_to_disk=1 resolve_classes_delay=8000

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 6, 2021
@nikhilbadyal
Copy link
Author

nikhilbadyal commented Dec 6, 2021

Here is the relevant data you asked for

flutter doctor -v
[✓] Flutter (Channel master, 2.6.0-12.0.pre.924, on Microsoft Windows [Version 10.0.19043.1348], locale en-IN)
    • Flutter version 2.6.0-12.0.pre.924 at -----
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eb221c4544 (24 hours ago), 2021-12-05 11:49:04 -0500
    • Engine revision 68d320d449
    • Dart version 2.16.0 (build 2.16.0-80.0.dev)
    • DevTools version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at --
    • Platform android-31, build-tools 31.0.0
    • ANDROID_SDK_ROOT = ---
    • Java binary at: ---
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[✗] Visual Studio - develop for Windows
    ✗ 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 ----
    • 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)

[✓] Connected device (2 available)
    • My Device name • android-arm64 • Android 12 (API 31)
    • My desktop 
 Doctor found issues in 1 category.
flutter run -v
[  +90 ms] executing: [-----flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +80 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] eb221c45440bd4fa56a5e3d0f398c38b139c1985
[        ] executing: [----\flutter/] git tag --points-at eb221c45440bd4fa56a5e3d0f398c38b139c1985
[  +53 ms] Exit code 0 from: git tag --points-at eb221c45440bd4fa56a5e3d0f398c38b139c1985
[   +2 ms] executing: [------flutter/] git describe --match *.*.* --long --tags
eb221c45440bd4fa56a5e3d0f398c38b139c1985
[  +89 ms] Exit code 0 from: git describe --match *.*.* --long --tags eb221c45440bd4fa56a5e3d0f398c38b139c1985
[        ] 2.6.0-11.0.pre-924-geb221c4544
[  +11 ms] executing: [-----\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [------\flutter/] git ls-remote --get-url origin
[  +34 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +128 ms] executing: [-------\flutter/] git rev-parse --abbrev-ref HEAD
[  +43 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[ +103 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +79 ms] executing: -----\Android\android-sdk\platform-tools\adb.exe devices -l
[  +46 ms] List of devices attached
           Ip      My device  transport_id:1
[   +8 ms] -------\Android\android-sdk\platform-tools\adb.exe -s 192.168.0.101:5555 shell getprop
[ +152 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +32 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +167 ms] Skipping pub get: version match.
[  +38 ms] Found plugin cloud_firestore .......

-------\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +60 ms] ro.hardware = qcom
[  +55 ms] Initializing file store
[  +13 ms] Skipping target: gen_localizations
[   +6 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have
updated contents: ------.dart_tool\package_config_subset}
[  +22 ms] Found plugin cloud_firestore at
---\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-3.1.1\
[  +17 ms] gen_dart_plugin_registrant: Complete
[   +2 ms] _composite: Starting due to {}
[        ] _composite: Complete
[   +4 ms] complete
[  +11 ms] Launching lib\main.dart on My Device  in debug mode...
[  +10 ms] ------\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
-----\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
------flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter
--debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
------\AppData\Local\Temp\flutter_tools.59575243\flutter_tool.66bcd1a2\app.dill --packages
----\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false
--enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --flutter-widget-cache
--enable-experiment=alternative-invalidation-strategy
[  +53 ms] executing: ----\Android\android-sdk\platform-tools\adb.exe -s IP Address shell -x logcat
-v time -t 1
[  +19 ms] <- compile file:///------/.dart_tool/flutter_build/generated_main.dart
[ +178 ms] --------- beginning of main
                    12-06 21:52:15.758 I/GoogleInputMethodService( 6984):
                    GoogleInputMethodService.updateDeviceLockedStatus():2181 checkRepeatedly = true, unlocked = false
[  +13 ms] executing: ----\Android\android-sdk\platform-tools\adb.exe version
[  +48 ms] Android Debug Bridge version 1.0.41
           Version 31.0.3-7562133
           Installed as ------\Android\android-sdk\platform-tools\adb.exe
[   +2 ms] executing: --------\Android\android-sdk\platform-tools\adb.exe start-server
[  +24 ms] Building APK
[  +23 ms] Running Gradle task 'assembleDebug'...
[   +8 ms] Using gradle from ------\android\gradlew.bat.
[  +12 ms] executing:-------\Android\android-studio\jre\bin\java -version
[ +152 ms] Exit code 0 from: ------\Android\android-studio\jre\bin\java -version
[        ] openjdk version "11.0.11" 2021-04-20
           OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
           OpenJDK 64-Bit Server VM (build 11.0.11+9-b60-7590822, mixed mode)
[   +2 ms] executing: [-------\android/] -----\android\gradlew.bat
-Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=------\lib\main.dart
-Pbase-application-name=android.app.Application -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==
-Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root
assembleDebug
[+1544 ms] Starting a Gradle Daemon, 1 busy and 3 stopped Daemons could not be reused, use --status for details
[+1899 ms] F/android.hardware.atrace@1.0-service(24277): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+5015 ms] F/android.hardware.atrace@1.0-service(24307): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+5017 ms] F/android.hardware.atrace@1.0-service(24314): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+5006 ms] F/android.hardware.atrace@1.0-service(24324): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+5017 ms] F/android.hardware.atrace@1.0-service(24332): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+5015 ms] F/android.hardware.atrace@1.0-service(24344): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+4998 ms] F/android.hardware.atrace@1.0-service(24354): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+5028 ms] F/android.hardware.atrace@1.0-service(24378): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
[+4994 ms] F/android.hardware.atrace@1.0-service(24391): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0
tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing......

.. And the spam goes on

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 6, 2021
@maheshmnj
Copy link
Member

maheshmnj commented Dec 7, 2021

@nikhilbadyal I ran a newly created flutter project on the master channel in Android studio and vscode but did not see those logs. Are you seeing those logs with a specific project or a newly created project too?

flutter doctor -v
[√] Flutter (Channel master, 2.6.0-12.0.pre.885, on Microsoft Windows [Version 10.0.19042.1348], locale
    en-US)
    • Flutter version 2.6.0-12.0.pre.885 at C:\flutter_sdk\master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 16ec56ee0f (5 days ago), 2021-12-02 02:49:05 -0500
    • Engine revision 888f4c0fc6
    • Dart version 2.16.0 (build 2.16.0-56.0.dev)
    • DevTools version 2.8.0

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)    
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)        
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)      
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\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.10+0-b96-7249189)        

[√] VS Code (version 1.61.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.29.0

[√] Connected device (4 available)
    • Redmi K20 Pro (mobile) • 192.168.1.5:5555 • android-arm64  • Android 11 (API 30)
    • Windows (desktop)      • windows          • windows-x64    • Microsoft Windows [Version
      10.0.19042.1348]
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 96.0.4664.45
    • Edge (web)             • edge             • web-javascript • Microsoft Edge 95.0.1020.44

• No issues found!

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 7, 2021
@nikhilbadyal
Copy link
Author

It happens with new created projects too.

Running Gradle task 'assembleDebug'...
F/android.hardware.atrace@1.0-service(29161): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(29169): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(29176): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(29289): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(29308): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 7, 2021
@maheshmnj
Copy link
Member

@nikhilbadyal I can't really reproduce the issue.

and it only happens when i use WIRELESS DEBUGGING.

Is this using adb via the command line? Are you seeing these logs when running via android studio or from the command prompt?

flutter doctor -v
[√] Flutter (Channel master, 2.6.0-12.0.pre.885, on Microsoft Windows [Version 10.0.19042.1348], locale    
    en-US)
    • Flutter version 2.6.0-12.0.pre.885 at C:\flutter_sdk\master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 16ec56ee0f (6 days ago), 2021-12-02 02:49:05 -0500
    • Engine revision 888f4c0fc6
    • Dart version 2.16.0 (build 2.16.0-56.0.dev)
    • DevTools version 2.8.0

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\mahesh\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java      
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)    
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.4)      
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31727.386
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\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.10+0-b96-7249189)

[√] VS Code (version 1.61.2)
    • VS Code at C:\Users\mahesh\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.29.0

[√] Connected device (4 available)
    • Redmi K20 Pro (mobile) • 192.168.1.5:5555 • android-arm64  • Android 11 (API 30)
    • Windows (desktop)      • windows          • windows-x64    • Microsoft Windows [Version
      10.0.19042.1348]
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 96.0.4664.45
    • Edge (web)             • edge             • web-javascript • Microsoft Edge 95.0.1020.44

• No issues found!
logs
Launching lib\main.dart on Redmi K20 Pro in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:52202/mc81AknJ7yI=/ws
I/flutter (14728): Use Image Info Query? true
I/flutter (14728): 404 code w/162 bytes
I/ple.hello_worl(14728): ProcessProfilingInfo new_methods=975 is saved saved_to_disk=1 resolve_classes_delay=8000

@maheshmnj maheshmnj added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 8, 2021
@nikhilbadyal
Copy link
Author

nikhilbadyal commented Dec 8, 2021

It shouldn't matter ig. But as you asked it happens everytime. Whether i run from AS by pressing the debug icon or using simple windows cmd

The command i use to connect my device is

adb connect myIPAddress

Log with plain old windows CMD
D:\Folder_Path>flutter run
Launching lib\main.dart on My Device name in debug mode...
F/android.hardware.atrace@1.0-service(29709): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
Running Gradle task 'assembleDebug'...                                 /Terminate batch job (Y/N)? y
By pressing the debug button in Android Studio/summary>
Launching lib\main.dart on My Device Name in debug mode...
Running Gradle task 'assembleDebug'...
F/android.hardware.atrace@1.0-service(31834): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 8, 2021
@maheshmnj
Copy link
Member

Thanks for the info

@maheshmnj maheshmnj added a: error message Error messages from the Flutter framework passed first triage tool Affects the "flutter" command-line tool. See also t: labels. platform-android Android applications specifically a: build Building flutter applications with the tool and removed in triage Presently being triaged by the triage team labels Dec 8, 2021
@Jayasubin
Copy link

In my case, this problem arises even when debugging via USB.
(It started when connected to wireless debugging though);

[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1566], locale en-US)
• Flutter version 2.10.3 at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision https://github.com/flutter/flutter/commit/7e9793dee1b85a243edd0e06cb1658e98b077561 (6 days 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 32.1.0-rc1)
• Android SDK at C:\Users\jayas\AppData\Local\Android\sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: C:\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\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.0)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.1.32210.238
• Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.1)
• Android Studio at C:\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.64.2)
• VS Code at C:\Users\jayas\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.34.0

[√] Connected device (4 available)
• Redmi Note 5 Pro (mobile) • 47f185b6 • android-arm64 • Android 12 (API 31)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19044.1566]
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102
• Edge (web) • edge • web-javascript • Microsoft Edge 98.0.1108.62

[√] HTTP Host Availability
• All required HTTP hosts are available

• No issues found!

log while debugging over wi-fi

Launching lib\main.dart on Redmi Note 5 Pro in debug mode...
Running Gradle task 'assembleDebug'...
F/android.hardware.atrace@1.0-service(22720): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(22731): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
√ Built build\app\outputs\flutter-apk\app-debug.apk.
F/android.hardware.atrace@1.0-service(22820): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
Debug service listening on ws://127.0.0.1:50107/gfjJHblwHcs=/ws
Syncing files to device Redmi Note 5 Pro...

log while debugging via USB

Launching lib\main.dart on Redmi Note 5 Pro in debug mode... Running Gradle task 'assembleDebug'... √ Built build\app\outputs\flutter-apk\app-debug.apk. F/android.hardware.atrace@1.0-service(23543): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing Debug service listening on ws://127.0.0.1:50500/B5HIz-eapb4=/ws Syncing files to device Redmi Note 5 Pro... F/android.hardware.atrace@1.0-service(23638): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing I/Gralloc4(23580): mapper 4.x is not supported W/Gralloc3(23580): mapper 3.x is not supported W/Gralloc4(23580): allocator 4.x is not supported W/Gralloc3(23580): allocator 3.x is not supported I/Gralloc2(23580): Adding additional valid usage bits: 0x202000

@buildbro
Copy link

In my case, this problem arises even when debugging via USB. (It started when connected to wireless debugging though);

[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1566], locale en-US)
• Flutter version 2.10.3 at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision https://github.com/flutter/flutter/commit/7e9793dee1b85a243edd0e06cb1658e98b077561 (6 days 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 32.1.0-rc1)
• Android SDK at C:\Users\jayas\AppData\Local\Android\sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: C:\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\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.0)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.1.32210.238
• Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.1)
• Android Studio at C:\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.64.2)
• VS Code at C:\Users\jayas\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.34.0

[√] Connected device (4 available)
• Redmi Note 5 Pro (mobile) • 47f185b6 • android-arm64 • Android 12 (API 31)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19044.1566]
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102
• Edge (web) • edge • web-javascript • Microsoft Edge 98.0.1108.62

[√] HTTP Host Availability
• All required HTTP hosts are available

• No issues found!

log while debugging over wi-fi

Launching lib\main.dart on Redmi Note 5 Pro in debug mode...
Running Gradle task 'assembleDebug'...
F/android.hardware.atrace@1.0-service(22720): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
F/android.hardware.atrace@1.0-service(22731): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
√ Built build\app\outputs\flutter-apk\app-debug.apk.
F/android.hardware.atrace@1.0-service(22820): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing
Debug service listening on ws://127.0.0.1:50107/gfjJHblwHcs=/ws
Syncing files to device Redmi Note 5 Pro...

log while debugging via USB

Launching lib\main.dart on Redmi Note 5 Pro in debug mode... Running Gradle task 'assembleDebug'... √ Built build\app\outputs\flutter-apk\app-debug.apk. F/android.hardware.atrace@1.0-service(23543): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing Debug service listening on ws://127.0.0.1:50500/B5HIz-eapb4=/ws Syncing files to device Redmi Note 5 Pro... F/android.hardware.atrace@1.0-service(23638): Check failed: stat(tracefs_event_root_.c_str(), &st) == 0 tracefs must be mounted at either/sys/kernel/tracing or /sys/kernel/debug/tracing I/Gralloc4(23580): mapper 4.x is not supported W/Gralloc3(23580): mapper 3.x is not supported W/Gralloc4(23580): allocator 4.x is not supported W/Gralloc3(23580): allocator 3.x is not supported I/Gralloc2(23580): Adding additional valid usage bits: 0x202000

I am using Redmi Note 5 and I get the same message in my logs. So far, it doesn't break anything that I'm aware of sha.

@aurum77
Copy link

aurum77 commented Mar 20, 2022

i have the same problem on my Redmi Note 5 (whyred) running an Android 12 custom rom

flutter doctor -v
borab@A515-44 
/tmp/foo > flutter doctor -v 
[✓] Flutter (Channel stable, 2.10.3, on Arch Linux 5.16.15-arch1-1, locale en_US.UTF-8)
    • Flutter version 2.10.3 at /home/borab/.apps/flutter
    • Upstream repository https://github.com/flutter/flutter
    • Framework revision 7e9793dee1 (3 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 32.1.0-rc1)
    • Android SDK at /home/borab/.apps/android-sdk/
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /home/borab/.apps/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = google-chrome-stable

[✓] Android Studio (version 2021.1)
    • Android Studio at /home/borab/.apps/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+0-b60-7590822)

[✓] Connected device (2 available)
    • Redmi Note 5 (mobile) • 42c7d064 • android-arm64  • Android 12 (API 31)
    • Chrome (web)          • chrome   • web-javascript • Google Chrome 99.0.4844.82

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

borab@A515-44 
/tmp/foo >

I have tested my other devices running Android 7.1.1 and 10. they both work fine.
I think the problem is that my phone's custom rom/kernel doesn't have the file at /sys/kernel/tracing or /sys/kernel/debug/tracing or it's not mounted, i don't know why it's not there

whyred:/ $ ls /sys/kernel/tracing
ls: /sys/kernel/tracing: No such file or directory
1|whyred:/ $ ls /sys/kernel/debug/tracing                                      
ls: /sys/kernel/debug/tracing: No such file or directory
1|whyred:/ $ 

@aurum77
Copy link

aurum77 commented Mar 30, 2022

It runs fine with the oem software MIUI 12.0.2.0 running Android 9

borab@A515-44 
/tmp/foo > flutter run
Launching lib/main.dart on Redmi Note 5 in debug mode...
Running Gradle task 'assembleDebug'...                             52.1s
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...                11.4s
Syncing files to device Redmi Note 5...                            119ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

@GaryQian GaryQian added P3 Issues that are less important to the Flutter project e: device-specific Only manifests on certain devices labels Jul 19, 2022
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-android Owned by Android platform team triaged-android Triaged by Android platform team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: build Building flutter applications with the tool a: error message Error messages from the Flutter framework e: device-specific Only manifests on certain devices P3 Issues that are less important to the Flutter project platform-android Android applications specifically team-android Owned by Android platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-android Triaged by Android platform team
Projects
None yet
Development

No branches or pull requests

7 participants