FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

An internal error occurred during: "Launching"
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
davidswe



Joined: 19 Feb 2007
Posts: 12

PostPosted: Mon Jul 09, 2007 2:16 pm    Post subject: An internal error occurred during: "Launching" Reply with quote

I get this error when I try to debug a program using descent:
An internal error occurred during: "Launching"
And then gdb starts in console mode:

GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb)

and if I write start I get this:
start
Breakpoint 1 at 0x80931a1: file cmain.d, line 3.
Starting program: /home/daniel/Projects/alist/main
[Thread debugging using libthread_db enabled]
[New Thread -1210100032 (LWP 14425)]
[Switching to Thread -1210100032 (LWP 14425)]
main (argc=1, argv=0xbfc7fac4) at cmain.d:3
in cmain.d
Current language: auto; currently minimal
(gdb) 3 cmain.d: No such file or directory.

Using run however runs the program. But doesn't seem to give any info to descent, so no breakpoints or such.

I'm running Ubuntu Feisty 7.04 and with GDC and GDB.
Back to top
View user's profile Send private message
fraserofthenight



Joined: 08 Apr 2007
Posts: 33
Location: Seattle, WA

PostPosted: Wed Jul 11, 2007 3:30 pm    Post subject: Reply with quote

There have been some changes to GDB support since the last release, so try using the trunk version. If that doesn't work, I can try to reproduce the problem and see what I can do.
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
davidswe



Joined: 19 Feb 2007
Posts: 12

PostPosted: Thu Jul 12, 2007 4:09 am    Post subject: Reply with quote

Sure but I dont really know how to build descent. Using ant -f plugin.xml fails. Opening the projects in eclipse will give me 13155 errors. I know its alot to ask but could you compile them for me? Embarassed
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Thu Jul 12, 2007 11:45 am    Post subject: Reply with quote

In the next release (soon) it will hopefuly be fixed. Please be patient. Smile

Regards,
Ary
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
davidswe



Joined: 19 Feb 2007
Posts: 12

PostPosted: Sat Jul 14, 2007 1:39 pm    Post subject: Reply with quote

No problem! Smile
Back to top
View user's profile Send private message
L



Joined: 01 Sep 2007
Posts: 21
Location: Germany

PostPosted: Sat Sep 01, 2007 1:57 pm    Post subject: Reply with quote

Same for me.
I'm using Descent 0.4.2.20070822 with gdc and gdb on Ubuntu 7.04
Is this still the same problem, or have I done something wrong with the installation?
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sat Sep 01, 2007 2:37 pm    Post subject: Reply with quote

Could you check if there's something about it in the Error Log? Window -> Show View -> Other... -> PDE Runtime -> Error Log.

Thanks.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
L



Joined: 01 Sep 2007
Posts: 21
Location: Germany

PostPosted: Sat Sep 01, 2007 2:42 pm    Post subject: Reply with quote

I hope, this may help...

java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:350)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:479)
at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:265)
at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:894)
at org.eclipse.swt.custom.BusyIndicator.showWhile(org.eclipse.swt.gtk.linux.x86_3.2.2.v3236.jar.so)
at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:929)
at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:904)
at org.eclipse.debug.internal.ui.DebugUIPlugin.launchInForeground(DebugUIPlugin.java:834)
at org.eclipse.debug.ui.DebugUITools.launch(DebugUITools.java:526)
at org.eclipse.debug.ui.actions.AbstractLaunchToolbarAction.run(AbstractLaunchToolbarAction.java:81)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
at org.eclipse.swt.widgets.EventTable.sendEvent(org.eclipse.swt.gtk.linux.x86_3.2.2.v3236.jar.so)
at org.eclipse.swt.widgets.Widget.sendEvent(org.eclipse.swt.gtk.linux.x86_3.2.2.v3236.jar.so)
at org.eclipse.swt.widgets.Display.runDeferredEvents(org.eclipse.swt.gtk.linux.x86_3.2.2.v3236.jar.so)
at org.eclipse.swt.widgets.Display.readAndDispatch(org.eclipse.swt.gtk.linux.x86_3.2.2.v3236.jar.so)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at java.lang.reflect.Method.invoke(libgcj.so.70)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.NoClassDefFoundError: java.util.concurrent.locks.ReentrantLock
at descent.internal.debug.core.model.SingleThreadCli.<init>(SingleThreadCli.java:27)
at descent.internal.debug.core.model.DescentDebugTarget.<init>(DescentDebugTarget.java:59)
at descent.internal.debug.core.DescentLaunchConfigurationDelegate.launch(DescentLaunchConfigurationDelegate.java:76)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754)
at org.eclipse.debug.internal.ui.DebugUIPlugin$5.run(DebugUIPlugin.java:827)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Root exception:
java.lang.NoClassDefFoundError: java.util.concurrent.locks.ReentrantLock
at descent.internal.debug.core.model.SingleThreadCli.<init>(SingleThreadCli.java:27)
at descent.internal.debug.core.model.DescentDebugTarget.<init>(DescentDebugTarget.java:59)
at descent.internal.debug.core.DescentLaunchConfigurationDelegate.launch(DescentLaunchConfigurationDelegate.java:76)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754)
at org.eclipse.debug.internal.ui.DebugUIPlugin$5.run(DebugUIPlugin.java:827)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

eclipse.buildId=M20070212-1330
java.fullversion=GNU libgcj 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sat Sep 01, 2007 3:04 pm    Post subject: Reply with quote

Quote:

java.lang.NoClassDefFoundError: java.util.concurrent.locks.ReentrantLock

That says it all. That class was introduced in Java 1.5. Do you have a Java version >= 1.5 installed?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
L



Joined: 01 Sep 2007
Posts: 21
Location: Germany

PostPosted: Sat Sep 01, 2007 3:23 pm    Post subject: Reply with quote

Yes, i've installed the sun-java5 package from ubuntu.
It has been a while since I've had something to do with java, so I still don't know what to do etc...
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sat Sep 01, 2007 3:37 pm    Post subject: Reply with quote

I guess you have Java 1.5 installed, but Eclipse isn't using it. In Eclipse, go to Help -> About Eclipse SDK. There click Configuration Details and search for java.version. It should be something like:

java.version=1.5.0_x

Wether it is that or not, please reply so that others with the same problem can fix it, or we can still see how to solve the problem.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sat Sep 01, 2007 3:39 pm    Post subject: Reply with quote

Also check for the value of java.vm.version=1.5.0_11-b03. Also check the value of java.home so you can run java and see it's version.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
L



Joined: 01 Sep 2007
Posts: 21
Location: Germany

PostPosted: Sat Sep 01, 2007 3:56 pm    Post subject: Reply with quote

Thx so far...

java.version=1.4.2
...
java.vm.version=4.1.2 (Ubuntu 4.1.2-0ubuntu5)
...
java.home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre

Doh!

I've changed
/etc/eclipse/java_home
so that the first line is
/usr/lib/jvm/java-1.5.0-sun
Now eclipse uses java1.5 and debugging works somehow...
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Sat Sep 01, 2007 3:58 pm    Post subject: Reply with quote

Sweet!

If you find anything wrong with debugging with Descent + GDB, I'd really appreciate if you report it here or in trac. Few people gave feedback on this topic...

I'm glad the problem was not Descent (less work for me Razz).
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
L



Joined: 01 Sep 2007
Posts: 21
Location: Germany

PostPosted: Sat Sep 01, 2007 4:07 pm    Post subject: Reply with quote

Somtimes, but not always, the program stops at the breakpoint and eclipse suggest to switch to the debug view, but I get the following error. Also I can't view the code being debugged in the ui. I have to use gdb manually, typing continue and so on...
Does this happen, because I was too lazy to install a gdb version that supports D ?

Error:
Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".

java.lang.NullPointerException
at java.io.File.<init>(File.java:194)
at descent.internal.debug.core.DescentSourceLookupParticipant.findSourceElements(DescentSourceLookupParticipant.java:38)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:136)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:480)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:737)
at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:147)
at org.eclipse.debug.ui.DebugUITools.lookupSource(DebugUITools.java:689)
at org.eclipse.debug.internal.ui.elements.adapters.StackFrameSourceDisplayAdapter$SourceLookupJob.run(StackFrameSourceDisplayAdapter.java:101)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent All times are GMT - 6 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group