Digistump Forums
The Digispark => Digispark (Original) Support => Topic started by: maudette01432 on December 31, 2012, 12:28:31 pm
-
I downloaded the "latest" Digispark package onto my Mountain Lion iMac and when I unzip it and attempt to start it the OS claims it's broken. My regular Arduino package starts just fine as well as processing and other processing based apps (like ReplicatorG)....but this will not start.
Anyone else having this problem. I attempted the download twice with the same results?
-
I removed the JavaApplicationStub from the Contents/MacOS and copied in the one from my Arduino package and it starts now. I\'m guessing the IDE got packaged up wrong or with a broken/incompatible version of the Java App launcher. I\'ve seen several other Java based packages cause this issue on MountainLion.
-
You can also open a terminal, navigate to Contents/Resources/Java within the app, and run
JAVA_ARCH=i386 java -cp core.jar:ecj.jar:jna.jar:pde.jar:quaqua.jar:RXTXcomm.jar processing.app.Base
-
Thanks guys I will apply this to the download version the next chance I get
-
I am experiencing the same problem, copying in the JavaApplicationStub did not help. However the command given by @willscott allows me to run and use my digisparks while waiting for a fix.
(Platform: OSX 10.8.2, MBP 17\")
-
I apologize if this was answered or brought up already - but have you guys tried going to System Preferences -> Security and Privacy -> and set it to allow code from anywhere not just from the App store and known developers?
-
Yes - gatekeeper is set appropriately. I have it setup so newly downloaded programs like Arduino need to be right-clicked and opened for gate keeper to allow them. The latest 1/4/13 version still has the startup issue for me and once again replacing the JavaApplicationStub from a working version of ReplicatorG did the trick.
The .zip also seems to have some __MACOSX directory under it with another \"Arduino\" binary (marked as broken before even clicking it).
-
I too can confirm that my gatekeeper setting is /not/ the problem. The error message is \'\"Arduino-Digispark.app\" is damaged an can\'t be opened. You should move it to the Trash.\'
-
I\'ve checked and the new 2013-01-04 version shows the same error message.
-
caskey - I agree. I\'ve done some Java app packaging on OSX and the \"app\" creation is usually the culprit...
-
Uploading a new copy now
-
Great! I\'ll try it out as soon as it shows up. Thanks so much.
-
It is up - please unzip it to a new location not over the old version - let me know how it goes!
-
Still getting the damaged message here. Replacing the \"stub\" and clicking gives the gatekeeper message....right clicking open with the replaced stub works as expected and adds it to the gatekeeper list.
-
Tried again too, same problem.
-
And it works for both of you if you replace the \"stub\" file? Or caskey does it only work for you with the command from will?
So I made this latest build by grabbing a completely new copy of the Arduino.app and copying in the necessary Digispark files, the \"stub\" file was not touched in any way. That\'s what stumps me - works perfect on 10.7 and even on 10.8 for others...
Since it is working with the workaround I might not get to this right away but I\'ll have to load 10.8.2 in the next few days and try to figure out a permanent fix
-
Copying JavaApplicationStub from a good copy of Arduino to the Digispark version does not work for me.
However, What does work (for me, at least) is this:
- No need to make modifications to the Digispark branded version of Arduino.
- In System Preferences/Security & Privacy/General Tab, click the lock to make changes, enter your password.
- Change the \"Allow applications downloaded from:\" to \"Anywhere\".
- Close System Preferences (probably not necessary, but I always do this)
- Run the Digispark branded version of Arduino (no need to right click)
- You can now go back into System Preferences and change the Security Settings back the way you had them (probably not a good idea to leave it set to \"Anywhere\").
-
Mac OS 10.7.5 here trying to use 1.0.3. I copied the working java stub from the original arduino.app and the app runs (it won\'t without doing that first). However I get an error when trying to verify or upload:
Cannot run program \"/Digispark/Arduno.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++\" error=13, Permission Denied.
Yes gatekeeper setting is set to \"Anywhere\"
I\'d like to play with my digisparks, any help would be awesome!
-
Looks like this might be an issue with permissions similar to the linux one. I need to look a bit further but there are definitely execute bits missing on the avr-g++ etc binaries.
-
Ok, so on closer look, it seems the file permissions bits have been lost/mangled by the packing method (ie the way the zip was created). Using:
unzip -Zl arduino-1.03-osx-digispark-2013-01-08.zip
-
Ooops... try again :-)
using:
unzip -Zl arduino-1.03-osx-digispark-2013-01-08.zip
shows lines like:
-rw-a-- 6.3 fat 51744 bx 11706 defN 10-Dec-12 04:10 Mac/Digispark Ready - Arduino 1.03/Arduino.app/Contents/MacOS/JavaApplicationStub
Which looks to me like it was created from a FAT filesystem which has very limited permissions - in particular doesn't have/need execute permissions. Compare this to the same file in the teensy3 zip file:
-rwxr-xr-x 3.0 unx 51776 bx 11797 defX 12-Jan-13 22:34 Arduino.app/Contents/MacOS/JavaApplicationStub
here the filesystem is 'unx' and this has correct file permissions bits (ie -rwxr-xr-x).
Since the permissions are missing from the Digispark zip file I suspect that means either it was created from a FAT filesystem or that zip stripped the permission - I think the latter is unlikely.
The real fix for this is to repackage it with the correct permissions, however in the interim, given that we don't know for sure which files should be executable but that an execute bit being set where it isn't needed shouldn't break anything, one really, really ugly fix would be to open a terminal, cd into the digispark's Arduino.app directory, then run something like:
find . -type f -exec sudo chmod +x {} \;
which will recursively set the execute bit on every file - but take care.....
-
Mac OS 10.7.5 here trying to use 1.0.3. I copied the working java stub from the original arduino.app and the app runs (it won\'t without doing that first). However I get an error when trying to verify or upload:
Cannot run program \"/Digispark/Arduno.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++\" error=13, Permission Denied.
Yes gatekeeper setting is set to \"Anywhere\"
I\'d like to play with my digisparks, any help would be awesome!
I fixed this quickly in 10.6.8 by going to /Applications/ and choosing "Show Package Contents" (right click on Arduino). I then right clicked on the Contents folder, and changed the permissions to Read and Write (Apply to enclosed items...)
-
What an exercise in frustration! Here's what I did to make it work:
1. Download Digispark Arduino and move it to the Applications folder
2. Copy JavaApplicationStub from non-Digispark Arduino folder into Digispark folder (see [size=78%]http://digistump.com/board/index.php/topic,119.msg671.html#msg671 (http://digistump.com/board/index.php/topic,119.msg671.html#msg671)[/size])
3. Change folder permissions (see http://digistump.com/board/index.php/topic,119.msg1555.html#msg1555)
4. Using Terminal, launch Digispark Arduino from [size=78%]Contents/Resources/Java within the app [/size][size=78%](see http://digistump.com/board/index.php/topic,119.msg674.html#msg674)[/size]
5. Set both board and programmer to Digispark (see http://digistump.com/board/index.php/topic,259.msg1401.html#msg1401)
Hope this saves others some time.
-
I just re-checked my original 'fix' with a fresh install, and for me on 10.8.2 (not that I think that is an issue), there is no need to replace any files, just fix the permissions then it works as expected, just click the arduino icon and away you go!