-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Steps to Reproduce
- Run
flutter create bug2. - Add
video_player: ^1.0.1to thedependencies:inpubspec.yaml. - Replace
lib/main.dartwith this:
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
final _controller = VideoPlayerController.network(
'https://soundbible.com/grab.php?id=2067&type=mp3');
@override
void initState() {
super.initState();
print('initialize()');
final initFuture = _controller.initialize();
// Start playing if this is the first media
initFuture.then((_) {
print('initialize() DONE, refreshing UI');
setState(() {}); // so the player is shown
final delay = 2;
print('scheduling play() in $delay seconds');
Future.delayed(Duration(seconds: delay), () {
print('play()');
_controller.play().then((_) => print('play() future DONE'));
});
});
}
@override
void dispose() {
print('dispose()');
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: _controller.value.initialized
? AspectRatio(
aspectRatio: _controller.value.aspectRatio,
child: VideoPlayer(_controller),
)
: CircularProgressIndicator(),
),
);
}
}Expected results: The sound can be heard 2 seconds after initialization
Actual results: No sound.
Extended explanation and findings
Since this seems to be some sort of timing issue, I guess that for different environments it can take different times to make it fail. For me with delay 0 or 1 it works reliably and with 2 or more if fails reliably.
It fails on android but works fine in web (at least when using an assert() constructor instead of a network() one), so I'm guessing this is an android-only issue.
I came across this bug when implementing some playlist, I preload (pre-initialize()) several sounds before start playing and then I play one after the other, and I found after a few sounds the rest would not play (or sometimes one didn't play, the next does, and then nothing plays again). My guess is this whole problem comes from the fact that later sound are just more apart from the moment they were initialized, but I will add a link to an extended test case playing one after the other.
Video files don't seem to be affected, playing a 200ms video works as expected, this is an audio-only issue.
Also longer audio files don't seem to be affected, for example replacing the audio with a 5 seconds audio (like this
https://soundbible.com/grab.php?id=1634&type=mp3) makes it work, even with very big delays (I tried up to 20 seconds).
Logs
luca@leela:~/devel/flutter/bug2 (main *) $ flutter run --verbose
[ +67 ms] executing: [/home/luca/software/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +44 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 4b50ca7f7fbf56be72e54cd200825b760416a356
[ ] executing: [/home/luca/software/flutter/] git tag --points-at 4b50ca7f7fbf56be72e54cd200825b760416a356
[ +106 ms] Exit code 0 from: git tag --points-at 4b50ca7f7fbf56be72e54cd200825b760416a356
[ +7 ms] 1.26.0-17.3.pre
[ +122 ms] executing: [/home/luca/software/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] executing: [/home/luca/software/flutter/] git ls-remote --get-url origin
[ +6 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +72 ms] executing: [/home/luca/software/flutter/] git rev-parse --abbrev-ref HEAD
[ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ +68 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.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[ +54 ms] executing: /home/luca/Android/Sdk/platform-tools/adb devices -l
[ +32 ms] List of devices attached
LGH8701d9f7a4 device usb:1-2 product:lucye_global_com model:LG_H870 device:lucye transport_id:10
[ +4 ms] /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 shell getprop
[ +79 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[ +159 ms] Skipping pub get: version match.
[ +34 ms] Found plugin video_player at /home/luca/.pub-cache/hosted/pub.dartlang.org/video_player-1.0.1/
[ +5 ms] Found plugin video_player_web at /home/luca/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.4+1/
[ +25 ms] Found plugin integration_test at /home/luca/software/flutter/packages/integration_test/
[ +160 ms] Found plugin video_player at /home/luca/.pub-cache/hosted/pub.dartlang.org/video_player-1.0.1/
[ +2 ms] Found plugin video_player_web at /home/luca/.pub-cache/hosted/pub.dartlang.org/video_player_web-0.1.4+1/
[ +16 ms] Found plugin integration_test at /home/luca/software/flutter/packages/integration_test/
[ +5 ms] Generating /home/luca/devel/flutter/bug2/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +33 ms] ro.hardware = lucye
[ ] ro.build.characteristics = default
[ +25 ms] Initializing file store
[ +7 ms] Skipping target: gen_localizations
[ +3 ms] complete
[ +3 ms] Launching lib/main.dart on LG H870 in debug mode...
[ +4 ms] /home/luca/software/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/luca/software/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/luca/software/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 /tmp/flutter_tools.UALFOS/flutter_tool.FQNINC/app.dill --packages
/home/luca/devel/flutter/bug2/.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
[ +9 ms] executing: /home/luca/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/luca/devel/flutter/bug2/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[ +5 ms] Exit code 0 from: /home/luca/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/luca/devel/flutter/bug2/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
A: package="com.example.bug2" (Raw: "com.example.bug2")
A: platformBuildVersionCode=(type 0x10)0x1e
A: platformBuildVersionName=(type 0x10)0xb
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=15)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: application (line=17)
A: android:label(0x01010001)="bug2" (Raw: "bug2")
A: android:icon(0x01010002)=@0x7f080000
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=22)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.bug2.MainActivity" (Raw: "com.example.bug2.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=36)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=46)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=50)
E: action (line=51)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=53)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=60)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ +5 ms] executing: /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 shell -x logcat -v time -t 1
[ +6 ms] <- compile package:bug2/main.dart
[ +99 ms] --------- beginning of main
02-05 15:57:58.905 D/WifiWatchdogStateMachine( 4844): iwlanpercheck loss=6.23% / volume6 / imscallstate:0 sum:18.36, perAvg:6.12
[ +10 ms] executing: /home/luca/Android/Sdk/platform-tools/adb version
[ +5 ms] Android Debug Bridge version 1.0.41
Version 30.0.5-6877874
Installed as /home/luca/Android/Sdk/platform-tools/adb
[ +1 ms] executing: /home/luca/Android/Sdk/platform-tools/adb start-server
[ +5 ms] Building APK
[ +14 ms] Running Gradle task 'assembleDebug'...
[ +2 ms] Using gradle from /home/luca/devel/flutter/bug2/android/gradlew.
[ ] /home/luca/devel/flutter/bug2/android/gradlew mode: 33261 rwxr-xr-x.
[ +2 ms] executing: /home/luca/software/android-studio/jre/bin/java -version
[ +47 ms] Exit code 0 from: /home/luca/software/android-studio/jre/bin/java -version
[ ] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode)
[ +1 ms] executing: [/home/luca/devel/flutter/bug2/android/] /home/luca/devel/flutter/bug2/android/gradlew -Pverbose=true -Ptarget-platform=android-arm64
-Ptarget=/home/luca/devel/flutter/bug2/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root
-Pdart-defines=FLUTTER_WEB_AUTO_DETECT%3Dtrue assembleDebug
[ +809 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[ ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[ ] > Task :app:preBuild UP-TO-DATE
[ ] > Task :app:preDebugBuild UP-TO-DATE
[ ] > Task :integration_test:preBuild UP-TO-DATE
[ ] > Task :integration_test:preDebugBuild UP-TO-DATE
[ ] > Task :integration_test:compileDebugAidl NO-SOURCE
[ ] > Task :video_player:preBuild UP-TO-DATE
[ ] > Task :video_player:preDebugBuild UP-TO-DATE
[ ] > Task :video_player:compileDebugAidl NO-SOURCE
[ ] > Task :app:compileDebugAidl NO-SOURCE
[ ] > Task :integration_test:packageDebugRenderscript NO-SOURCE
[ ] > Task :video_player:packageDebugRenderscript NO-SOURCE
[ ] > Task :app:compileDebugRenderscript NO-SOURCE
[ ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :integration_test:writeDebugAarMetadata UP-TO-DATE
[ ] > Task :video_player:writeDebugAarMetadata UP-TO-DATE
[ +77 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[ ] > Task :app:cleanMergeDebugAssets
[ ] > Task :app:mergeDebugShaders UP-TO-DATE
[ ] > Task :app:compileDebugShaders NO-SOURCE
[ ] > Task :app:generateDebugAssets UP-TO-DATE
[ ] > Task :integration_test:mergeDebugShaders UP-TO-DATE
[ ] > Task :integration_test:compileDebugShaders NO-SOURCE
[ ] > Task :integration_test:generateDebugAssets UP-TO-DATE
[ ] > Task :integration_test:packageDebugAssets UP-TO-DATE
[ ] > Task :video_player:mergeDebugShaders UP-TO-DATE
[ ] > Task :video_player:compileDebugShaders NO-SOURCE
[ ] > Task :video_player:generateDebugAssets UP-TO-DATE
[ ] > Task :video_player:packageDebugAssets UP-TO-DATE
[ ] > Task :app:mergeDebugAssets
[ +199 ms] > Task :app:copyFlutterAssetsDebug
[ ] > Task :app:generateDebugResValues UP-TO-DATE
[ +3 ms] > Task :app:generateDebugResources UP-TO-DATE
[ ] > Task :integration_test:compileDebugRenderscript NO-SOURCE
[ ] > Task :integration_test:generateDebugResValues UP-TO-DATE
[ ] > Task :integration_test:generateDebugResources UP-TO-DATE
[ ] > Task :integration_test:packageDebugResources UP-TO-DATE
[ ] > Task :video_player:compileDebugRenderscript NO-SOURCE
[ +1 ms] > Task :video_player:generateDebugResValues UP-TO-DATE
[ ] > Task :video_player:generateDebugResources UP-TO-DATE
[ ] > Task :video_player:packageDebugResources UP-TO-DATE
[ ] > Task :app:mergeDebugResources UP-TO-DATE
[ ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[ ] > Task :integration_test:extractDeepLinksDebug UP-TO-DATE
[ ] > Task :integration_test:processDebugManifest UP-TO-DATE
[ ] > Task :video_player:extractDeepLinksDebug UP-TO-DATE
[ ] > Task :video_player:processDebugManifest UP-TO-DATE
[ ] > Task :app:processDebugMainManifest UP-TO-DATE
[ ] > Task :app:processDebugManifest UP-TO-DATE
[ ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[ ] > Task :integration_test:compileDebugLibraryResources UP-TO-DATE
[ ] > Task :integration_test:parseDebugLocalResources UP-TO-DATE
[ ] > Task :integration_test:generateDebugRFile UP-TO-DATE
[ ] > Task :video_player:compileDebugLibraryResources UP-TO-DATE
[ ] > Task :video_player:parseDebugLocalResources UP-TO-DATE
[ +87 ms] > Task :video_player:generateDebugRFile UP-TO-DATE
[ ] > Task :app:processDebugResources UP-TO-DATE
[ ] > Task :integration_test:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :integration_test:javaPreCompileDebug UP-TO-DATE
[ ] > Task :integration_test:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :integration_test:bundleLibCompileToJarDebug UP-TO-DATE
[ ] > Task :video_player:generateDebugBuildConfig UP-TO-DATE
[ ] > Task :video_player:javaPreCompileDebug UP-TO-DATE
[ ] > Task :video_player:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :video_player:bundleLibCompileToJarDebug UP-TO-DATE
[ ] > Task :app:compileDebugKotlin UP-TO-DATE
[ ] > Task :app:javaPreCompileDebug UP-TO-DATE
[ ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[ ] > Task :app:compileDebugSources UP-TO-DATE
[ ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[ ] > Task :app:compressDebugAssets UP-TO-DATE
[ +1 ms] > Task :app:processDebugJavaRes NO-SOURCE
[ ] > Task :integration_test:processDebugJavaRes NO-SOURCE
[ +2 ms] > Task :integration_test:bundleLibResDebug NO-SOURCE
[ +91 ms] > Task :video_player:processDebugJavaRes NO-SOURCE
[ ] > Task :video_player:bundleLibResDebug NO-SOURCE
[ ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :video_player:bundleLibRuntimeToJarDebug UP-TO-DATE
[ ] > Task :integration_test:bundleLibRuntimeToJarDebug UP-TO-DATE
[ ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[ ] > Task :app:dexBuilderDebug UP-TO-DATE
[ ] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[ ] > Task :app:mergeExtDexDebug UP-TO-DATE
[ ] > Task :app:mergeDexDebug UP-TO-DATE
[ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :integration_test:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :integration_test:mergeDebugNativeLibs NO-SOURCE
[ ] > Task :integration_test:stripDebugDebugSymbols NO-SOURCE
[ ] > Task :integration_test:copyDebugJniLibsProjectOnly UP-TO-DATE
[ ] > Task :video_player:mergeDebugJniLibFolders UP-TO-DATE
[ ] > Task :video_player:mergeDebugNativeLibs NO-SOURCE
[ ] > Task :video_player:stripDebugDebugSymbols NO-SOURCE
[ ] > Task :video_player:copyDebugJniLibsProjectOnly UP-TO-DATE
[ ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[ ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[ ] > Task :app:validateSigningDebug UP-TO-DATE
[ ] > Task :app:packageDebug UP-TO-DATE
[+1296 ms] > Task :app:assembleDebug
[ ] > Task :integration_test:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[ +99 ms] > Task :integration_test:extractDebugAnnotations UP-TO-DATE
[ ] > Task :integration_test:mergeDebugGeneratedProguardFiles UP-TO-DATE
[ ] > Task :integration_test:mergeDebugConsumerProguardFiles UP-TO-DATE
[ ] > Task :integration_test:prepareLintJarForPublish UP-TO-DATE
[ ] > Task :integration_test:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :integration_test:syncDebugLibJars UP-TO-DATE
[ ] > Task :integration_test:bundleDebugAar UP-TO-DATE
[ ] > Task :integration_test:compileDebugSources UP-TO-DATE
[ ] > Task :integration_test:assembleDebug UP-TO-DATE
[ ] > Task :video_player:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[ ] > Task :video_player:extractDebugAnnotations UP-TO-DATE
[ ] > Task :video_player:mergeDebugGeneratedProguardFiles UP-TO-DATE
[ ] > Task :video_player:mergeDebugConsumerProguardFiles UP-TO-DATE
[ ] > Task :video_player:prepareLintJarForPublish UP-TO-DATE
[ ] > Task :video_player:mergeDebugJavaResource UP-TO-DATE
[ ] > Task :video_player:syncDebugLibJars UP-TO-DATE
[ ] > Task :video_player:bundleDebugAar UP-TO-DATE
[ +96 ms] > Task :video_player:compileDebugSources UP-TO-DATE
[ ] > Task :video_player:assembleDebug UP-TO-DATE
[ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[ ] BUILD SUCCESSFUL in 2s
[ ] 82 actionable tasks: 4 executed, 78 up-to-date
[+1683 ms] Running Gradle task 'assembleDebug'... (completed in 4.5s)
[ +820 ms] calculateSha: LocalDirectory: '/home/luca/devel/flutter/bug2/build/app/outputs/flutter-apk'/app.apk
[ +30 ms] calculateSha: reading file took 29us
[+1045 ms] calculateSha: computing sha took 1045us
[ +6 ms] ✓ Built build/app/outputs/flutter-apk/app-debug.apk.
[ +4 ms] executing: /home/luca/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/luca/devel/flutter/bug2/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[ +24 ms] Exit code 0 from: /home/luca/Android/Sdk/build-tools/30.0.2/aapt dump xmltree /home/luca/devel/flutter/bug2/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[ +2 ms] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
A: package="com.example.bug2" (Raw: "com.example.bug2")
A: platformBuildVersionCode=(type 0x10)0x1e
A: platformBuildVersionName=(type 0x10)0xb
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=15)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: application (line=17)
A: android:label(0x01010001)="bug2" (Raw: "bug2")
A: android:icon(0x01010002)=@0x7f080000
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=22)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.bug2.MainActivity" (Raw: "com.example.bug2.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=36)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=46)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=50)
E: action (line=51)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=53)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=60)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ ] Stopping app 'app.apk' on LG H870.
[ ] executing: /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 shell am force-stop com.example.bug2
[ +81 ms] executing: /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 shell pm list packages com.example.bug2
[ +53 ms] package:com.example.bug2
[ +1 ms] executing: /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 shell cat /data/local/tmp/sky.com.example.bug2.sha1
[ +23 ms] 42b8464f6bb0e166c2cb8e6aeb8cc6c23b0f6daf
[ ] Latest build already installed.
[ ] executing: /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 shell -x logcat -v time -t 1
[ +58 ms] --------- beginning of main
02-05 15:58:05.787 D/FMFRW_BcmFmRadio( 6756): Waiting FM Receiver Proxy!!!! + 1 time
[ +8 ms] executing: /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.bug2/com.example.bug2.MainActivity
[ +90 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug2/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +970 ms] Observatory URL on device: http://127.0.0.1:58383/cw9hg1gpQ0c=/
[ ] executing: /home/luca/Android/Sdk/platform-tools/adb -s LGH8701d9f7a4 forward tcp:0 tcp:58383
[ +7 ms] 33419
[ ] Forwarded host port 33419 to device port 58383 for Observatory
[ +4 ms] Caching compiled dill
[ +81 ms] Connecting to service protocol: http://127.0.0.1:33419/cw9hg1gpQ0c=/
[ +550 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:33419/cw9hg1gpQ0c=/.
[ +151 ms] DDS is listening at http://127.0.0.1:38681/n5HyCJ_BdIw=/.
[ +49 ms] Successfully connected to service protocol: http://127.0.0.1:33419/cw9hg1gpQ0c=/
[ +691 ms] DevFS: Creating new filesystem on the device (null)
[ +88 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug2/code_cache/bug2TNDJAR/bug2/)
[ +3 ms] Updating assets
[ +139 ms] Syncing files to device LG H870...
[ +1 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +1 ms] <- recompile package:bug2/main.dart abc61491-e2bb-4fce-bd5f-52aecff07c7c
[ ] <- abc61491-e2bb-4fce-bd5f-52aecff07c7c
[ +179 ms] Updating files.
[ ] DevFS: Sync finished
[ +1 ms] Syncing files to device LG H870... (completed in 183ms)
[ ] Synced 0.0MB.
[ ] <- accept
[ +17 ms] Connected to _flutterView/0x77d5050020.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. 🔥🔥🔥
[ ] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on LG H870 is available at: http://127.0.0.1:38681/n5HyCJ_BdIw=/
[ ]
Flutter DevTools, a Flutter debugger and profiler, on LG H870 is available at:
http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A38681%2Fn5HyCJ_BdIw%3D%2F
[ ] Running with unsound null safety
[ ] For more information see https://dart.dev/null-safety/unsound-null-safety
[ +419 ms] I/flutter (16179): initialize()
[ +241 ms] W/om.example.bug(16179): Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (light greylist, reflection)
[ +9 ms] I/ExoPlayerImpl(16179): Init 8d851cf [ExoPlayerLib/2.12.1] [lucye, LG-H870, LGE, 28]
[ +22 ms] D/AudioManager(16179): getStreamVolume() streamType= 3 Request Package= com.example.bug2
[ +915 ms] W/AudioCapabilities(16179): Unsupported mime audio/lg-ac3
[ +30 ms] W/AudioCapabilities(16179): Unsupported mime audio/adpcm
[ ] W/AudioCapabilities(16179): Unsupported mime audio/x-lg-alac
[ ] W/AudioCapabilities(16179): Unsupported mime audio/lg-eac3
[ ] W/AudioCapabilities(16179): Unsupported mime audio/x-lg-flac
[ ] W/AudioCapabilities(16179): Unsupported mime audio/g726
[ ] W/AudioCapabilities(16179): Unsupported mime audio/x-lg-ms-wma
[ ] W/AudioCapabilities(16179): Unsupported mime audio/lg-wma-voice
[ +5 ms] W/AudioCapabilities(16179): Unsupported mime audio/x-lg-flac
[ +19 ms] W/VideoCapabilities(16179): Unsupported mime video/dolby-vision
[ +11 ms] W/VideoCapabilities(16179): Unsupported mime video/dolby-vision
[ +11 ms] W/VideoCapabilities(16179): Unrecognized profile 4 for video/hevc
[ +3 ms] W/VideoCapabilities(16179): Unsupported mime video/mjpg
[ +10 ms] W/VideoCapabilities(16179): Unsupported mime video/theora
[ +38 ms] I/VideoCapabilities(16179): Unsupported profile 4 for video/mp4v-es
[ +104 ms] D/MediaCodec(16179): CreateByComponentName name=OMX.google.mp3.decoder
[ ] D/MediaCodec(16179): Mediacodec create pid=16179
[ ] D/MediaCodec(16179): init()++ name=OMX.google.mp3.decoder,nameIsType=0
[ ] V/LGCodecAdapter(16179): LG Codec Adapter start
[ ] V/LGCodecAdapter(16179): load libLGCodecOSAL library
[ +10 ms] V/LGCodecOSAL(16179): Just Validatation check function
[ +1 ms] I/ACodec (16179): Now uninitialized
[ +1 ms] D/MediaCodec(16179): kWhatInit received
[ +4 ms] I/ACodec (16179): onAllocateComponent
[ +1 ms] I/OMXClient(16179): IOmx service obtained
[ +35 ms] D/MediaCodec(16179): onComponentAllocated() componentName=OMX.google.mp3.decoder
[ ] I/ACodec (16179): [OMX.google.mp3.decoder] Now Loaded
[ ] D/MediaCodec(16179): kWhatComponentAllocated received
[ ] D/MediaCodec(16179): init()--
[ +1 ms] D/MediaCodec(16179): kWhatConfigure received
[ +1 ms] V/LGCodecAdapter(16179): called getLGCodecSpecificData
[ +1 ms] V/LGCodecOSAL(16179): Called LGgetCodecSpecificDataMSG
[ ] I/ACodec (16179): codec does not support config priority (err -2147483648)
[ +1 ms] V/LGCodecOSAL(16179): Called LGconfigureCodecMSG
[ ] V/LGCodecOSAL(16179): Not support LGCodec
[ ] I/ACodec (16179): codec does not support config priority (err -2147483648)
[ ] I/ACodec (16179): codec does not support config operating rate (err -2147483648)
[ +7 ms] W/ExtendedACodec(16179): Failed to get extension for extradata parameter
[ +1 ms] D/MediaCodec(16179): onComponentConfigured()
[ ] D/MediaCodec(16179): kWhatComponentConfigured received
[ ] D/MediaCodec(16179): start()
[ ] D/MediaCodec(16179): kWhatStart received
[ +11 ms] I/ACodec (16179): [OMX.google.mp3.decoder] Now Idle->Executing
[ +8 ms] I/ACodec (16179): [OMX.google.mp3.decoder] Now Executing
[ +8 ms] W/om.example.bug(16179): Accessing hidden method Landroid/media/AudioTrack$Builder;->setOffloadedPlayback(Z)Landroid/media/AudioTrack$Builder; (dark
greylist, linking)
[ +5 ms] W/om.example.bug(16179): Accessing hidden method Landroid/media/AudioTrack$Builder;->setOffloadedPlayback(Z)Landroid/media/AudioTrack$Builder; (dark
greylist, linking)
[ +2 ms] V/AudioTrack(16179): getMinFrameCount=3844: afFrameCount=1920, afSampleRate=48000, afLatency=80
[ +6 ms] V/AudioSystem(16179): ioConfigChanged() event 0
[ ] I/chatty (16179): uid=10559(com.example.bug2) Binder:16179_1 identical 1 line
[ ] V/AudioSystem(16179): ioConfigChanged() event 0
[ ] V/AudioTrack(16179): set(): streamType -1, sampleRate 48000, format 0x1, channelMask 0x3, frameCount 15376, flags #0, notificationFrames 0, sessionId 0,
transferType 3, uid -1, pid -1
[ ] V/AudioTrack(16179): Building AudioTrack with attributes: usage=1 content=3 flags=0x200 tags=[]
[ +75 ms] I/flutter (16179): initialize() DONE, refreshing UI
[ +2 ms] I/flutter (16179): scheduling play() in 2 seconds
[+2013 ms] I/flutter (16179): play()
[ +59 ms] V/AudioTrack(16179): getBestTimestamp did not find timestamp
[ ] I/flutter (16179): play() future DONE
[ +40 ms] V/AudioTrack(16179): getBestTimestamp did not find timestamp
[ ] V/AudioTrack(16179): getBestTimestamp did not find timestamp
[ ] V/AudioTrack(16179): getBestTimestamp did not find timestamp
[ +47 ms] V/AudioTrack(16179): getBestTimestamp did not find timestamp
[ ] V/AudioTrack(16179): getBestTimestamp did not find timestamp
[ ] V/AudioTrack(16179): getBestTimestamp did not find timestamp
[ +47 ms] V/AudioTrack(16179): getBestTimestamp did not find timestamp$ flutter analyze
Analyzing bug2...
info • Unused import: 'package:integration_test/integration_test.dart' • integration_test/app_test.dart:10:8 • unused_import
error • The function 'run' isn't defined • integration_test/app_test.dart:14:16 • undefined_function
2 issues found. (ran in 4.1s)$ flutter doctor -v
[✓] Flutter (Channel beta, 1.26.0-17.3.pre, on Linux, locale en_IE.UTF-8)
• Flutter version 1.26.0-17.3.pre at /home/luca/software/flutter
• Framework revision 4b50ca7f7f (11 hours ago), 2021-02-04 19:44:27 -0800
• Engine revision 2c527d6c7e
• Dart version 2.12.0 (build 2.12.0-259.8.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /home/luca/Android/Sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /home/luca/software/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = chromium
[✓] Android Studio
• Android Studio at /home/luca/software/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
• android-studio-dir = /home/luca/software/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (2 available)
• LG H870 (mobile) • LGH8701d9f7a4 • android-arm64 • Android 9 (API 28)
• Chrome (web) • chrome • web-javascript • Chromium 83.0.4103.116 built on Debian bullseye/sid, running on Debian bullseye/sid
• No issues found!