I am running Arch Linux using Xfce desktop.
I have tried the following script in Eclipse Keplar and Lunar with EPIC 0.5 and 0.6, but the same result.
Code:
#!/usr/bin/perl
use strict;
use warnings;
use DateTime;
DateTime->DefaultLocale("UTC");
my $dt0 = DateTime->now();
my $dateHour = $dt0->hour();
print $dateHour;
print "End\n";
If I run it in a terminal I just get a message 'Segmentation Fault'
If I comment out the DateTime lines, then it prints 'End' correctly
If I try and run it in the Debugger with DateTime lines commented out I get an error message:
An internal error occurred during: "Launching Test.pl".
java.lang.NullPointerException
and the log shows:
Code:
!SESSION 2014-08-12 16:10:14.453 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.7.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.core.jobs 4 2 2014-08-12 16:11:50.113
!MESSAGE An internal error occurred during: "child count update".
!STACK 0
java.lang.NullPointerException
at org.epic.debug.db.StackFrame.readTopFrameVars(StackFrame.java:397)
at org.epic.debug.db.StackFrame.getVariables(StackFrame.java:226)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getAllChildren(StackFrameContentProvider.java:51)
at org.eclipse.debug.internal.ui.model.elements.StackFrameContentProvider.getChildCount(StackFrameContentProvider.java:28)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.retrieveChildCount(ElementContentProvider.java:114)
at org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$2.run(ElementContentProvider.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
I have updated all my Perl modules (yes the DateTime module is installed!)
I have not been able to find any useful info on the EPIC forum or by searching the web.
Any ideas?