Hi Christian,
Le mercredi 7 novembre 2018 09:27:47 UTC+1, Christian Gollwitzer a écrit :
> Am 06.11.18 um 20:50 schrieb Nicolas:
> > Le mardi 6 novembre 2018 17:52:39 UTC+1, Christian Gollwitzer a écrit :
> >> Am 06.11.18 um 16:28 schrieb Nicolas:
>
> >>> #define writeImage(c, p, _dc) write_imagef(_outputTexture, (int2)p, c)
> >>> #define writeImagePlane(c, p, _dc) write_imagef(_outputTexturePlane, (int2)p, c)
> >>> #define writePixel(r, g, b, a, p, _dc) write_imagei(_outputTexture, (int2)p, (int4)(r,g,b,a))
> >>> #define writeCoord(_dc) (float2)_writeLoc
> >>
> >> Are you sure that this error message comes from Tk? That is highly
> >> unlikely - it is an error while compiling an OpenCL kernel. Tk in its
> >> basic form does not use OpenCL.
>
> >
> > thank you for your answer.
> > yes, I'm pretty sure it comes from Tk as it's the only UI lib I'm using.
>
> I just double checked, the Tk source code of 8.6.9rc3 does not refer to
> these functions, nor to OpenCL at all - it must come from something
> else, or maybe a dependent library
>
I've checked also and indeed did not find any reference to OpenCL...
I must have done something wrong because the error doesn't raise anymore...
> > I can investigate more but this message raise when I call tk_getSaveFile
>
> When you run this, an instance of Finder opens. I can imagine that you
> have an extension which tries to display something in the Finder window.
> Can you try open a program at the command line which features a file
> open dialog, e.g.
>
> open -n -a TextEdit
>
> and open a file dialog? Or have a look into the log window
> (
console.app). I can imagine that the error messages come with every
> file dialog, but that you simply don't see them in other programs,
> because they run without a terminal.
exact, each time an openFile window is raising I got the following line (either from my app or the open -n -a TextEdit command):
Nov 7 09:41:49 mac-de-nicolas TextEdit[16667]: DEPRECATED USE in libdispatch client: dispatch source activated with no event handler set; set a breakpoint on _dispatch_bug_deprecated to debug
Nov 7 09:41:50 mac-de-nicolas com.apple.appkit.xpc.openAndSavePanelService[16669]: objc[16669]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffab0f41d0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x10aa3adc8). One of the two will be used. Which one is undefined.
and regarding tk_getSaveFile when I hit Save after setting the filename everything is fine , but if I hit Enter, my app crash everytime and console is not very helpful:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 Tk 0x000000010607dfb8 0x105f2c000 + 1384376
1 Tk 0x000000010607d98d 0x105f2c000 + 1382797
2 Tk 0x000000010607545b 0x105f2c000 + 1348699
3 Tk 0x0000000106088eee 0x105f2c000 + 1429230
4 Tcl 0x0000000105e5c851 Tcl_DoOneEvent + 497
Nicolas
>
> Christian