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

Undeclared Mem error in Windows #371

Open
JansenSmith opened this issue Jul 23, 2023 · 10 comments
Open

Undeclared Mem error in Windows #371

JansenSmith opened this issue Jul 23, 2023 · 10 comments
Assignees
Labels
Hardware Problem this issue arises from hardware problems, not a software bug per se

Comments

@JansenSmith
Copy link
Member

debug info:

java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:467)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.(BufferedImage.java:351)
at sun.swing.JLightweightFrame.resizeBuffer(JLightweightFrame.java:420)
at sun.swing.JLightweightFrame.reshape(JLightweightFrame.java:407)
at java.awt.Component.setBounds(Component.java:2261)
at java.awt.Window.setBounds(Window.java:3503)
at java.awt.Component.resize(Component.java:2184)
at java.awt.Component.setSize(Component.java:2173)
at java.awt.Window.setSize(Window.java:908)
at javafx.embed.swing.SwingNode.lambda$locateLwFrame$20(SwingNode.java:683)
at javafx.embed.swing.SwingNode$$Lambda$686/1388524169.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@madhephaestus
Copy link
Member

Hmm, can you take a look at your BowlerStudio.bat file and see what heap size is specified?

@JansenSmith
Copy link
Member Author

Hmm, can you take a look at your BowlerStudio.bat file and see what heap size is specified?

C:\Program Files (x86)\Commonwealth Robotics BowlerStudio\BowlerStudioApp\BowlerStudio.bat

@madhephaestus i don't see anything referencing heap in the contents
"%~dp0\jre\bin\java.exe" -jar "%~dp0\LatestFromGithubLaunch.jar" CommonWealthRobotics BowlerStudio BowlerStudio.jar "%~dp0\jre\bin\java.exe" -jar

@madhephaestus
Copy link
Member

what files are are you opening?

How many chars?

@madhephaestus
Copy link
Member

madhephaestus commented Jul 24, 2023

@JansenSmith Did that fix it?

@JansenSmith
Copy link
Member Author

checking

@JansenSmith
Copy link
Member Author

@madhephaestus
crashed again. only one file open - https://github.com/Halloween2020TheChild/Zoltar/blob/main/CrystalStand.groovy
901 Bytes

Code in C:\Users\Jansen\bowler-workspace\gitcache\github.com\Halloween2020TheChild\Zoltar\CrystalStand.groovy changed
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:467)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.(BufferedImage.java:351)
at sun.swing.JLightweightFrame.resizeBuffer(JLightweightFrame.java:420)
at sun.swing.JLightweightFrame.reshape(JLightweightFrame.java:407)
at java.awt.Component.setBounds(Component.java:2261)
at java.awt.Window.setBounds(Window.java:3503)
at java.awt.Component.resize(Component.java:2184)
at java.awt.Component.setSize(Component.java:2173)
at java.awt.Window.setSize(Window.java:908)
at javafx.embed.swing.SwingNode.lambda$locateLwFrame$20(SwingNode.java:683)
at javafx.embed.swing.SwingNode$$Lambda$689/158004957.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.Exception
at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.except(IssueReportingExceptionHandler.java:228)
at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.uncaughtException(IssueReportingExceptionHandler.java:51)
at com.neuronrobotics.bowlerstudio.tabs.LocalFileScriptTab$1.uncaughtException(LocalFileScriptTab.java:58)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
at java.awt.EventDispatchThread.processException(EventDispatchThread.java:227)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:219)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Saving history

@JansenSmith
Copy link
Member Author

@madhephaestus
this time, didn't crash..... hanged on running the script, remained hanged for ~6 minutes before i tried to press stop in Bowler. eventually seemed to successfully Stop but then crashed with this different error:
Skip Writing file contents, file is same
Script exception of type= java.lang.RuntimeException

C:\Users\Jansen\bowler-workspace\gitcache\github.com\Halloween2020TheChild\Zoltar\CrystalStand.groovy Interupted

java.lang.Exception
at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.except(IssueReportingExceptionHandler.java:228)
at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.uncaughtException(IssueReportingExceptionHandler.java:51)
at com.neuronrobotics.bowlerstudio.tabs.LocalFileScriptTab$1.uncaughtException(LocalFileScriptTab.java:58)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
at java.awt.EventDispatchThread.processException(EventDispatchThread.java:227)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:219)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

java.lang.OutOfMemoryError: Java heap space
at sun.swing.JLightweightFrame.syncCopyBuffer(JLightweightFrame.java:276)
at sun.swing.JLightweightFrame.resizeBuffer(JLightweightFrame.java:424)
at sun.swing.JLightweightFrame.reshape(JLightweightFrame.java:407)
at java.awt.Component.setBounds(Component.java:2261)
at java.awt.Window.setBounds(Window.java:3503)
at java.awt.Component.resize(Component.java:2184)
at java.awt.Component.setSize(Component.java:2173)
at java.awt.Window.setSize(Window.java:908)
at javafx.embed.swing.SwingNode.lambda$locateLwFrame$20(SwingNode.java:683)
at javafx.embed.swing.SwingNode$$Lambda$689/1430910706.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
script error
Saving history

@JansenSmith
Copy link
Member Author

crashed again
java.lang.OutOfMemoryError: Java heap space
at sun.swing.JLightweightFrame.syncCopyBuffer(JLightweightFrame.java:276)
at sun.swing.JLightweightFrame.resizeBuffer(JLightweightFrame.java:424)
at sun.swing.JLightweightFrame.reshape(JLightweightFrame.java:407)
at java.awt.Component.setBounds(Component.java:2261)
at java.awt.Window.setBounds(Window.java:3503)
at java.awt.Component.resize(Component.java:2184)
at java.awt.Component.setSize(Component.java:2173)
at java.awt.Window.setSize(Window.java:908)
at javafx.embed.swing.SwingNode.lambda$locateLwFrame$20(SwingNode.java:683)
at javafx.embed.swing.SwingNode$$Lambda$690/2124599769.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.Exception
at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.except(IssueReportingExceptionHandler.java:228)
at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.uncaughtException(IssueReportingExceptionHandler.java:51)
at com.neuronrobotics.bowlerstudio.tabs.LocalFileScriptTab$1.uncaughtException(LocalFileScriptTab.java:58)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
at java.awt.EventDispatchThread.processException(EventDispatchThread.java:227)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:219)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Saving history

@madhephaestus
Copy link
Member

madhephaestus commented Jul 25, 2023

Can you run JVisualVM at the same time and look for runnaway threads or nail down which thread is using all the memory? Even better, pause the thread using the memory in the debugger to see what its doing? (i can not reproduce this problem BTW)

One other thing to check: Run MEMTEST. This is the same symptom that pointed towards bad ram. At the very least it is something that should be ruled out, especially since you touched the ram recently.

@madhephaestus madhephaestus added the Hardware Problem this issue arises from hardware problems, not a software bug per se label Jul 25, 2023
@madhephaestus
Copy link
Member

I have labeled this a hardware problem until the system passes memtest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware Problem this issue arises from hardware problems, not a software bug per se
Projects
None yet
Development

No branches or pull requests

2 participants