judovana / java-runtime-decompiler

GNU General Public License v3.0
68 stars 14 forks source link

AWT exceptions #214

Closed mkoncek closed 3 years ago

mkoncek commented 3 years ago

Randomly compiling files causes the following exception message to be printed (but the exception is catched somewhere)

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index 4281 out of bounds for length 3916
        at org.fife.ui.rsyntaxtextarea.TokenImpl.listOffsetToView(TokenImpl.java:749)
        at org.fife.ui.rsyntaxtextarea.SyntaxView.modelToView(SyntaxView.java:549)
        at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1605)
        at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1110)
        at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1087)
        at java.desktop/javax.swing.text.DefaultCaret.repaintNewCaret(DefaultCaret.java:1318)
        at java.desktop/javax.swing.text.DefaultCaret$1.run(DefaultCaret.java:1296)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
AurumTheEnd commented 3 years ago

I've noticed these too, but since no class of ours is found in the trace, this might be more of an issue to file at https://github.com/bobbylight/RSyntaxTextArea. Because the topmost trace is related to Token, which RSyntaxArea uses for syntax highlighting, it might have something to do with our Global Log Console being filled during compilation and the alike operations. We misuse the SAS highlighting to at least put a little color into the log (until a custom highlighter is implemented), and there might be some logic of SAS that like... checks for bracket pairing or whatever and we violate that by forcing it to parse log lines.

mkoncek commented 3 years ago

So the general problem is that sometimes the stderr / even GUI log is so flooded that i cannot easily tell whether the compilation succeeded or not. But i think given that this project is still in heavy development, we want to have rather more error outputs than a message like: "Something went wrong lol".

judovana commented 3 years ago

thye are harmless, and are caused by syntax highlghetr used in gui log. You can always set different.

judovana commented 3 years ago

The compiler actually reports pretty well. Not much intentnions to change anything here. if the compile failed, it clearly writes it failed.

-- Mgr. Jiri Vanek @.***

---------- Původní e-mail ---------- Od: mkoncek @.> Komu: pmikova/java-runtime-decompiler @. github.com> Datum: 27. 10. 2021 11:11:04 Předmět: Re: [pmikova/java-runtime-decompiler] AWT exceptions (Issue #214) "

So the general problem is that sometimes the stderr / even GUI log is so flooded that i cannot easily tell whether the compilation succeeded or not. But i think given that this project is still in heavy development, we want to have rather more error outputs rather than "Something went wrong lol".

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/pmikova/java-runtime-decompiler/issues/214#issuecomment-952705738) , or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAWFCS5SSKBMU5SFPF6W24DUI7F3BANCNFSM5GZYWXCA) . Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub) . "