Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Re: Stumper question - Leopard Crashes (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Subject: Re: Subject: Re: several addesses in mailto and Lion
Next thread: Re: Help: Drag some text into a Textfield


Re: Stumper question - Leopard Crashes   -   Marnaud
   Stumper question - Leopard Crashes   -   Garth Hjelte
    Re: Stumper question - Leopard Crashes   -   norman xojo.com
     Re: Stumper question - Leopard Crashes   -   Garth Hjelte
      Subject: Re: Subject: Re: several addesses in mailto and Lion   -   Carlo Rubini
    HTMLViewer and browser security restrictions   -   Slava Paperno

Re: Stumper question - Leopard Crashes
Date: 01.08.13 19:13 (Thu, 01 Aug 2013 20:13:12 +0200)
From: Marnaud
Le 1 août 2013 à 19:55, Garth Hjelte a écrit:

> 2) What would you do: put the app and libs folder in Resources (that works)? Or put it outside the folders (that works)? Or make my own folder and put it in there (that works)?

I'm not sure why your app crashes like this, but I'm sure you should put your helper apps in the Resources folder (not the MacOS or Framework ones). This may not solve the actual problem, but it's how it should (must) be done.
BTW: what happens if you pause your app and launch the helper manually (in its location inside the bundle)? Does it work?
_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Stumper question - Leopard Crashes
Date: 01.08.13 18:55 (Thu, 01 Aug 2013 12:55:47 -0500)
From: Garth Hjelte
OK, time for you geniuses to start thinking...

As you all know (maybe), I've been struggling with IPC Sockets because in Mountain Lion I need to have a helper app do some root dirty work, so my main app has to communicate with it. (BTW, the IPC Socket still is giving me problems - grrr.) But that's not my problem I'm giving you here.

What I did was:

1) Make a helper app, a ServiceApplication in REAL 2011r3. It gives me a executable and a "libs" folder with rbframework.dylib in it.

2) I initially put those in my MacOS folder of my main app so my main app could execute it. Didn't work, I guess OSX has a problem with running the executable in MacOS with something else in there (although I do put my own dylibs in there reliably). The crashed on all OSX versions I tried.

3) So I put them in the Frameworks folder. That worked, but I work in Snow Leopard primarily. This was for Mountain Lion anyway (meaning it only runs when in 10.8). Works fine there (that is, no crashes).

Here's the issue: this DOES cause a crash on startup in Leopard (not 10.6, but 10.5). The issue is the ServiceApp itself (not the libs folder), somehow having this in the Frameworks folder is something Leopard (and probably Tiger) doesn't like. Here's a shortened crash log:

Process: Translator 6 [274]
Path: /Applications/Chicken Systems/Translator 6/Translator 6.app/Contents/MacOS/Translator 6
Identifier: com.chickensys.translator6
Code Type: X86 (Native)
Parent Process: launchd [119]
OS Version: Mac OS X 10.5.8 (9L31a)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000001174

Error Formulating Crash Report:
Called memoryAtAddress: 0x1000, which is in an unmappable portion of [0x0 -> 0xffffffffffffffff] in PID# 274.
Backtrace not available
Unknown thread crashed with X86 Thread State (32-bit):
Binary images description not available

Here's my question:

1) Why the crash?

2) What would you do: put the app and libs folder in Resources (that works)? Or put it outside the folders (that works)? Or make my own folder and put it in there (that works)?

Garth Hjelte
Sampler User

_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Stumper question - Leopard Crashes
Date: 01.08.13 19:15 (Thu, 1 Aug 2013 12:15:07 -0600)
From: norman xojo.com

On Aug 1, 2013, at 11:55 AM, Garth Hjelte <<email address removed>> wrote:
> Here's my question:
>
> 1) Why the crash?

What version did you use to create your main app ?

> 2) What would you do: put the app and libs folder in Resources (that works)? Or put it outside the folders (that works)? Or make my own folder and put it in there (that works)?

In resources in its own folder

Norman Palardy (Xojo, Inc.)

Join us for XDC 2014 March 26-28
Monte Carlo Resort Las Vegas



_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Stumper question - Leopard Crashes
Date: 01.08.13 23:19 (Thu, 01 Aug 2013 17:19:38 -0500)
From: Garth Hjelte
At 01:15 PM 8/1/2013, you wrote:

>> 1) Why the crash?
>
>What version did you use to create your main app ?

RS2011r3, last one that did PPC.

>> 2) What would you do: put the app and libs folder in Resources (that works)? Or put it outside the folders (that works)? Or make my own folder and put it in there (that works)?

>In resources in its own folder

Thanks!

Garth Hjelte
Sampler User

_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>