Skip to content

Flutter1.7.6 make lowmemorykiller and "Channel is unrecoverably broken and will be disposed!" #35254

@Jiyupeng334

Description

@Jiyupeng334

When my app first install and start ,a small video will be played as welcome page.this is my code:

public class MainActivity extends FlutterActivity {
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);
startActivity(new Intent(MainActivity.this, SplashVideoActivity.class));
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}
}

public class SplashVideoActivity extends FlutterActivity {
@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_video);
playVideo();
}
private void playVideo(){
VideoView videoView = findViewById(R.id.video_view);
Uri videoUri = Uri.parse( "android.resource://" + getPackageName() + "/"+R.raw.startup2);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
videoView.setAudioFocusRequest(AudioManager.AUDIOFOCUS_NONE);
}
videoView.setVideoURI(videoUri);
videoView.setOnPreparedListener(mp -> {
mp.start();
mp.setLooping(false);
});
videoView.setOnCompletionListener(mp -> {
navigationToHome();
});
}
private void navigationToHome(){
finish();
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}
}

Because webview_flutter ,I had to upgrade from 1.5.4 to 1.7.6 about flutter version. So,this issue is coming. My app crashes every time I upgrade it or open it for the first time. This is my error logcat,please help me.

2019-06-28 15:27:16.556 1196-1256/? E/SemDvfsHintManager: mHintTimeout : 800
2019-06-28 15:27:16.556 607-607/? E/lowmemorykiller: Error writing /proc/7267/oom_score_adj; errno=22
2019-06-28 15:27:16.596 1196-1890/? E/InputDispatcher: channel ~ Channel is unrecoverably broken and will be disposed!
2019-06-28 15:27:16.627 1196-3094/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity/618502012
2019-06-28 15:27:16.865 28691-7434/? E/BixbyEm-1.0.00-115: GalaxyAppsHandler - Not necessary to update
2019-06-28 15:27:17.564 28691-7434/? E/BixbyEm-1.0.00-115: GalaxyAppsHandler - Not necessary to update
2019-06-28 15:27:18.245 28691-7434/? E/BixbyEm-1.0.00-115: GalaxyAppsHandler - Not necessary to update
2019-06-28 15:27:18.247 28691-7422/? E/BixbyEm-1.0.00-115: Disabled WifiStateReceiver
2019-06-28 15:27:31.090 1196-2372/? E/Watchdog: !@sync 3718 [2019-06-28 15:27:31.089]
2019-06-28 15:27:33.562 804-1621/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'LABEL' not found
2019-06-28 15:27:33.597 804-1621/? E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'LABEL' not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions