Bug? Memory leak?

Bruce Axtens

Active Member
Licensed User
Longtime User
My BOJ project is on screen at the moment doing nothing but waiting for me to hit "Save" or "Cancel". However, I have Java VisualVM open and it's watching BOJ slowly consume more and more heap. This seems a bit anomalous as there's nothing happening in my code; whatever's chewing RAM is doing it in the background/daemon code. In the time it's taken to get this email written the Heap Size has climbed to 200MB. This would explain why BOJ eventually locks-up if I don't respond to it immediately.

Screen shot and project archive attached.

Kind regards,
Bruce.
 

Attachments

  • BOJ.jar.JavaVisualVM.png
    BOJ.jar.JavaVisualVM.png
    50.3 KB · Views: 240
  • BOJ.zip
    2.9 KB · Views: 243

Bruce Axtens

Active Member
Licensed User
Longtime User
Yes, it is a release mode .jar that is running. Additional libraries in others.zip.
 

Attachments

  • others.zip
    85.1 KB · Views: 230

Bruce Axtens

Active Member
Licensed User
Longtime User
Thanks, Erel.

I've been using JavaW.exe to interpret the .jar file. Is that wrong? Should I be using something else? The graphic shows how it's defined in Task Scheduler.

If I use java.exe won't that popup a cmd window while the program runs?
 

Attachments

  • javaw calling boj.png
    javaw calling boj.png
    7.2 KB · Views: 242
Last edited:

Bruce Axtens

Active Member
Licensed User
Longtime User
It might be cheating, but I achieved this by pasting in a large blob of text.

B4X:
Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space
        at com.sun.glass.ui.win.WinSystemClipboard.popBytes(Native Method)
        at com.sun.glass.ui.win.WinSystemClipboard.popFromSystem(Unknown Source)
        at com.sun.glass.ui.SystemClipboard.getData(Unknown Source)
        at com.sun.glass.ui.ClipboardAssistance.getData(Unknown Source)
        at com.sun.javafx.tk.quantum.QuantumClipboard.getContent(Unknown Source)
        at javafx.scene.input.Clipboard.getContentImpl(Unknown Source)
        at javafx.scene.input.Clipboard.getContent(Unknown Source)
        at javafx.scene.input.Clipboard.getString(Unknown Source)
        at com.sun.javafx.webkit.PasteboardImpl.getPlainText(Unknown Source)
        at com.sun.webkit.WCPasteboard.getPlainText(Unknown Source)
        at com.sun.webkit.WebPage.twkProcessKeyEvent(Native Method)
        at com.sun.webkit.WebPage.dispatchKeyEvent(Unknown Source)
        at javafx.scene.web.WebView.processKeyEvent(Unknown Source)
        at javafx.scene.web.WebView.lambda$registerEventHandlers$31(Unknown Source)
        at javafx.scene.web.WebView$$Lambda$93/12265642.handle(Unknown Source)
        at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
        at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
 

Bruce Axtens

Active Member
Licensed User
Longtime User
I then deleted all the text, and pasted in the above error message until the following appeared
B4X:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d39d16e, pid=16104, tid=8004
#
# JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
# Java VM: Java HotSpot(TM) Client VM (25.31-b07 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [jfxwebkit.dll+0x40d16e]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\Bugmagnet\.joblog\hs_err_pid16104.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
 

Attachments

  • hs_err_pid16104.log.txt
    26.7 KB · Views: 301

Bruce Axtens

Active Member
Licensed User
Longtime User
Oops. Ok, will have to find a server to put the code on and let it run "forever" there. Sorry.
 
Top