GrContextOptions memory issue

25 views
Skip to first unread message

Marius

unread,
Jun 7, 2024, 9:52:24 AMJun 7
to skia-discuss
Hello, I've build Skia for IOS plateform to execute already working code on MacOS on my Ipad. 
Although the build goes well, at runtime I get a strange memory behavior. 

The void* pointer here gets invalidated once GrContextOptions is called. 

    printf("Before function call: %p\n", inNativeHandle);

    GrContextOptions test = GrContextOptions();

    printf("Before function call: %p\n", inNativeHandle);

    const auto config = SkiaBackendConfig();


After setting up a watcher on this variable thanks to XCode, it seems that it's GrDriverBugWorkaround object creation that creates this strange behavior.

I tried different argument lists to build Skia : 

bin/gn gen out/iosLight --args='target_cpu="arm64"  

target_os="ios"

skia_use_gl=true

skia_use_metal=true

is_official_build=true

 skia_enable_pdf=false 

is_component_build=false 

skia_use_system_libpng=false

skia_use_system_libjpeg_turbo=false

skia_use_angle=false 

skia_enable_gpu=true

skia_enable_ganesh=true '


Here's the last one I tried. 


If someone has any clue on how to resolve this issue, or find any clue to do so  ! 


Reply all
Reply to author
Forward
0 new messages