-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Keep hitting an exception in rendering engine (I think) #10748
Comments
Can you add the output of |
~/src/github/flutter/bin/flutter doctor [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3) [✓] Android Studio (version 2.3) [-] IntelliJ IDEA Community Edition (version 2016.3) [✓] IntelliJ IDEA Ultimate Edition (version 2017.1) [-] IntelliJ IDEA Ultimate Edition (version 2016.3) [-] WebStorm (version 2017.2) [-] IntelliJ IDEA Ultimate Edition (version 2017.2) [✓] Connected devices |
Additional (longer) stack trace showing issue: Launching lib/main.dart on Nexus 6P in debug mode... |
The second stack trace is a duplicate of #10681 The first one is a problem in the new version of the Android text input plugin. I think we need to call Selection.removeSelection() instead of setSelection(-1) |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I hit it first after making minor changes to the flutter code lab, and am hitting it now, while trying to put together a simpler flutter app.
Hot reload is not working, cold launches sometimes work.
Flutter run from IJ.
Launching lib/main.dart on Nexus 6P in debug mode...
Built build/app/outputs/apk/app-debug.apk (21.7MB).
W/IInputConnectionWrapper(21208): reportFullscreenMode on inexistent InputConnection
I/flutter (21208): executeQuery
Restarted app in 1,286ms.
E/MethodChannel#flutter/textinput(21208): Failed to handle method call
E/MethodChannel#flutter/textinput(21208): java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0
E/MethodChannel#flutter/textinput(21208): at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1325)
E/MethodChannel#flutter/textinput(21208): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:683)
E/MethodChannel#flutter/textinput(21208): at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:676)
E/MethodChannel#flutter/textinput(21208): at android.text.Selection.setSelection(Selection.java:76)
E/MethodChannel#flutter/textinput(21208): at io.flutter.plugin.editing.TextInputPlugin.setTextInputEditingState(TextInputPlugin.java:147)
E/MethodChannel#flutter/textinput(21208): at io.flutter.plugin.editing.TextInputPlugin.onMethodCall(TextInputPlugin.java:66)
E/MethodChannel#flutter/textinput(21208): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
E/MethodChannel#flutter/textinput(21208): at io.flutter.view.FlutterView.handlePlatformMessage(FlutterView.java:643)
E/MethodChannel#flutter/textinput(21208): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/textinput(21208): at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#flutter/textinput(21208): at android.os.Looper.loop(Looper.java:136)
E/MethodChannel#flutter/textinput(21208): at android.app.ActivityThread.main(ActivityThread.java:6121)
E/MethodChannel#flutter/textinput(21208): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/textinput(21208): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
E/MethodChannel#flutter/textinput(21208): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
flutter analyze:
~/src/github/flutter/bin/flutter analyze
Analyzing jwren/src/github/flutter_google_knowledge_graph...
hint • The value of the local variable 'v' isn't used at lib/main.dart:97:9 • unused_local_variable
1 issue found.
(Ran in 4.5s)
The text was updated successfully, but these errors were encountered: