Pages: [1]   Go Down
Author Topic: Arduino IDE does not start  (Read 3910 times)
0 Members and 2 Guests are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have been working with Arduino for a while. I have installed the IDE on several computers without a hitch. I just purchased a new Atom based Shuttle computer. It's used for some monitoring so I needed something small and cheap. I also hooked up an Arduino Uno to it for temp monitoring and I installed the IDE on it. Well, the IDE will not run. The splash screen appears for a few seconds and disappears.

It's definitely a Java issue. The error in the Windows Event Log is as follows:
Faulting application name: javaw.exe, version: 6.0.160.1, time stamp: 0x4a73483d
Faulting module name: jvm.dll, version: 14.2.0.1, time stamp: 0x4a737ccf
Exception code: 0xc0000005
Fault offset: 0x00174bcc
Faulting process id: 0xd88
Faulting application start time: 0x01cd4c098d4394b2
Faulting application path: C:\Program Files\arduino-1.0.1\java\bin\javaw.exe
Faulting module path: C:\Program Files\arduino-1.0.1\java\bin\client\jvm.dll


Here is what I've done to troubleshoot:
- Installed Java on the computer, renamed the java folder in the Arduino program folder to java.old. It then tries to use the Java install in Windows. But I'm getting a similar event as above.
- Installed an older version of Arduino IDE. Same result.

Here is some info on my environment:
Intel Atom D2700  2.13Ghz
Windows 7 Professional 32-bit
2Gb RAM

Any help would be appreciated.

Thanks,

Bart
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You might try running Arduino by invoking java from the command line, as this should print the exception, if any, that's being thrown.  I think you can run "arduino.exe --l4j-debug" to get the right command line. 
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your response. I tried that command. Where does it print the exception? The application event log doesn't seem to log anything different.

Thanks,

Bart
Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your response. I tried that command. Where does it print the exception? The application event log doesn't seem to log anything different.

You aren't going to see much from the JVM -- the native part of the VM is failing with an access violation (it has tried to access memory that it doesn't own). So there are no Java traces or exceptions to show. The runtime library is failing completely.

I'd start with the basics. Can you run the VM at all? Run javaw.exe directly from the command line using an absolute path, passing it the -verbose option.  Does it run at all? Does java.exe run?

I suspect this is a permissions problem running jvm.dll or one of its dependencies. What happens if you run Arduino as Administrator?
Logged

I yield() for co-routines.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for helping me out.

See attached file for the results I get when I run java.exe from the Arduino java\bin folder in a command prompt.  I ran java.exe - verbose and I ran java.exe - version. Both commands run fine and it doesn't spawn any errors in the Application Log.
I also tried to run Arduino as Administrator and I get the same result, with the same error in the Application Log as running it normally.

One additional note: I'm running another program that requires Java just fine - APC Powerchute.

The mystery continues.

Thanks,

bart

* java from cmd.txt (25.26 KB - downloaded 37 times.)
« Last Edit: June 17, 2012, 12:55:28 pm by Belgian » Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for helping me out.

See attached file for the results I get when I run java.exe from the Arduino java\bin folder in a command prompt.  I ran java.exe - verbose and I ran java.exe - version. Both commands run fine and it doesn't spawn any errors in the Application Log.
I also tried to run Arduino as Administrator and I get the same result, with the same error in the Application Log as running it normally.

One additional note: I'm running another program that requires Java just fine - APC Powerchute.

Right, but it's likely not running /this/ JVM, but its own, or a system-wide VM.

The launch4j ref given earlier might be your best bet, actually. You just need to find the launch4j.log (or is it Arduino.log?) file it creates.

Given the VM can at least startup, it is probably failing when loading some of the native libs it needs, which other apps and simple tests will never reference.
Logged

I yield() for co-routines.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I attached the launch4j.log file. Doesn't tell me much. I'll search the exit code in Google and see if it comes upt with anything.

* launch4j.log (0.65 KB - downloaded 23 times.)
Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I attached the launch4j.log file. Doesn't tell me much. I'll search the exit code in Google and see if it comes upt with anything.

Well, you can try this yourself at the command line:

> cd C:\Program Files\arduino-1.0.1\
> C:\Program Files\arduino-1.0.1\java\bin\java.exe -Xms128m -Xmx128m -classpath "lib;C:\Program Files\arduino-1.0.1\java\lib\tools.jar;lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ecj.jar;lib\RXTXcomm.jar" processing.app.Base
Logged

I yield() for co-routines.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

So I tried the command you suggested. It errored out. Attached is the log it wrote to my Arduino folder. Really not sure what to do next. I guess I can log a bug report to the url in the log file.

If anyone has any ideas, it would be greatly appreciated.

Not sure if it has anything to do with it, but I'm running this on an Intel Atom processor. Does that matter? Is the Arduino IDE compatible with the Atom processor?

Thanks,

Bart

* hs_err_pid1104.log (1.39 KB - downloaded 20 times.)
« Last Edit: June 24, 2012, 01:01:52 pm by Belgian » Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

So I tried the command you suggested. It errored out. Attached is the log it wrote to my Arduino folder. Really not sure what to do next. I guess I can log a bug report to the url in the log file.

If anyone has any ideas, it would be greatly appreciated.

Not sure if it has anything to do with it, but I'm running this on an Intel Atom processor. Does that matter? Is the Arduino IDE compatible with the Atom processor?

Thanks,

Bart

Well, that's not good. Access violation in the JRE. This could be pretty much anything to do with the native runtime environment. It could even be bad RAM, or a bad driver.  We'd have to stare at the coredump to even start figuring this out.

Though, I am confused that your original error report mentions Java 6, and this latest error references Java 7. Is this really what Arduino installs? Why does it report 6 earlier, but 7 here?

We should rule out some odd config problem.

Can you just reinstall the software from a test account that has admin rights? Make sure you run the installer as an admin, and run it as an admin. See if you get the same results.
Logged

I yield() for co-routines.

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have the exact same problem, also an ATOM computer.   Have installed Arduino IDE countless times on computers, never a problem...until this little one which uses an ATOM processor.

This one is a fit-pci, small thing, like the shuttle.

So I think we've found something unusual with Java, unfortunately for us.

Not sure where or what to do with this issue.
Logged

Canada
Offline Offline
Full Member
***
Karma: 0
Posts: 246
Code Monkey
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have the exact same problem, also an ATOM computer.   Have installed Arduino IDE countless times on computers, never a problem...until this little one which uses an ATOM processor.

This one is a fit-pci, small thing, like the shuttle.

So I think we've found something unusual with Java, unfortunately for us.

Not sure where or what to do with this issue.

See here for enabling minidumps on Windows: http://kb.acronis.com/content/2191

Unfortunately, there is no information on this Exception in the Java bugparade, so this is a new JRE bug, or the OS on this architecture is flawed. But something happened on the native side, and the JRE can't even recover -- all it can tell you is that the OS might have a dump of the process prior to the exception.

You could try setting Arduino to use a different JRE than the bundled one.

In your Arduino install folder is another folder called "java". Rename this one to "java_dist". Download the Java 6 JRE and install it to the default location it suggests (probably somewhere in Program Files). The Arduino launcher should find that one instead and use it.

[Later]

Or, you know, just use the cloud: http://codebender.cc/
« Last Edit: July 01, 2012, 03:36:33 pm by The Clever Monkey » Logged

I yield() for co-routines.

Pages: [1]   Go Up
Jump to: