- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 9
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
java.lang.IllegalArgumentException: Cannot round NaN value. #37
Comments
Thanks for opening your first issue here! 🎉 |
Thx, can you provide more info on when and why this happened? |
I have used this lib in my application (learn Python) https://play.google.com/store/apps/details?id=com.apkzube.learnpython Mostly it's crash in android 6.0
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There has been no incentive by contributors or maintainers to revive this stale issue and it will now be closed. |
this error will occur when want CodeEditorLayout visibility to be GONE .
|
Thx, I will have a look at this. |
* wait for engine to initialize before using it for layout calculations still needs some investigation into the initialization procedure of individual views, since there is some flickering in the beginning * use getter function instead of manually setting the state simplification
10-06 09:17:17.796 29733-29733/com.apkzube.learnpythonpro E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.apkzube.learnpythonpro, PID: 29733
java.lang.IllegalArgumentException: Cannot round NaN value.
at kotlin.math.MathKt__MathJVMKt.roundToInt(MathJVM.kt:1132)
at de.markusressel.kodeeditor.library.view.CodeEditorLayout$updateLineNumbers$1.run(CodeEditorLayout.kt:477)
at android.os.Handler.handleCallback(Handler.java:742)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5603)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
The text was updated successfully, but these errors were encountered: