Issue 1:
I have a search box with an attached clear button. When the clear button is pressed the search box should be cleared.

This is the TextEditingController & the TextField set up.

When the clear button is pressed the controller clear() method is called which results in an exception in the Android Simulator and on an actual device as well (Samsung Galaxy A3/Andoid 6.0.1).

Framework • revision 3b6d84b (2 days ago) • 2017-06-16 12:58:23 -0700

Engine • revision 784e975 Tools • Dart 1.24.0-dev.6.7

Let me know if you need any additional info.

E/MethodChannel#flutter/textinput( 4187): Failed to handle method call

E/MethodChannel#flutter/textinput( 4187): java.lang.IndexOutOfBoundsException: setSpan (-1 ... -1) starts before 0

E/MethodChannel#flutter/textinput( 4187):	at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1270)

E/MethodChannel#flutter/textinput( 4187):	at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:684)

E/MethodChannel#flutter/textinput( 4187):	at android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:677)

E/MethodChannel#flutter/textinput( 4187):	at android.text.Selection.setSelection(Selection.java:76)

E/MethodChannel#flutter/textinput( 4187):	at io.flutter.plugin.editing.TextInputPlugin.setTextInputEditingState(TextInputPlugin.java:147)

E/MethodChannel#flutter/textinput( 4187):	at io.flutter.plugin.editing.TextInputPlugin.onMethodCall(TextInputPlugin.java:66)

E/MethodChannel#flutter/textinput( 4187):	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)

E/MethodChannel#flutter/textinput( 4187):	at io.flutter.view.FlutterView.handlePlatformMessage(FlutterView.java:643)

E/MethodChannel#flutter/textinput( 4187):	at android.os.MessageQueue.nativePollOnce(Native Method)

E/MethodChannel#flutter/textinput( 4187):	at android.os.MessageQueue.next(MessageQueue.java:323)

E/MethodChannel#flutter/textinput( 4187):	at android.os.Looper.loop(Looper.java:136)

E/MethodChannel#flutter/textinput( 4187):	at android.app.ActivityThread.main(ActivityThread.java:6119)

E/MethodChannel#flutter/textinput( 4187):	at java.lang.reflect.Method.invoke(Native Method)

E/MethodChannel#flutter/textinput( 4187):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

E/MethodChannel#flutter/textinput( 4187):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Issue 2:
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)