Mac OS X deployment issues

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Mac OS X deployment issues

kintel
Administrator
Hi all,

I just ran into a weird issue on OpenSCAD on Mac OS X. If there are any experienced Mac people out there, I could really need some help:

o I'm building the latest master using Xcode 5's clang compiler on Mac OS X 10.8.5, using the standard method of deployment:
  $ source setenv_mac-clang.sh
  $ ./scripts/macosx-build-dependencies.sh -6d
  $ ./scripts/publish-macosx.sh  (to build without uploading, just comment out everything after 'echo "Uploading…"'

o The resulting binary can be found at http://files.openscad.org/OpenSCAD-2013.10.22.dmg

The problem is that the binary app doesn't launch properly:
o Cmd-line works: ./OpenSCAD.app/Contents/MacOS/OpenSCAD
o Double-click fails to launch It exits immediately and leaves this in the syslog:
   2013-10-24 1:29:01.309 PM Dock[354]: no information back from LS about running process
   2013-10-24 1:29:01.410 PM com.apple.launchd.peruser.501[304]: ([0x0-0x3f53f5].org.openscad.OpenSCAD[67886]) Exited with code: 1
o open from a terminal (open ./OpenSCAD.app) fails with the following message:
   LSOpenURLsWithRole() failed with error -10810 for the file /Volumes/OpenSCAD/OpenSCAD.app.

These symptoms are discussed online in various places, with lots of weird suggestions, all of which don't work.
I've been fighting with this for a few days, and finally figured out I might need help :/

Any ideas?

 -Marius

PS. The current release (2013.06) was built using gcc-llvm on the latest Xcode 4 at the time on Mac OS X 10.7

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

Joshua Holbrook
So you upgraded to Myavericks? I've heard that's caused some awkward
problems, maybe someone else is running into a similar problem
elsewhere on like SO or something?

I'm straight terrible at compiling stuff, so that's all I got. :(

Good luck!

--Josh

On Thu, Oct 24, 2013 at 11:37 AM, Marius Kintel <[hidden email]> wrote:

> Hi all,
>
> I just ran into a weird issue on OpenSCAD on Mac OS X. If there are any experienced Mac people out there, I could really need some help:
>
> o I'm building the latest master using Xcode 5's clang compiler on Mac OS X 10.8.5, using the standard method of deployment:
>   $ source setenv_mac-clang.sh
>   $ ./scripts/macosx-build-dependencies.sh -6d
>   $ ./scripts/publish-macosx.sh  (to build without uploading, just comment out everything after 'echo "Uploading…"'
>
> o The resulting binary can be found at http://files.openscad.org/OpenSCAD-2013.10.22.dmg
>
> The problem is that the binary app doesn't launch properly:
> o Cmd-line works: ./OpenSCAD.app/Contents/MacOS/OpenSCAD
> o Double-click fails to launch It exits immediately and leaves this in the syslog:
>    2013-10-24 1:29:01.309 PM Dock[354]: no information back from LS about running process
>    2013-10-24 1:29:01.410 PM com.apple.launchd.peruser.501[304]: ([0x0-0x3f53f5].org.openscad.OpenSCAD[67886]) Exited with code: 1
> o open from a terminal (open ./OpenSCAD.app) fails with the following message:
>    LSOpenURLsWithRole() failed with error -10810 for the file /Volumes/OpenSCAD/OpenSCAD.app.
>
> These symptoms are discussed online in various places, with lots of weird suggestions, all of which don't work.
> I've been fighting with this for a few days, and finally figured out I might need help :/
>
> Any ideas?
>
>  -Marius
>
> PS. The current release (2013.06) was built using gcc-llvm on the latest Xcode 4 at the time on Mac OS X 10.7
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

kintel
Administrator
On 2013-10-24, at 13:40 PM, Joshua Holbrook <[hidden email]> wrote:

> So you upgraded to Myavericks? I've heard that's caused some awkward
> problems, maybe someone else is running into a similar problem
> elsewhere on like SO or something?
>
No, I'm holding out on that one - I just upgraded to 10.8 this summer ;)

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

devlaam
In reply to this post by kintel
Hi Marius,

Data:
  machine Software  OS X 10.8.5 (12F45)
  Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
  Target: x86_64-apple-darwin12.5.0

Compiling my own version (2013.06 + loophack):
  Double clicking the icon never worked for me, so i always
  start from the command line. However, i never looked in the
  syslog either. Looking ... no messages.
  $ open ./OpenScad => works, no messages
  $ ./OpenSCAD.app/Contents/MacOS/OpenSCAD
    OpenSCAD[2231:707] *** WARNING: Method userSpaceScaleFactor in class
    NSView is deprecated on 10.7 and later. It should not be used in
    new applications. Use convertRectToBacking: instead.
    OpenGL Program Validation results:
      Validation Failed: Current draw framebuffer is invalid.
  But this works never the less without any problems

Your latest version :
  $ git clone git://github.com/openscad/openscad
  $ export BOOSTDIR=/opt/local/
  $ qmake
  $ make
  ... getting coffee ....
  OK, compile done, with the usual warnings.
  Double clicking icon: does not work (shows dir contents)
  $ open ./OpenSCAD.app
  LSOpenURLsWithRole() failed with error -10810 for the file /Volumes/DATA/temp/openscad/OpenSCAD.app.
  $ ./OpenSCAD.app/Contents/MacOS/OpenSCAD
    QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
    2013-10-24 20:07:44.273 OpenSCAD[2351:707] *** WARNING: Method userSpaceScaleFactor in
    class NSView is deprecated on 10.7 and later. It should not be used in new applications.
    Use convertRectToBacking: instead.
    OpenGL Program Validation results:
    Validation Failed: Current draw framebuffer is invalid.
  But works as far as i can see. Renders objects.

The errorcode sais:

So it seems that it behaves partly the same,

>From the LaunchServicesReference:  
  https://developer.apple.com/library/mac/documentation/Carbon/Reference/LaunchServicesReference/LaunchServicesReference.pdf

kLSUnknownErr: -10810
  An unknown error has occurred.
  Available in OS X v10.0 and later.

does not make me much wiser either.
I do not have a clue right now why this is
so, thus for the moment this is all i have to
offer.

Ruud


On 24-10-13 19:37, Marius Kintel wrote:

> Hi all,
>
> I just ran into a weird issue on OpenSCAD on Mac OS X. If there are any experienced Mac people out there, I could really need some help:
>
> o I'm building the latest master using Xcode 5's clang compiler on Mac OS X 10.8.5, using the standard method of deployment:
>    $ source setenv_mac-clang.sh
>    $ ./scripts/macosx-build-dependencies.sh -6d
>    $ ./scripts/publish-macosx.sh  (to build without uploading, just comment out everything after 'echo "Uploading…"'
>
> o The resulting binary can be found at http://files.openscad.org/OpenSCAD-2013.10.22.dmg
>
> The problem is that the binary app doesn't launch properly:
> o Cmd-line works: ./OpenSCAD.app/Contents/MacOS/OpenSCAD
> o Double-click fails to launch It exits immediately and leaves this in the syslog:
>     2013-10-24 1:29:01.309 PM Dock[354]: no information back from LS about running process
>     2013-10-24 1:29:01.410 PM com.apple.launchd.peruser.501[304]: ([0x0-0x3f53f5].org.openscad.OpenSCAD[67886]) Exited with code: 1
> o open from a terminal (open ./OpenSCAD.app) fails with the following message:
>     LSOpenURLsWithRole() failed with error -10810 for the file /Volumes/OpenSCAD/OpenSCAD.app.
>
> These symptoms are discussed online in various places, with lots of weird suggestions, all of which don't work.
> I've been fighting with this for a few days, and finally figured out I might need help :/
>
> Any ideas?
>
>   -Marius
>
> PS. The current release (2013.06) was built using gcc-llvm on the latest Xcode 4 at the time on Mac OS X 10.7
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
>

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

devlaam
In reply to this post by kintel
BTW, i get the same error entry in the log.
and it does not seem to be one of the standard
errors (permissions, quarantine, erroneous plist)
so what then , mixed 32/64 bit libs?

This can be a hard one.

If nothing helps, role back all commits one by one
until the error disappears, and see what caused it.

success!

Ruud.


On 24-10-13 19:37, Marius Kintel wrote:

> Hi all,
>
> I just ran into a weird issue on OpenSCAD on Mac OS X. If there are any experienced Mac people out there, I could really need some help:
>
> o I'm building the latest master using Xcode 5's clang compiler on Mac OS X 10.8.5, using the standard method of deployment:
>    $ source setenv_mac-clang.sh
>    $ ./scripts/macosx-build-dependencies.sh -6d
>    $ ./scripts/publish-macosx.sh  (to build without uploading, just comment out everything after 'echo "Uploading…"'
>
> o The resulting binary can be found at http://files.openscad.org/OpenSCAD-2013.10.22.dmg
>
> The problem is that the binary app doesn't launch properly:
> o Cmd-line works: ./OpenSCAD.app/Contents/MacOS/OpenSCAD
> o Double-click fails to launch It exits immediately and leaves this in the syslog:
>     2013-10-24 1:29:01.309 PM Dock[354]: no information back from LS about running process
>     2013-10-24 1:29:01.410 PM com.apple.launchd.peruser.501[304]: ([0x0-0x3f53f5].org.openscad.OpenSCAD[67886]) Exited with code: 1
> o open from a terminal (open ./OpenSCAD.app) fails with the following message:
>     LSOpenURLsWithRole() failed with error -10810 for the file /Volumes/OpenSCAD/OpenSCAD.app.
>
> These symptoms are discussed online in various places, with lots of weird suggestions, all of which don't work.
> I've been fighting with this for a few days, and finally figured out I might need help :/
>
> Any ideas?
>
>   -Marius
>
> PS. The current release (2013.06) was built using gcc-llvm on the latest Xcode 4 at the time on Mac OS X 10.7
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
>

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

kintel
Administrator
In reply to this post by devlaam
On 2013-10-24, at 14:17 PM, Ruud Vlaming <[hidden email]> wrote:
>
> Data:
>  machine Software  OS X 10.8.5 (12F45)
>  Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
>  Target: x86_64-apple-darwin12.5.0
>
>  $ open ./OpenScad => works, no messages

Interesting - did you build OpenSCAD with gcc or clang?

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

devlaam
On 24-10-13 21:36, Marius Kintel wrote:

> On 2013-10-24, at 14:17 PM, Ruud Vlaming <[hidden email]> wrote:
>>
>> Data:
>>   machine Software  OS X 10.8.5 (12F45)
>>   Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
>>   Target: x86_64-apple-darwin12.5.0
>>
>>   $ open ./OpenScad => works, no messages
>
> Interesting - did you build OpenSCAD with gcc or clang?
clang.

But it is my own version (ie. based on 2013.06) which works.

Your version (2013.10) gives the same problems.

Ruud

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

kintel
Administrator
In reply to this post by devlaam
On 2013-10-24, at 14:17 PM, Ruud Vlaming <[hidden email]> wrote:
>  Double clicking the icon never worked for me, so i always
>  start from the command line.

To make double-clicking work, you should bundle the libraries into the app bundle.
This most probably requires you to build your own dependencies using the script I mentioned, as well as using the publish-macosx script (or parts thereof to build). The magic command is 'macdeployqt', which is part of Qt.

 -Marius
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

kintel
Administrator
In reply to this post by devlaam
On 2013-10-24, at 17:51 PM, Ruud Vlaming <[hidden email]> wrote:
>
> But it is my own version (ie. based on 2013.06) which works.
>
> Your version (2013.10) gives the same problems.
>
Totally!
I didn't expect that to be the problem - I was convinced an evil combination of OS'es and compilers were the culprit.
Now - bisect time!

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Mac OS X deployment issues

kintel
Administrator
In reply to this post by devlaam
If anyone's interested:

It turned out that we were exiting because we didn't recognize the magic cmd-line option automatically sent by Mac OS X: -psn_0_5961135

That, combined with the fact that Mac OS X now swallows stdout/stderr for GUI launched apps, got me..

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566