- The Java client passes a string containing an optional Unicode for the JNI / NDK.
- JNI uses the NDK function GetStringUTFChars () to retrieve the contents of a Java string.
- GetStringUTFChars () returns string data as invalid and invalid UTF-8.
- leads to failure
Itβs good that such a known bug seems like a simulator!
You gave a very short description,
Android: text = "& # 127761
It looks like you are trying to add Unicode from your view. Usually you should report an error
unescaped and / or endless reference to a symbol / entity!
This method will work with the correct Unicode!
textView.setText(Html.fromHtml("🌑"));
Hey Html.fromHtml () is deprecated? Yes, see what is an alternative !
Change Since your data is not enough, I myself recreated the crash using the XML View (make sure you use only this view with this Unicode!). It crashed beautifully!
Here is the complete log and the error says it all:
JNI DETERMINED ERROR IN APPLICATION: input is invalid Modified UTF-8: illegal start byte 0xf0..illegal start byte when calling NewStringUTF Well, what an error you are looking for!
This confirms what I said.
Additionally
This is your character> https://www.compart.com/en/unicode/U+1F311 , called the symbol of the Darkmoon. These Unicodes are also used for system emulation. So depending on the platform, this may look a little different!
for example: in Samsung Galaxy S5

Source: http://emojipedia.org/samsung/galaxy-s5/new-moon-symbol/
More details
JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0xf0 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] string: 'π' 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] in call to NewStringUTF 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] from java.lang.String android.content.res.StringBlock.nativeGetString(long, int) 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x75748000 self=0xb4827800 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | sysTid=14933 nice=-11 cgrp=default sched=0/0 handle=0xb6f5abec 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=12 stm=4 core=1 HZ=100 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | stack=0xbe4b4000-0xbe4b6000 stackSize=8MB 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held) 02-01 07:34:43.382 14933-14933/? A/art: sart/runtime/check_jni.cc:65] native: