Output beginning:
Looking for 'HaikuVM.properties' in path: 'C:\Users\chinm_000\AppData\Local\Temp\HaikuVMPlugin6606925619872000512\asdf';'D:\software\haikuvm132\config'
Loaded from 'D:\software\haikuvm132\config\HaikuVM.properties'
D:\software\haikuvm132\bin../bin/haikuupload trial..hex
compile and upload using arduino with last port and board settings
0 [main] sh 6468 sync_with_child: child 8072(0x164) died before initializa
tion with status code 0xC0000135
206 [main] sh 6468 sync_with_child: child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: [upload] Error 128
error while uploading files
java.lang.Exception: Script 'D:\software\haikuvm132\bin../bin/haikuupload.bat'
exited with errorcode=2
at haikuvm.pc.tools.HaikuVM.executeBlocking(HaikuVM.java:582)
at haikuvm.pc.tools.HaikuVM.call(HaikuVM.java:228)
at haikuvm.pc.tools.HaikuVM.haikuupload0(HaikuVM.java:208)
at haikuvm.pc.tools.HaikuVM.haiku0(HaikuVM.java:153)
at haikuvm.pc.tools.HaikuVM.main(HaikuVM.java:103)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was able to reproduce it on Windows 8. (I'm still using XP. And XP has no problem with this configurations. I wonder.)
Here is a workaround:
When using with configurations arduinoIDEUpload or arduinoIDEVerify on Windows 8. Please identify and change two property values in file HaikuVM.properties like this:
Thanks, Bob. Is there a way to set these properties from the command line? I have multiple Haiku projects, and each one is in a separate directory in $Arduino/libraries/ folder.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
--Config arduinoIDE works fine.
--Config arduinoIDEUpload fails with cryptic error.
Command:
D:\software\haikuvm132\bin\haiku.bat -v --Config arduinoIDEUpload --classpath \"F:\runtime-EclipseApplication(1)\asdf\lib\bootstrap.jar;F:\runtime-EclipseApplication(1)\asdf\lib\haikuRT.jar;F:\runtime-EclipseApplication(1)\asdf\bin;D:\software\haikuvm132\lib\pc\haikutools.jar;D:\software\haikuvm132\lib\nxt\classes.jar;D:\software\haikuvm132\lib\pc\bcel-5.2.jar;D:\software\haikuvm132\lib\pc\RXTXcomm.jar;D:\software\haikuvm132\lib\examples\mylib.jar\" F:\runtime-EclipseApplication(1)\asdf\src\asdf\trial.java
Output beginning:
Looking for 'HaikuVM.properties' in path: 'C:\Users\chinm_000\AppData\Local\Temp\HaikuVMPlugin6606925619872000512\asdf';'D:\software\haikuvm132\config'
Loaded from 'D:\software\haikuvm132\config\HaikuVM.properties'
towards the end:
totalMethods= 9
totalBClength= 122
totalConstLength= 54
totalClassesLength=46
Done with generating c files
D:\software\haikuvm132\bin../bin/haikuupload trial..hex
compile and upload using arduino with last port and board settings
0 [main] sh 6468 sync_with_child: child 8072(0x164) died before initializa
tion with status code 0xC0000135
206 [main] sh 6468 sync_with_child: child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
make: [upload] Error 128
error while uploading files
java.lang.Exception: Script 'D:\software\haikuvm132\bin../bin/haikuupload.bat'
exited with errorcode=2
at haikuvm.pc.tools.HaikuVM.executeBlocking(HaikuVM.java:582)
at haikuvm.pc.tools.HaikuVM.call(HaikuVM.java:228)
at haikuvm.pc.tools.HaikuVM.haikuupload0(HaikuVM.java:208)
at haikuvm.pc.tools.HaikuVM.haiku0(HaikuVM.java:153)
at haikuvm.pc.tools.HaikuVM.main(HaikuVM.java:103)
I was able to reproduce it on Windows 8. (I'm still using XP. And XP has no problem with this configurations. I wonder.)
Here is a workaround:
When using with configurations arduinoIDEUpload or arduinoIDEVerify on Windows 8. Please identify and change two property values in file HaikuVM.properties like this:
(The trick is: Don't use a semicolon ";" in those property values.)
Last edit: genom2 2015-06-18
Thanks, Bob. Is there a way to set these properties from the command line? I have multiple Haiku projects, and each one is in a separate directory in $Arduino/libraries/ folder.
Yes, there is a way, the following works for me: