Bug 349528 - Java was started but returned exit code=3
Summary: Java was started but returned exit code=3
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-06-16 04:25 EDT by MaximeLecourt CLA
Modified: 2011-07-28 13:43 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MaximeLecourt CLA 2011-06-16 04:25:46 EDT
Hello,
I developped a plugin, which reads binary files.

I tested the plugin by launching a separate Eclipse Application using the MANIFEST.MF file, from inside Eclipse. At that time, the plugin works fine.

So I added the plugin to my dropins folder.

When launching Eclipse again, I can open the perspective I created for my plugin (so the plugin is found).
But when opening the binary file, Eclipse crashes.

I get as error (twice):
"This application has requested the runtime to terminate in an unusual way. Please contact the support team for more information"

Then, I get another message:
"java was started but returned exit code=3"

What is that error code ?
Comment 1 Dani Megert CLA 2011-06-16 05:58:54 EDT
Is there anything in .log?
Is there a VM dump?
Comment 2 MaximeLecourt CLA 2011-06-16 06:03:25 EDT
(In reply to comment #1)
> Is there anything in .log?
> Is there a VM dump?

Nothing in .log file.
If by VM dump you mean a hs_err????.pid file, there is none on my disks.
Comment 3 Dani Megert CLA 2011-06-16 09:01:02 EDT
Start with -debug and check whether more stuff is logged or shown in the command console.

Also, you could remote debug the problem. There's not much we can do without either getting a dump or your plug-in.

Also, make sure you don't mix 64- and 32-bit.
Comment 4 MaximeLecourt CLA 2011-06-16 09:36:02 EDT
Now I am getting an interesting result.

launching eclipse with -debug option, the plugin actually works fine.

As the computer is 32bit, there is no chance of mixing with 64bit system.

The whole plugin is around 70 megabites big, so it's a bit too much I think.
Comment 5 Dani Megert CLA 2011-06-16 09:42:51 EDT
>launching eclipse with -debug option, the plugin actually works fine.
That sounds strange.
Comment 6 MaximeLecourt CLA 2011-06-16 16:34:22 EDT
Has eclipse a different way to handle memory and heap space when in debug mode ?
Comment 7 Dani Megert CLA 2011-06-17 01:53:16 EDT
(In reply to comment #6)
> Has eclipse a different way to handle memory and heap space when in debug mode
> ?

No, it just prints out more stuff.
Comment 8 Prakash Rangaraj CLA 2011-06-17 10:16:21 EDT
Can you attach the code where you read the binary file?
Comment 9 Oleg Besedin CLA 2011-06-21 10:58:06 EDT
(In reply to comment #0)
> Hello,
> I developped a plugin, which reads binary files.
> 
> I tested the plugin by launching a separate Eclipse Application using the
> MANIFEST.MF file, from inside Eclipse. At that time, the plugin works fine.
> 
> So I added the plugin to my dropins folder.
> 
> When launching Eclipse again, I can open the perspective I created for my
> plugin (so the plugin is found).
> But when opening the binary file, Eclipse crashes.
> 

Please feel free to reopen if you track down the problem to something in the Eclipse code base.
Comment 10 MaximeLecourt CLA 2011-07-26 03:47:25 EDT
Apparently it's not an Eclipse bug. We believe we have a structure that is allocated but not freed.
Comment 11 Hugues Cassé CLA 2011-07-28 13:43:28 EDT
(In reply to comment #10)
> Apparently it's not an Eclipse bug. We believe we have a structure that is
> allocated but not freed.

When launched with -debug mode activated, the program is currently working ?