Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » fillPolygon causing crash within SWT Native Code(Code runs well and a gc.fillPolygon(xAndYs) crashes it within SWT.)
fillPolygon causing crash within SWT Native Code [message #1859132] Sun, 14 May 2023 03:47 Go to next message
Tom Kratzke is currently offline Tom KratzkeFriend
Messages: 4
Registered: June 2011
Junior Member
Hello,

I have crash in some easy code and was wondering if anyone could suggest where I should be looking for the
error. The crash occurred in gc.fillPolygon(xAndYs) and xAndYs was: [969 520 976 514 978 519].

This is a pretty benign triangle of points and by shifting some code around, I can get it to crash elsewhere,
so I doubt that it's this particular call to fillPolygon. It doesn't seem to be a memory issue since when I
changed from -Xmx2000M to -Xmx4000M, the crash occurred at the same place.

From this dump file, can someone make a suggestion? Perhaps how to increase the amount of debug information?

Thanks!
Tom

I'm using:
Eclipse:
Version: 2023-03 (4.27.0)
Build id: 20230309-1520

SWT from Maven: 3.123.0
My execution environment is JavaSE-19, provided by jdk-20.

This happens with either the debug or run configurations.
I edited the command line to get rid of what I'm pretty sure are irrelevant options and classpath entries to get:
C:\Program Files\Java\jdk-20\bin\javaw.exe
-ea
-Xmx2000M
-Xms200M "...
-Dfile.encoding=UTF-8
-classpath "
... C:\Users\tmk\.m2\repository\org\eclipse\platform\org.eclipse.swt.win32.win32.x86_64\3.123.0\org.eclipse.swt.win32.win32.x86_64-3.123.0.jar;
C:\Users\tmk\.m2\repository\org\eclipse\platform\org.eclipse.swt\3.123.0\org.eclipse.swt-3.123.0.jar;
C:\Users\tmk\.m2\repository\junit\junit\4.11\junit-4.11.jar;
C:\Users\tmk\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar"
-XX:+ShowCodeDetailsInExceptionMessages"
com.tmk.MyMainClass

[Updated on: Sun, 14 May 2023 12:51]

Report message to a moderator

Re: fillPolygon causing crash within SWT Native Code [message #1859150 is a reply to message #1859132] Mon, 15 May 2023 21:29 Go to previous message
Martin J is currently offline Martin JFriend
Messages: 50
Registered: August 2015
Member
From your information, hard to tell what the problem is. It is often the case that unchecked null pointers cause crashes. Check this possibility.
Previous Topic:No drawing on AWT canvas using SWT_AWT bridge on Linux/wayland
Next Topic:EDGE browser : browser.evaluate("return retrieveData"); is not working
Goto Forum:
  


Current Time: Mon May 06 13:35:29 GMT 2024

Powered by FUDForum. Page generated in 0.03278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top