{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/19523","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/19523/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/19523/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/19523/events","html_url":"https://github.com/facebook/react-native/issues/19523","id":328139861,"node_id":"MDU6SXNzdWUzMjgxMzk4NjE=","number":19523,"title":"GBoard emoji crash","user":{"login":"kelset","id":16104054,"node_id":"MDQ6VXNlcjE2MTA0MDU0","avatar_url":"https://avatars3.githubusercontent.com/u/16104054?v=4","gravatar_id":"","url":"https://api.github.com/users/kelset","html_url":"https://github.com/kelset","followers_url":"https://api.github.com/users/kelset/followers","following_url":"https://api.github.com/users/kelset/following{/other_user}","gists_url":"https://api.github.com/users/kelset/gists{/gist_id}","starred_url":"https://api.github.com/users/kelset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelset/subscriptions","organizations_url":"https://api.github.com/users/kelset/orgs","repos_url":"https://api.github.com/users/kelset/repos","events_url":"https://api.github.com/users/kelset/events{/privacy}","received_events_url":"https://api.github.com/users/kelset/received_events","type":"User","site_admin":false},"labels":[{"id":870851515,"node_id":"MDU6TGFiZWw4NzA4NTE1MTU=","url":"https://api.github.com/repos/facebook/react-native/labels/:large_blue_diamond:Android","name":":large_blue_diamond:Android","color":"bfd4f2","default":false},{"id":869668024,"node_id":"MDU6TGFiZWw4Njk2NjgwMjQ=","url":"https://api.github.com/repos/facebook/react-native/labels/:large_orange_diamond:TextInput","name":":large_orange_diamond:TextInput","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-31T13:31:52Z","updated_at":"2018-05-31T13:49:38Z","closed_at":null,"author_association":"COLLABORATOR","body":"<!-- Requirements: please go through this checklist before opening a new issue -->\r\n  - [x] Review the documentation: https://facebook.github.io/react-native\r\n  - [x] Search for existing issues: https://github.com/facebook/react-native/issues\r\n  - [x] Use the latest React Native version: https://github.com/facebook/react-native/releases\r\n  - [x] Run `react-native info` in your terminal and paste its contents under \"Environment\"\r\n  - [x] Let us know how to reproduce the issue. Include a code sample, share a project, or\r\n    share an app that reproduces the issue using https://snack.expo.io/\r\n\r\n## Environment\r\n```\r\nEnvironment:\r\n  OS: macOS High Sierra 10.13.4\r\n  Node: 10.3.0\r\n  Yarn: 1.7.0\r\n  npm: 6.1.0\r\n  Watchman: 4.9.0\r\n  Xcode: Xcode 9.2 Build version 9C40b\r\n  Android Studio: 3.1 AI-173.4720617\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.3.1 => 16.3.1\r\n  react-native: 0.55.4 => 0.55.4\r\n```\r\n\r\n## Description\r\nA quite precise kind of issue, that I basically found thanks to our manual testing team. It's quite the weird bug, caused by the GBoard only in Android env (tested on iOS without repro the issue).\r\n\r\nThe weirdest part is that not all emojis trigger it. In fact, aside night:\r\n\r\n* \"cat\" 🐈 -> crash\r\n* \"rainbow\" 🌈 -> crash\r\n* \"cloud\" ☁️ -> no crash\r\n* \"sun\" ⛅️ -> no crash\r\n\r\nBtw there the words that 'trigger' emoji suggestions are different, the only one that triggers the same emoji on both platforms is \"piano\" 🎹 (and on iOS it doesn't crash, on Android yes) (ok maybe not the only one, but the only one I found quickly).\r\n\r\nAnd it doesn't happen with remote debugger on.\r\n\r\nSame stacktrace as #10756 and similar to #19129 (which was closed by the bot) and #18126 (which was closed linking to PR #18114 by @joshyhargreaves) by @hramos. So this is potentially a regression? (I am not sure, I feel like it's not strictly related to that one)\r\n\r\n## Steps to Reproduce\r\n\r\n1. clone the [repo](https://github.com/kelset/react-native-night-emoji-crash) & cd into it\r\n1. react-native run-android\r\n1. make sure the device on which you run it has the Google GBoard installed\r\n1. tap on the textinput and write \"night\"\r\n1. the GBoard will suggest in the bar the night with stars emoji 🌃\r\n1. click on the suggestion\r\n1. crash\r\n\r\n(the repro is the standard `react-native init` project with a [textinput](https://facebook.github.io/react-native/docs/textinput.html) just like the example in the docs)\r\n\r\n## Expected Behavior\r\nThe emoji appears without troubles in the textinput field.\r\n\r\n## Actual Behavior\r\nApp crashes with the following stacktrace:\r\n\r\n```\r\nFatal Exception: java.lang.RuntimeException\r\nError calling RCTEventEmitter.receiveEvent\r\n\r\nCaused by com.facebook.jni.CppException\r\nFailed to create Value from JSON:\r\n\r\n<...stacktrace>\r\n```\r\n\r\nIf logging via LogCat, there are some extra info:\r\n\r\n```\r\n05-31 14:39:29.044 12953-13205/com.nightcrash I/ReactNativeJS: 'yo', 'Night'\r\n05-31 14:39:30.163 12953-12953/com.nightcrash E/SpannableStringBuilder: SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length\r\n    SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length\r\n05-31 14:39:30.197 12953-13205/com.nightcrash I/ReactNativeJS: 'yo', '🌃'\r\n05-31 14:39:30.247 12953-13205/com.nightcrash E/unknown:ReactNative: Exception in native call\r\n    java.lang.RuntimeException: Error calling RCTEventEmitter.receiveEvent\r\n        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)\r\n        at android.os.Handler.handleCallback(Handler.java:751)\r\n        at android.os.Handler.dispatchMessage(Handler.java:95)\r\n        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)\r\n        at android.os.Looper.loop(Looper.java:154)\r\n        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)\r\n        at java.lang.Thread.run(Thread.java:762)\r\n     Caused by: com.facebook.jni.CppException: Failed to create Value from JSON: \r\n        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) \r\n        at android.os.Handler.handleCallback(Handler.java:751) \r\n        at android.os.Handler.dispatchMessage(Handler.java:95) \r\n        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29) \r\n        at android.os.Looper.loop(Looper.java:154) \r\n        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192) \r\n        at java.lang.Thread.run(Thread.java:762) \r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/393536249","html_url":"https://github.com/facebook/react-native/issues/19523#issuecomment-393536249","issue_url":"https://api.github.com/repos/facebook/react-native/issues/19523","id":393536249,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzUzNjI0OQ==","user":{"login":"kelset","id":16104054,"node_id":"MDQ6VXNlcjE2MTA0MDU0","avatar_url":"https://avatars3.githubusercontent.com/u/16104054?v=4","gravatar_id":"","url":"https://api.github.com/users/kelset","html_url":"https://github.com/kelset","followers_url":"https://api.github.com/users/kelset/followers","following_url":"https://api.github.com/users/kelset/following{/other_user}","gists_url":"https://api.github.com/users/kelset/gists{/gist_id}","starred_url":"https://api.github.com/users/kelset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelset/subscriptions","organizations_url":"https://api.github.com/users/kelset/orgs","repos_url":"https://api.github.com/users/kelset/repos","events_url":"https://api.github.com/users/kelset/events{/privacy}","received_events_url":"https://api.github.com/users/kelset/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T13:49:38Z","updated_at":"2018-05-31T13:49:38Z","author_association":"COLLABORATOR","body":"Ok, thanks for the swift response :) Let me know if there is anything extra I can do to help! It's really really weird that it only happens for some emojis 🧐"}}
{"actor":{"display_login":"kelset"}}