Ongoing Font issues [EDIT]

Discuss issues relating to audio plugins

Ongoing Font issues [EDIT]

Postby chkn » Fri Jun 15, 2012 10:04 am

a juce plugin - compiled with SDK 10.6 and Deplyoment Target=10.5 crashes with auval in 10.5. but running fine in 10.6. - whats the reason?

Code: Select all
Process:         auvaltool [184]
Path:            /usr/bin/auvaltool
Identifier:      auvaltool
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  perl [183]

Date/Time:       2012-06-15 10:40:45.894 +0200
OS Version:      Mac OS X 10.5 (9A581)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0


Thread 0 Crashed:
0   ???                              0000000000 0 + 0
1   com.my.testplugin     0x01037750 AUBase::SaveState(void const**) + 36
2   com.my.testplugin     0x01046d15 JuceAU::SaveState(void const**) + 33
3   com.my.testplugin     0x0103737b AUBase::DispatchGetProperty(unsigned long, unsigned long, unsigned long, void*) + 215
4   com.my.testplugin     0x0103d3a5 AUBase::ComponentEntryDispatch(ComponentParameters*, AUBase*) + 469
5   com.my.testplugin     0x01047b39 ComponentEntryPoint<JuceAU>::Dispatch(ComponentParameters*, JuceAU*) + 123
6   ...ple.CoreServices.CarbonCore   0x951edef5 CallComponentDispatch + 29
7   ...apple.audio.units.AudioUnit   0x9241b833 AudioUnitGetProperty + 67
8   auvaltool                        0x00003d75 0x1000 + 11637
9   auvaltool                        0x00003f72 0x1000 + 12146
10  auvaltool                        0x0000969b 0x1000 + 34459
11  auvaltool                        0x00003125 0x1000 + 8485
12  auvaltool                        0x000101de 0x1000 + 61918
13  auvaltool                        0x0001056e 0x1000 + 62830
14  auvaltool                        0x00001dfa 0x1000 + 3578
Last edited by chkn on Tue Jun 19, 2012 7:21 pm, edited 1 time in total.
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 11:12 am

Compiled with OSX 10.6.8 - XCode 3.2.6
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby jules » Fri Jun 15, 2012 11:14 am

Hard to tell, but it could be that the host is passing a null pointer to SaveState(), and that's making Apple's own SaveState() method crash.

You could try adding a check to prevent that:

Code: Select all
    ComponentResult SaveState (CFPropertyListRef* outData)
    {
        if (outData != nullptr)
        {
            ComponentResult err = JuceAUBaseClass::SaveState (outData);
..etc


But it could also be something inside Apple's SaveState() that's crashing for some other reason. Or perhaps the whole object is dangling. Can't tell from that stack trace.
User avatar
jules
Fearless Leader
 
Posts: 17218
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 12:01 pm

thanks, but does not help.

trying now with compatibility SDK 10.4. but i'm not optimistic :(
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 12:18 pm

hopefully this is (not) a bug in auval .... doing some compatibility checks from a fresh 10.5 installation
10.4. unable to compile
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby ckk » Fri Jun 15, 2012 12:52 pm

Can't say what's the reason for the crash, but we're using 10.5/10.5 as base/deployment SDK which builds non-crashing plugins. I didn't test with auval but the plugins crashed in different hosts.
So if that's an option it might be the easiest solution.

edit: forgot to mention, this was more than a year ago and we haven't changed the sdk since then, so it might be another cause for the crash in your case.

Chris
ckk
JUCE UberWeenie
 
Posts: 218
Joined: Thu May 20, 2010 7:43 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 12:56 pm

thanks for the info!
just stumbled over this post (last sentence) mmhhhh...

http://www.kvraudio.com/forum/printview.php?t=340395&start=0
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 2:12 pm

Just compiling with 10.5/10.5, i get the font-bug in Logic again, how can that be Jules?
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 2:20 pm

OK, with 10.5/10.5 it WORKS IN 10.5 BUT the destroys the font in 10.6!
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 2:21 pm

it seems that fonts which the "bold" attribute, don't have the problem.
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 3:13 pm

i modified the juce demo, to reconstruct the problem.
The only thing you have to do is set Base SDK And Target SDK to 10.5.

juciss.png
juciss.png (69.68 KiB) Viewed 2593 times
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby sonic59 » Fri Jun 15, 2012 4:01 pm

I took a look. This is not the same bug as last time, this is something completely different.
The problem lies somewhere in the old font code (Cocoa).
I had no hand in writing that code so I won't be fixing this problem in my own free time.
If you'd like me to look at it further, shoot me a PM and maybe we can work something out.
sonic59
JUCE UberWeenie
 
Posts: 224
Joined: Tue Mar 09, 2010 5:51 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Fri Jun 15, 2012 7:20 pm

thanks for your offer, i just made a test, with the latest April check-in (before the big one), and it works (with 10.5 base sdk), so this must be a new issue
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Juce Plugin Crashes in Leopard

Postby chkn » Mon Jun 18, 2012 2:41 pm

*bump*
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Ongoing Font issues since beginning of may[EDIT]

Postby chkn » Tue Jun 19, 2012 7:30 pm

In the current state, its just impossible to create AU-Plugins which are compatible with 10.5/10.6.
To be compatible with Logic under 10.5 you need to compile against base(!) sdk 10.5 , but this destroys the font rendering.
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Next

Return to Audio Plugins

Who is online

Users browsing this forum: No registered users and 2 guests