openCL

Odd Graph Foundation Log timestamp behaviour

cybero's picture

Haven't gotten to the bottom of why this is happening, but thought it worth posting for discussion and consideration, bug wise.

Note what happens in the GF Log timestamp.

OpenCL timestamp changes so still active even though said to be failed in the GF Log.

http://www.youtube.com/watch?v=hJnYlWayH9Y

Mesh Bend & Mesh Noise - Redrafts

cybero's picture

Please find attached the two redrafted Mesh Filters for Bend and Noise that now work in 10.6.3, after they had been re-edited. This similar to the problem with Mesh Filters that cropped up with 10.6.2, Bend needing a removal or commenting out of maxrange & min range read only variables to work and Noise needing to have a code line about attenuation commented out.

I noticed a bit of chat on the qc dev list and just thought I'd put out the 10.6.3 'update' :-)

Mesh Filters redraft requires a DAE.

ATI & OpenCL

cybero's picture

Any news on the ATI / OpenCL coverage from Apple. just wondered seeking as how the top of the range iMac are now seem to be ATI by default - pretty brilliant cards too.

GL Tools 1.4 crash in Music Visualizer

cybero's picture

Please find quoted below the resulting crash report when iTunes ducked my CLGL variation of the Arabesque screensaver as a music visualier. I am going to dive in and take a look at what I've changed to provoke this error, seems to be one of the presets alone, all others run AOK.

GLTools got mentioned in dispatches as follows :-

Process:         iTunes [1936]
Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier:      com.apple.iTunes
Version:         9.0.3 (9.0.3)
Build Info:      iTunes-9031501~5
Code Type:       X86 (Native)
Parent Process:  launchd [134]
 
PlugIn Path:       /Users/cybero/Library/Graphics/Quartz Composer Patches/GLTools.plugin/Contents/MacOS/GLTools
PlugIn Identifier: net.kineme.GLTools
PlugIn Version:    1.4 (20091217.2212r6563)
 
Date/Time:       2010-02-24 12:41:20.288 +0000
OS Version:      Mac OS X 10.6.2 (10C540)
Report Version:  6
 
Interval Since Last Report:          321683 sec
Crashes Since Last Report:           58
Per-App Interval Since Last Report:  190820 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      1AA3AE71-8AF0-44AD-8109-9157EDB0AF38
 
Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread
 
Application Specific Information:
objc[1936]: FREED(id): message retain sent to freed object=0x1de4bc30
 
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib                  0x970374b4 _objc_error + 116
1   libobjc.A.dylib                  0x970374ea __objc_error + 52
2   libobjc.A.dylib                  0x970357dc _freedHandler + 58
3   com.apple.QuartzComposer         0x968d0b48 -[QCStreamExporter_QCArray createRepresentationOfType:withProvider:withCount:elementSize:type:options:] + 1830
4   com.apple.QuartzComposer         0x968d0178 -[QCStreamManager createRepresentationFromProvider:ofType:withCount:elementSize:type:options:] + 1490
5   com.apple.QuartzComposer         0x969c7ce0 -[QCStream(QCStructure) _populateWithStream] + 301
6   com.apple.QuartzComposer         0x969c737e -[QCStream(QCStructure) memberAtIndex:] + 71
7   net.kineme.GLTools               0x1e296ebf 0x1e27c000 + 110271
8   com.apple.QuartzComposer         0x96840575 -[QCRenderingManager renderAtTime:arguments:] + 1674
9   com.apple.QuartzComposer         0x968a5a71 -[QCRenderInImage executeSubpatches:arguments:] + 118
10  com.apple.QuartzComposer         0x968a54cc -[QCRenderInImage execute:time:arguments:] + 2557
11  com.apple.QuartzComposer         0x9683f396 -[QCPatch(Private) _renderAtTime:arguments:] + 111
12  com.apple.QuartzComposer         0x9683f302 -[QCRenderingManager addPatch:context:time:arguments:nextExecutionTime:] + 2200
13  com.apple.QuartzComposer         0x9683e21f -[QCPatch(Private) __execute:arguments:] + 754
14  com.apple.QuartzComposer         0x9683deba -[QCPatch(Private) _execute:arguments:] + 1728
15  com.apple.QuartzComposer         0x9683e991 -[QCPort _execute:arguments:] + 268
16  com.apple.QuartzComposer         0x9683dd6e -[QCPatch(Private) _execute:arguments:] + 1396
17  com.apple.QuartzComposer         0x9683e991 -[QCPort _execute:arguments:] + 268
18  com.apple.QuartzComposer         0x9683dd6e -[QCPatch(Private) _execute:arguments:] + 1396
19  com.apple.QuartzComposer         0x9683e991 -[QCPort _execute:arguments:] + 268
20  com.apple.QuartzComposer         0x9685dc3d -[QCMultiplexerImagePort _execute:arguments:] + 130
21  com.apple.QuartzComposer         0x9683dd6e -[QCPatch(Private) _execute:arguments:] + 1396
22  com.apple.QuartzComposer         0x9683e991 -[QCPort _execute:arguments:] + 268
23  com.apple.QuartzComposer         0x9683dd6e -[QCPatch(Private) _execute:arguments:] + 1396
24  com.apple.QuartzComposer         0x9683e7ac -[QCPatch(Private) _executeSubpatches:arguments:] + 243
25  com.apple.QuartzComposer         0x9683e5e1 -[QCPatch(Customization) nextExecutionTimeForSubpatches:time:arguments:] + 192
26  com.apple.QuartzComposer         0x9683e4e9 -[QCPatch(Customization) nextExecutionTime:time:arguments:] + 81
27  com.apple.QuartzComposer         0x9683e443 -[QCPatch(Private) _nextExecutionTime:arguments:] + 461
28  com.apple.QuartzComposer         0x9683e18f -[QCPatch(Private) __execute:arguments:] + 610
29  com.apple.QuartzComposer         0x9683deba -[QCPatch(Private) _execute:arguments:] + 1728
30  com.apple.QuartzComposer         0x9683e7ac -[QCPatch(Private) _executeSubpatches:arguments:] + 243
31  com.apple.QuartzComposer         0x9683e5e1 -[QCPatch(Customization) nextExecutionTimeForSubpatches:time:arguments:] + 192
32  com.apple.QuartzComposer         0x9683e4e9 -[QCPatch(Customization) nextExecutionTime:time:arguments:] + 81
33  com.apple.QuartzComposer         0x9683e443 -[QCPatch(Private) _nextExecutionTime:arguments:] + 461
34  com.apple.QuartzComposer         0x9683e1d7 -[QCPatch(Private) __execute:arguments:] + 682
35  com.apple.QuartzComposer         0x9683deba -[QCPatch(Private) _execute:arguments:] + 1728
36  com.apple.QuartzComposer         0x9683c4ba -[QCContext nextExecutionTimeForPatch:time:arguments:] + 643
37  com.apple.QuartzComposer         0x9683c231 -[QCGraphicsContext nextExecutionTimeForPatch:time:arguments:] + 73
38  com.apple.QuartzComposer         0x9683c00b -[QCOpenGLContext nextExecutionTimeForPatch:time:arguments:] + 528
39  com.apple.QuartzComposer         0x9683bde8 -[QCPatch(Runtime) nextExecutionTime:arguments:] + 92
40  ...QuartzComposer.iTunesPlugIn   0x188ead89 iTunesPluginMainMachO + 9304
41  ...QuartzComposer.iTunesPlugIn   0x188eb210 iTunesPluginMainMachO + 10463

I will try to reproduce the CLGL related problem in a simpler composition that does not redistribute Apple's own code, as is personally and privately the case on my machine at present.

First sigill of this year BTW :-) .

Mesh Bulge

cybero's picture

I've been examining the OpenCL code for the Mesh Bulge filter from template.

if(amount<0) {
         float tt = maxrange;
         maxrange = -minrange;
         minrange = -tt;

as it happens the maxrange = -minrange; provokes an error in the OpenCL editor pane

read-only variable is not assignable. I know what it means but how to rectify is my question.

my quick & dirty workaround is to remove the offending error lines from maxrange = to -tt; and then I get a working variant in 10.6.2, but surely the kernel is actually AOK in theory code wise, so what gives.

seems a bit of a procrustean bed approach though :-)

Are max and min range supposed to be float 4 ?

I swear it's giving me headache, [apart from it's crashing whilst editing the kernel - ouch] it just doesn't seem to make sense at all, which is probably me not seeing the wood for the trees.

See attached the redrafted variant for MeshBulge mb_redraft_01.qtz. Works after a fashion.

I've also attached the item that just blanks out because the OpenCL kernel routine breaks at the read-only error point previously referred to.

Happens, without fail with the four routines employed to create transforms of vertices &/or normals.

At least I've got something that is working after a fashion, but is it "right" ? :-)

Anyhow - apologies if the problem / workaround and continuing compiler related conundrum has, in fact already been addressed.

P.S

Have just found that Mesh Noise also benefits from a similar quick and dirty edit of the OpenCL kernel.

Shall be posting the reworks up later elsewhere - Mesh Noise and Mesh Bulge brought back into something like a working state of play on 10.6.2.

I have ensured that these have not been saved back into any Repository point, I hasten to add.

They are meant to be working proof of their facilitation in 10.6.2 outside of those standard Repositories, from within which standard Repositories, a couple of the base compositions fail to work, as previously noted and complained of elsewhere upon this site.

P.P.S

You Tube Playlist On which playlist you will find, amongst other items, uploads exhibiting the very responsive Wave redraft, the fully automatic Jiggle redraft, the back on 10.6.2 [possibly paraplegic] Bulge & Noise redrafts, the latter two being the items most benefiting from my late night amputation routines - :-) .