-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
c: regressionIt was better in the past than it is nowIt was better in the past than it is nowp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight
Description
The Shared Prefs package works for a little bit and then starts throwing errors. I did not see these errors in 2.0.1. From the trace it looks like the new Threadpool implementation is the likely cause.
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): Failed to handle method call
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): java.util.concurrent.RejectedExecutionException: Task io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl$1@7526d87 rejected from java.util.concurrent.ThreadPoolExecutor@6da90b2[Running, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 25]
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2086)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:848)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1394)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl.commitAsync(MethodCallHandlerImpl.java:137)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl.onMethodCall(MethodCallHandlerImpl.java:100)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at android.os.MessageQueue.next(MessageQueue.java:335)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at android.os.Looper.loopOnce(Looper.java:161)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at android.os.Looper.loop(Looper.java:288)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at android.app.ActivityThread.main(ActivityThread.java:7892)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/MethodChannel#plugins.flutter.io/shared_preferences(18687): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:991)
E/flutter (18687): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: PlatformException(error, Task io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl$1@7526d87 rejected from java.util.concurrent.ThreadPoolExecutor@6da90b2[Running, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 25], null, java.util.concurrent.RejectedExecutionException: Task io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl$1@7526d87 rejected from java.util.concurrent.ThreadPoolExecutor@6da90b2[Running, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 25]
E/flutter (18687): at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2086)
E/flutter (18687): at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:848)
E/flutter (18687): at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1394)
E/flutter (18687): at io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl.commitAsync(MethodCallHandlerImpl.java:137)
E/flutter (18687): at io.flutter.plugins.sharedpreferences.MethodCallHandlerImpl.onMethodCall(MethodCallHandlerImpl.java:100)
E/flutter (18687): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter (18687): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (18687): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/flutter (18687): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (18687): at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (18687): at android.os.Looper.loopOnce(Looper.java:161)
E/flutter (18687): at android.os.Looper.loop(Looper.java:288)
E/flutter (18687): at android.app.ActivityThread.main(ActivityThread.java:7892)
E/flutter (18687): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (18687): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/flutter (18687): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:991)
E/flutter (18687): )
E/flutter (18687): #0 StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:581
E/flutter (18687): #1 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:158
E/flutter (18687): <asynchronous suspension>
E/flutter (18687): #2 MethodChannelSharedPreferencesStore.setValue
package:shared_preferences_platform_interface/method_channel_shared_preferences.dart:30
E/flutter (18687): <asynchronous suspension>
E/flutter (18687):
cranst0n, xhit, stvdbac, Sauceee, qwert2603 and 10 more
Metadata
Metadata
Assignees
Labels
c: regressionIt was better in the past than it is nowIt was better in the past than it is nowp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallywaiting for PR to land (fixed)A fix is in flightA fix is in flight