Skip to content
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

Closed
Vpn97 opened this issue Oct 6, 2020 · 7 comments · Fixed by #39
Closed

java.lang.IllegalArgumentException: Cannot round NaN value. #37

Vpn97 opened this issue Oct 6, 2020 · 7 comments · Fixed by #39
Assignees
Labels
bug Something isn't working

Comments

@Vpn97
Copy link

Vpn97 commented Oct 6, 2020

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)

@welcome
Copy link

welcome bot commented Oct 6, 2020

Thanks for opening your first issue here! 🎉

@markusressel
Copy link
Owner

Thx, can you provide more info on when and why this happened?

@markusressel markusressel added the bug Something isn't working label Oct 7, 2020
@Vpn97
Copy link
Author

Vpn97 commented Oct 10, 2020

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

If you are searching for an application to learn Python basic to advance without any programming knowledge. You are at right place. Whether you are an experienced programmer or not, this Application is intended for everyone who wishes to learn the Python Programming language.

There is no need to Internet anything - Just click on the INSTALL you wish to begin from, and follow the instructions. Good luck!

Features:
• Great User Interface.
• Topics divide into proper way.
• All topics are offline: no needs internet
• Content with easy examples.
• Easy to Understand.
• Practice Programs
• Copy and Share Topic with your friends.
• Online Python Compiler: Run your Python program within application.
• Python Interview Questions and Answer.

Basic Tutorial: Start from basic python basic learning. Basic tutorial consists following topics.

• Python Introduction
• How to set path in Python
• Data Types in Python
• Python If-else Statement
• Python Switch Statement
• Loops in Python
• Python Comments

Advance Tutorial:
• Python String
• Python List
• Python Tuple
• Python Dictionary
• Python Functions
• Python Input and Output
• Python Module
• Python Exception Handling
• Python OOPs
• Python Inheritance

Practice Programs: No battle can win in the study and theory without practice is dead. In this topic we add 60+ practical programs with output and provide run, share and copy.

• Array, String, User Inputs programs
• sorting algorithms.
• searching algorithms.
• recursion programs.

Python Interview Questions and Answer: Python Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Python Programming Language.

@stale
Copy link

stale bot commented Dec 12, 2020

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.

@stale stale bot added the wontfix This will not be worked on label Dec 12, 2020
@stale
Copy link

stale bot commented Dec 31, 2020

There has been no incentive by contributors or maintainers to revive this stale issue and it will now be closed.

@stale stale bot closed this as completed Dec 31, 2020
@pythoscorpion
Copy link

pythoscorpion commented Jan 12, 2021

this error will occur when want CodeEditorLayout visibility to be GONE .
bellow is how my layout looks like

<androidx.cardview.widget.CardView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginBottom="64dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@+id/scrollView3">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <de.markusressel.kodeeditor.library.view.CodeEditorLayout
                ... />

        </androidx.constraintlayout.widget.ConstraintLayout>

 </androidx.cardview.widget.CardView>

@markusressel markusressel removed the wontfix This will not be worked on label Jan 15, 2021
@markusressel markusressel reopened this Jan 15, 2021
@markusressel
Copy link
Owner

Thx, I will have a look at this.

@markusressel markusressel self-assigned this Jan 15, 2021
markusressel added a commit that referenced this issue Apr 10, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants