Mac OS X crash on launch

Report bugs and errors

Re: Mac OS X crash on launch

Postby Marcello on Fri, 08 Jan 2010 22:18:21 GMT

I could look into 10.4.x if someone had a vmware fusion image I could use. :-)

Marcello
Marcello
 
Posts: 7
Joined: Fri, 08 Jan 2010 06:05:50 GMT

Re: Mac OS X crash on launch

Postby Nicolas on Sat, 09 Jan 2010 01:48:14 GMT

Hey Marcello,

I see that jpen calls getTypeEncoding directly only from JRSwizzle.m and jr_swizzleMethod offers an alternative when OBJC_API_VERSION < 2 without the getTypeEncoding calls. We could try providing a jnilib compiled with "#define OBJC_API_VERSION 0" on line 20 (or something equivalent) of JRSwizzle.m... What do you think? If it works then we can provide both jnilibs in jpen and load the new one only when the system is x32.

Cheers!
Nicolas
Nicolas
 
Posts: 26
Joined: Fri, 21 Aug 2009 13:23:43 GMT

Re: Mac OS X crash on launch

Postby Marcello on Sat, 09 Jan 2010 03:32:40 GMT

The problem is, though, even with that, I'm not sure JPen will do anything on 10.4 (Tiger), because it's using other functionality (new UI events) added to Cocoa in 10.5. I'll have to look more into what is required to read tablet events on Tiger.

The simplest solution would seem to detect Mac OS X <10.5 in Java and not load the native library, if it indeed will crash like this when loaded.

According to OmniGroup (page), 10.4 still accounts for over 30% of Mac installations, so it's probably worth supporting. It's a pain to develop for a system you have no direct access to, so it'd be nice to setup a virtual machine, dual boot, or remote desktop for Tiger if anyone has any recommendations.

Marcello
Marcello
 
Posts: 7
Joined: Fri, 08 Jan 2010 06:05:50 GMT

Re: Mac OS X crash on launch

Postby Nicolas on Sat, 09 Jan 2010 06:44:44 GMT

Hey Marcello,

Taking both yours and Karl's ideas, what if we do the following changes on jpen:
1- change the osx provider so that it does not load (is not constructable) when os.version<10.5
2- create a new provider named osx_10_4 by "copying" the osx provider from version 090522. osx_14 is constructable only when os.version<10.5

The osx_10_4 will be just a copy/adaptation of the 090522 version without the new features. We will fix bugs when/if possible.

Maybe resurrecting the old osx provider is not a good idea... let me know what you think.

Good night,
Nicolas
Nicolas
 
Posts: 26
Joined: Fri, 21 Aug 2009 13:23:43 GMT

Re: Mac OS X crash on launch

Postby Nicolas on Sat, 09 Jan 2010 07:09:28 GMT

I assumed that 090522 works right on 10.4... but now I'm thinking that it doesn't :-S
Nicolas
 
Posts: 26
Joined: Fri, 21 Aug 2009 13:23:43 GMT

Re: Mac OS X crash on launch

Postby Karl DD on Sat, 09 Jan 2010 14:16:02 GMT

Hi Guys,

I made a version of Alchemy 008 with the old JPen library (090522):
http://al.chemy.org/files/Alchemy-008-Tiger.dmg

This launches on 10.5 but JPen doesn't work. Which is the same for Alchemy 007 on 10.5 - from memory it was using 090522 or earlier version of JPen.
So given that 10.4 people can use 007, I imagine this should work for them.

So if you are running 10.4 Tiger, please download this and give it a try.
Be sure to check the PressureShapes module to see if the pen pressure is also working.

Thanks,

Karl
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Mac OS X crash on launch

Postby Olek on Sat, 09 Jan 2010 14:38:32 GMT

Karl, Thank you. Removing the libjpen-2-3.jnilib allowed me to run the new Alchemy now.
I do not have pressure sensitivity anymore though.
I use Intuos 3 Wacom pen tablet and a Cintiq screen and didn't have any problems until downloading the new version of Alchemy.
At the moment i can run both versions of Alchemy simultaneously. (no pressure in the latest one)

Thanks,
Olek'
Olek
 
Posts: 4
Joined: Fri, 08 Jan 2010 21:34:52 GMT

Re: Mac OS X crash on launch

Postby Olek on Sat, 09 Jan 2010 14:42:16 GMT

I downloaded the modified version and it works fine with the pen pressure.
Thank you very much.
Now, this weekend will be Alchemy weekend!

Olek
Olek
 
Posts: 4
Joined: Fri, 08 Jan 2010 21:34:52 GMT

Re: Mac OS X crash on launch

Postby Karl DD on Sat, 09 Jan 2010 15:03:09 GMT

Thanks for testing that out Olek.
I have updated the download page with the new Tiger version:
http://al.chemy.org/download/

Have a good weekend!

Karl
User avatar
Karl DD
Site Admin
 
Posts: 592
Joined: Sun, 20 Jan 2008 02:45:28 GMT
Location: Pittsburgh, PA

Re: Mac OS X crash on launch

Postby Nicolas on Sat, 09 Jan 2010 17:03:36 GMT

Sorry for causing this trouble. It is my fault, Marcello suggested releasing the new osx provider as alpha but I decided to keep it beta because it is still better than the previous. I opened a jpen bug here to avoid polluting this thread with jpen issues and continue solving this problem.

Cheers!
Nicolas
Nicolas
 
Posts: 26
Joined: Fri, 21 Aug 2009 13:23:43 GMT

PreviousNext

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests