Current User: Guest
Please consider registering

Search Forums:


 






Crash at Startup!

UserPost

2:26 pm
July 13, 2010


SKINNYBILL

Guest

 
1

Hi,
i have already seen vampyre's post, and it diddnt help.
i downloaded the 0.7.1 version from that post, diddnt change. deleted french, diddnt change (my mac is English anyway).
If its to do with location, its a English (United Kingdom, either UK or GB for locales) Macbook Pro with Snow Leopard 10.6.4 (Intel).

I dont know why but every version i try, the icon quickly appears then dissapears from the dock when i try to start it.

11:46 pm
July 14, 2010


SKINNYBILL

Guest

 
2

seriously noone has an idea?
whatever version i download, as soon as i start it, the icon just appears then dissapears straight away from the dock. im using snow leopard and im using the app from the snow leopard folders.

are there any known issues with other programs that would cause this to crash?

4:42 am
July 15, 2010


Scott Chitwood

Admin

posts 75

 
3

Please download 0.6.1 and let us know if that behaves any differently. Also, let us know your Mac model and current OS.

10:36 am
July 21, 2010


David Burnett

Moderator

posts 60

 
4

SKINNYBILL said:
are there any known issues with other programs that would cause this to crash?

No but there used to be, back in the old days, some haxies would crash Oxidizer. No-one has reported anything like that since the early Leopard days though.

Vampyre's issue would only affect French speaking Macs, so this is a new issue as far as anyone is aware.

If you want the issue resolving the best thing to do is to follow the guide on how to report bugs.
http://rampant-mac.com/wp/?pag…..port-bugs/

I can't do anything without a crashdump as it's not a general issue.

Dave

12:49 pm
July 24, 2010


SKINNYBILL

Guest

 
5

well its not a crash as such, well im not sure anyway.
it just closes immediatley, without that "crashed unexpectedly" window.

could you tell how to make a log so you can see whats going on?

12:55 pm
July 24, 2010


SKINNYBILL

Guest

 
6

actually i found this in a crash log (from one time when it actually crashed…)

Dyld Error Message:
Library not loaded: /Users/vargol/Source/oxidizer/build_folder_for_flam3/lib/libjpeg.8.dylib
Referenced from: /Users/Skinnybill/Desktop/Oxidizer.app/Contents/MacOS/Oxidizer
Reason: image not found

and this is the system profile:

System Profile:
Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2.26 GHz, 2 GB, SMC 1.47f2
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.10.91.27)
Bluetooth: Version 2.3.3f8, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: Hitachi HTS545016B9SA02, 149.05 GB
Serial ATA Device: HL-DT-ST DVDRW GS23N
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0×8507, 0×24400000
USB Device: Photosmart B109a-m, 0x03f0 (Hewlett Packard), 0x7a11, 0×26200000
USB Device: Internal Memory Card Reader, 0x05ac (Apple Inc.), 0×8403, 0×26500000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0×0237, 0×04600000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0×8242, 0×04500000
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0×4500, 0×06100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0×8213, 0×06110000

12:10 pm
July 26, 2010


David Burnett

Moderator

posts 60

 
7

Ha, you got one of the intermediate builds where I hadn't quite got the library packaging correct. There's a reason why the 0.7.x version are not official releases, and this was one of them :-)

Download 0.7.3 from here and read the warning about the odd bogus error message you'll need to ignore in the every last comment in the 64 bit thread ", its designed get to help me debug an issue that I couldn't recreate.

Dave

8:02 am
July 27, 2010


SKINNYBILL

Guest

 
8

nope. it still closes straight away :-(

1:21 pm
July 29, 2010


David Burnett

Moderator

posts 60

 
9

Right that means the libjpeg error is a red herring as 0.7.3 does not load libjpeg.dylib. It also means I've got nothing to go on if you're not getting any crash reports.

Is there anything in /Applications/Utilities/Console.app's Console messages or in its CRash Reporter Section.

Dave

2:07 pm
August 7, 2010


SKINNYBILL

Guest

 
10

nope the thing i pasted before was from console. i have Xcode, is there a tool to monitor what goes on in an already built application in xcode?

2:16 pm
August 7, 2010


SKINNYBILL

Guest

 
11

ok i have found that i can use "Instruments" from xcode to monitor the process. I chose the "sudden termination" template and set it up to "Launch Executable: Applications>Oxidizer.app" and then hit record. It lasted 3 seconds, and i ran 5 times. Every Time the last thing that happened before crash was:

#8,
Caller: -[NSFileManager createDirectoryAtPath:attributes:]
Function: mkdir
Disable Count: 0
Mode: (blank)
Saftey Rating: Unprotected File System Access

8:08 am
August 8, 2010


David Burnett

Moderator

posts 60

 
12

Okay, now we're getting somewhere.

The only Directory creation that goes on during initialisation is to create the application support directory (in your case /Users/Skinnybill/Library/Application Support/Oxidizer) . I'm not sure why it would fail other than file permissions or the routine to find the Application Support folder has failed for some reason.

Would you be up to compiling the code and debugging it ? If not I could knock up a version with some debugging code around the two potential area its might crash.

Dave

7:28 am
August 9, 2010


SKINNYBILL

Guest

 
13

well to be honest i have never really used xcode before so im not exactly sure how and where everything is, but if you could tell me what to do i can try :-)

11:08 am
August 9, 2010


David Burnett

Moderator

posts 60

 
14

That's the spirit :-)

Okay, I've uploaded the source as .oxidizer_0_7_3_1_src.zip

Download it, unzip it and open the file "oxidizer.xcodeproj"

Press the build and Debug button. Make a cup of tea / coffee (has to be proper coffee, instant will be to quick).

Hopefully it'll build successfully, which will give 8 errors, (shown on the status bar, bottom right) but you should also see "Successful Build" there too and Oxidzer should try to run and then either stop on a breakpoint or stop where Oxidizer fails. I've left two break points just before the calls to createDirectoryAtPath: so hopefully you'll hit a breakpoint. If so use the stop over buttons to move the code along. If you go past the call to createDirectoryAtPath just press the continue button and it it'll run along to the next breakpoint where you can repeat that.

I've added a few debug prints, these will appear in the debugger console (use the run menu to select it).
Post those if you get that far, it not post here and I'll try and get things up and running for you.

Dave

3:14 am
August 11, 2010


skinnybill

New Kid

posts 9

 
15

ok first of all i have made an account now so thats why im different to the guest posts ^_^ but anyway you instructions seem simple ill give it a go.

3:27 am
August 11, 2010


skinnybill

New Kid

posts 9

 
16

Ok heres what i have done:
Unzipped Folder and opened oxidizer.xcodeproj

In the dropdown list at the top left, it said 10.6 | Debug | ppc so i changed it to i386. (was this the right choice or was it supposed to be powerPC?)

Clicked "Breakpoints" button which changed "Build and Run" to Build and Debug, so i then clicked build and debug.

It failed, with 57 errors.

Just in case it was supposed to be powerPC, i changed to that and tried again.
this time it failed with 262 errors. I take it it is supposed to be i386 :P

I put the output of the fails into this pastebin: http://pastebin.com/VapkP4vC
Please note that i only copied the errors. i sorted by "Latest Results, By Issue, Errors Only"

10:25 am
August 11, 2010


David Burnett

Moderator

posts 60

 
17

Interesting. Yes it's supposed to be i386, no idea how it got to be ppc as I've haven't set it to that for ages :-)

Can you have look in the following directory in the source code folder

oxidizer_0_7_3_1/build_folder_for_flam3/include

and see if the file jpeglib.h is in there ? Thats is where it's supposed to be.

also what is in oxidizer_0_7_3_1/build_folder_for_flam3/lib, it should have these files…

libflam3.0.0.0.dylib libflam3.a libflam3.la libjpeg.a libjpeg.la libpng.dylib libpng14.14.dylib libpng14.dylib pkgconfig
libflam3.0.dylib libflam3.dylib libjpeg.8.dylib libjpeg.dylib libpng.a libpng.la libpng14.a libpng14.la

Finally, in oxidizer_0_7_3_1/flam3 there should be a file called config.log, a few lines into that file that should be a line like…
$ ./configure –disable-dependency-tracking –prefix=/Users/Skinnybill/Desktop/oxidizer_0_7_3_1/build_folder_for_flam3 –enable-shared

If it doesn't match that can you post it please.

12:06 pm
August 11, 2010


skinnybill

New Kid

posts 9

 
18

build_folder_for_flam3 -> include is empty
build_folder_for_flam3 -> lib is empty

and the config.log is exactly correct

12:19 pm
August 12, 2010


David Burnett

Moderator

posts 60

 
19

Ok,
all that at least matches with the error messages, the question is why are we getting into that situation.
Basically what seems to be happening is that the jpeg and png libraries are not being installed into the build_folder_for_flam3 for some reason.

What I need you to do now is to open terminal and use the following commands.

cd /Users/Skinnybill/Desktop/oxidizer_0_7_3_1/libpng
make clean
make
make install

And post any errors that pop up or the results of the last step if they all work.

By the way if I'm teaching you to suck eggs with any of this stuff just let me know Laugh.

Dave

11:07 am
August 13, 2010


skinnybill

New Kid

posts 9

 
20

towards the end of "make" i get this:

"___stack_chk_guard", referenced from:
___stack_chk_guard$non_lazy_ptr in libpng14_la-png.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngrutil.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngwutil.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngread.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngwrite.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngrtran.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngerror.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc625utL.out (No such file or directory)
make[1]: *** [libpng14.la] Error 1
make: *** [all] Error 2

and at the end of make install:

"___stack_chk_guard", referenced from:
___stack_chk_guard$non_lazy_ptr in libpng14_la-png.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngrutil.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngwutil.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngread.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngwrite.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngrtran.o
___stack_chk_guard$non_lazy_ptr in libpng14_la-pngerror.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccqF5Yis.out (No such file or directory)
make: *** [libpng14.la] Error 1

as it said something to do with permissions i think, started again but sudo'd them all.

oh and yeah, i can understand what you are saying. i have some experience with linux terminal commands and when i got my mac i found that as its unix based, the terminal syntax and commands are pretty much the same :-)

1:37 pm
August 13, 2010


David Burnett

Moderator

posts 60

 
21

Hmmm, had to resort to google for that one, and a lot of reading between the lines.

Try this…

cd /Users/Skinnybill/Desktop/oxidizer_0_7_3_1/libpng
make clean

Now edit the Makefile in that directory. There you'll find a couple of lines like this

CFLAGS = -O -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch ppc -arch x86_64
LDFLAGS = -arch i386 -arch ppc -arch x86_64

Edit those to remove the -arch ppc

CFLAGS = -O -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64
LDFLAGS = -arch i386 -arch x86_64

then back on the command line

make

If that gets rid of the errors then run

make clean

in ../jpeg-8a and ../flam3 then back in XCode load the project, and in the tree view on the left open the Target tree and double-click on "Run Script" item. A window will pop up with a Script in it.

Edit the line

ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64″

to remove -arch ppc

ARCH_FLAGS="-arch i386 -arch x86_64″

Close the window, that will save the script, and press the build button again and let me know what happens.

Dave

4:23 pm
August 13, 2010


skinnybill

New Kid

posts 9

 
22

wehey!!

There was an error about permission denied, so i just browsed the file and for some reason my user was read only, so i changed to read and write and it built successfully and opened!

3:51 am
August 14, 2010


skinnybill

New Kid

posts 9

 
23

ahh… just noticed something.

It runs when freshly built in xcode, but for some reason when you copy it anywhere else it closes again at startup…

11:03 am
August 14, 2010


David Burnett

Moderator

posts 60

 
24

Out of interest does it run if you start it in finder from the build directory?

Can you also ret running it from the command line, the actual executable is

Oxidizer.app/Contents/MacOS/Oxidizer

Dave

2:14 pm
August 14, 2010


skinnybill

New Kid

posts 9

 
25

funny enough it doesnt run from the build folder either.

and running from terminal gives this:

</p><p>Last login: Sat Aug 14 10:56:27 on ttys000<br />
/Users/Skinnybill/Desktop/oxidizer_0_7_3_1/build/Debug/Oxidizer.app/Contents/MacOS/Oxidizer ; exit;<br />
William-Meades-Macbook-Pro:~ Skinnybill$ /Users/Skinnybill/Desktop/oxidizer_0_7_3_1/build/Debug/Oxidizer.app/Contents/MacOS/Oxidizer ; exit;<br />
2010-08-14 21:13:41.881 Oxidizer[68450:903] (<br />
"/Users/Skinnybill/Library/Application Support"<br />
)<br />
2010-08-14 21:13:41.884 Oxidizer[68450:903] /Users/Skinnybill/Library/Application Support/Oxidizer<br />
2010-08-14 21:13:42.325 Oxidizer[68450:903] (<br />
"/Users/Skinnybill/Library/Application Support"<br />
)<br />
2010-08-14 21:13:42.326 Oxidizer[68450:903] /Users/Skinnybill/Library/Application Support/Oxidizer<br />
logout</p><p>[Process completed]<br />

2:16 pm
August 14, 2010


skinnybill

New Kid

posts 9

 
26

oh by the way, in case you diddnt know you can also run apps from terminal like this:

open /path/to/some/application.app

(you can even do "sudo open appfolder/application.app" to run as root :-) )

11:23 am
August 16, 2010


David Burnett

Moderator

posts 60

 
27

Hi,
Yes I knew about open, but it detaches the Application from the command line, which I didn't want to do.

The first question is did Oxidizer fall over from the command line ?

The next thing to check is what permissions are on the /Users/Skinnybill/Library/Application Support/Oxidizer
it should be rwx for the user.

Now let's try running directly in the debugger from the command line.

On the command line run

gdb /Users/Skinnybill/Desktop/oxidizer_0_7_3_1/build/Debug/Oxidizer.app/Contents/MacOS/Oxidizer

After a copyright and warranty message you should see…

This GDB was configured as "i386-apple-darwin"…Reading symbols for shared libraries ………….. done

(gdb)

at the prompt enter

run

and Oxidizer will start to run.

If Oxidizer fails, enter

bt

and post the output here.

It it works, I've got some homework to do to try and find out a why of working out exactly where it fails.

Dave

2:56 am
August 17, 2010


skinnybill

New Kid

posts 9

 
28

ok it runs like that but just to note, instead of it saying:
This GDB was configured as "i386-apple-darwin"
it says "x86_64-apple-darwin" just incase that matters

12:36 pm
September 3, 2010


David Burnett

Moderator

posts 60

 
29

Hi,
The difference in output is due to me still being stuck on 32 bits :-)

Been on holiday so sorry for the lack of updates. I've been trying to think about how to get some debugging info. As the only debugging aid we've managed to get Oxidizer to fall over in is Instruments, it look like dtrace / dtruss is the only option.

As running dtrace / dtruss from the command line would mean running Oxidizer as root we'll dodge that for the time being and use Instruments, its not as friendly to describe on a forum but I'm sure we'll manage.

Start up instruments and choose the Blank template.
In the main window, choose the Instruments menu, and select the Build New Instrument menu item.
In the sheet that pops up change the Probe line so it looks like

Probe | Probe 1 | of type ( Objective-c )

by changing the drop down that says User Process to Objective-C

Under the "Record the following data" area
Change the second drop down to say 'Caller' then use the + button to
add two more options to Record the Module then Function.

Then Save.

Back in the main window, double click on the instrument we've just created .

In the Probe line chenge the 'entry' drop down to return, then proess the 'Save Copy' button

Choose the Oxidizer as the default target to to run, and then press the record button.

Oxidzer will slowly run (it took 4 minutes to start up here).

Once its crashed, click on the first instrument and scroll down the list of function calls. make sure it at the end as the list is very big and the scroll bar can look like it's at the end but it isn't.

select the last call then in the menu select the 'Extended Detail' item from the view menu. Another
view should be added to the window showing a stack trace. You can select the items on the stack trace
so select the whole thing and paste it here.

After that select the other instrument and do the same.

Dave



Reply to Topic:
Crash at Startup!

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 2