|FORTRAN Program runs fine but java NullPointerException on debug [message #1198998]
||Wed, 20 November 2013 16:26
| James Furness
Registered: November 2013
Unable to post links so sorry for the poor formatting...|
I have a question running on stack exchange regarding this, but so far there is little progress. The contents of this is below. I thought asking here might be wise.
I encounter the a problem as can be seen in the attached screenshot when I try to debug 'dalton.x'. We use Cmake to generate the Makefile and, following instructions, I imported this to eclipse using
cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ./
It seems to have imported fine, I can build the project within Eclipse and I can run dalton.x fine, again within Eclipse, but debugging throws the exception.
Following the advice on stack exchange it seems this is similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=288106.
So I have been trying to avoid using virtual folders in this project, to achieve this I followed a thread and switched the flag CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES to false within cmake. I have remade the eclipse project using the above cmake command (after rm the original .project and .cproject files.
This has changed the Eclipse view such that the exclamation mark in triangle in the bottom left of the project icon is now gone, but it did not solve the problem. I still have the NPE upon starting a debug build.
Any ideas on how to solve, or work around this problem?
I have begun working on a code (the DALTON quantum chemistry code) that is millions of lines of FORTRAN in size. I would like to debug this through Eclipse so have been working on getting it setup within the IDE.
All is running fine, the code seems to be imported correctly and Eclipse will build it fine (with debug settings) through the makefile that Cmake produces for it. The program will also run fine within Eclipse printing the expected results to the console. However when I come to try debugging it I am presented with a java.lang.NullPointerException error that I am at a loss on how to solve.
Some clue to things not being right can be seen in the project explorer. Eclipse does not seem to handle the "dalton.exe" executable in the same way it handles the executable produced by making (same compiler, gfortran) a simple helloworld program I made to test that Eclipse was debugging Fortran files as expected. It appears to be treating the executable as a text file.
I am unable to post images directly as a new user so I will have to provide a link to a hosted version. (I will loiter and answer any questions I find I can to change this )
Any help is greatly appreciated.
SCREENSHOT : [NO LINKS ATTACHED INSTEAD]
I have looked at the .metadata/.log for the workspace, I can't make much of the errors I'm afraid. It logs the following:
!SESSION 2013-11-20 13:46:52.774 -----------------------------------------------
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.parallel.product
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.parallel.product
!ENTRY org.eclipse.core.net 1 0 2013-11-20 13:47:30.190
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!ENTRY org.eclipse.debug.ui 4 0 2013-11-20 13:48:54.496
!MESSAGE Tab group extension: org.eclipse.cdt.launch.applicationProfileLaunchTabGroup for type org.eclipse.cdt.launch.applicationLaunchType for the [profile] mode has been replaced by extension: org.eclipse.cdt.launch.applicationProfileLaunchTabGroup
!ENTRY org.eclipse.core.jobs 4 2 2013-11-20 13:49:02.238
!MESSAGE An internal error occurred during: "Launching DALTON-Debug_build Configuration".
END STACK EXCHANGE
Powered by FUDForum
. Page generated in 0.09579 seconds