composition in lion not working under 32 bit

hiltmeyer's picture

hello could someone please explain me why this composition is not working in lion under 32bit mode. it is working in 64 bit mode and also if i open it with the os preview via space bar.

in snow leopard this composition was working nice in 32 bit mode.

thanks

PreviewAttachmentSize
sinus .qtz5.63 KB

cybero's picture
Re: composition in lion not working under 32 bit

In this instance, I find that altering the clear colour to be white allows the sinusoidal wave iterated from the line to show through.

It should not need to be working like that IMHO.

Also adding in a new Line patch whilst rendering crashed your composition and looking to amend the end colour whilst rendering did exactly the same. Haven't looked at error messages in Console as yet. Indeed the information for the Start colour also didn't show through in 32 bit, all colours of line where set to white but the line showed up as black. Conclusion, a stock patch has not and in all probability was not intended to be, coded up for 32 bit, the assumption being I gues that we should only be running the composition in 64 bit mode.

I wonder if this sort of composition would fail if utilised within a 32 bit application in Lion? Haven't tried that but the result does provoke such a question, nonetheless.

Have attached the crashed thread report from your composition.

Have also attached a really simple composition that demonstrates that the breakdown on this occurs solely with the LinePatch and is not SFAIK directly related to the use of an Iterator patch.

Simplest workaround, non applicable to environments sans GL Tools though has also been attached, advantage, does work in both 32 and 64 bit mode.

Is it actually counted as a bug if both 32/64 bit mode for a stock patch is not supported? I have tried searching the developer archives on http://lists.apple.com/archives/quartzcomposer-dev/ with little joy, but that is in all probability down to the fact the mailing archives are still in need of some repair or are being redeveloped.

gtoledo3's picture
Re: composition in lion not working under 32 bit

QC supports 32 and 64 bit modes, so it's a bug if a stock patch doesn't work in one. Maybe there is a release note that has deprecated 32 bit, or made some fine point that I'm not aware of. It does seem to be a regression, because it does work in 10.6.

There is already a problem with the line patch that's been fleshed out here, with it working within apps: http://lists.apple.com/archives/quartzcomposer-dev//2011/Sep/msg00011.html

I think that if I had to deal with this issue, I'd use the Kineme GL Tools Line patch, or use the stock QCPlugin Consumer template example, and modify it to draw a line, if it had to be a non-private API thing for some reason. There's a step by step tutorial about programming a consumer patch for Quartz Composer (QCPlugin) at the Apple Developer Connection, that does a good job explaining, though I think it's a sprite or quad (I can't remember). It should be easy to look at the openGL spec and substitute a line.

I think GL Tools line would do a fine job of it, I only suggest looking into that if someone had to keep non-private api.

cybero's picture
Re: composition in lion not working under 32 bit

I thought that must be a bug, although the fact that Lion is meant to be fully 64 bit made me wonder if 32 bit failure of a stock patch was still considered reportable, which as you've kindly indicated, has already been posted up onto the dev list and no doubt within Bug Reporter too.

Just as a matter of personal interest, do you find that the quartzcomposer-dev list is not effectively searchable at present?

I find, for example, that entering any term that can be found by trawling through the archives [slow and laborious process] results in a null result.

I find the same problem currently upon all the mailing lists hosted by Apple.

OSDir.com's archiving of its mirror of quartzcomposer-dev list, (always seemed more searchable than the once fairly searchable quartzcomposer-dev list), ceased it's archiving of this, as of May 13th this year, more's the pity. Still that is really a matter to raise with apple.com.

Good point BTW about the need to consider a non-private API in certain contexts.

smokris's picture
Re: composition in lion not working under 32 bit

cybero wrote:
OSDir.com's archiving of its mirror of quartzcomposer-dev list, (always seemed more searchable than the once fairly searchable quartzcomposer-dev list), ceased it's archiving of this, as of May 13th this year, more's the pity. Still that is really a matter to raise with apple.com.

http://www.mail-archive.com/quartzcomposer-dev@lists.apple.com/ is still actively archiving.

cybero's picture
Re: composition in lion not working under 32 bit

Useful post smokris, thankyou. :-). I shall bookmark that for future reference.