Banuba / quickstart-ios-swift

Quick start examples for Banuba Face AR SDK on iOS
MIT License
14 stars 4 forks source link

Critical Error: Failed to activate empty effect. #22

Closed isayeter closed 2 years ago

isayeter commented 2 years ago

Hello, I wanted to install BanubaSdk as in this example, however I am encountering this error when I want to try it,

even I have commented the line in my project:

//_ = self.sdkManager.loadEffect(self.externalEffects[self.selectedEffectIndex], synchronous: true) can you please help?

com.banubaSdk.renderThread (26): "At /Users/user/buildAgent/work/846da17cdd594915/libs/effect_player/bnb/effect_player/internal/effect/effect_manager.cpp:304. Critical Error: Failed to activate empty effect. Reason: Failed to load : At /Users/user/buildAgent/work/846da17cdd594915/libs/utils/bnb/utils/internal/resources/resource_manager.cpp:402. Resource not found with specified URL: \"bnb_shaders/bnb/lib/dual_filter_blur_downscale.vert\". Search locations: file:///, file:///var/containers/Bundle/Application/B71BA5FA-B08F-47C9-95E7-24ADA03F0701/Wiki.app/Frameworks/BNBSdkCore.framework/bnb-resources, file:///var/containers/Bundle/Application/B71BA5FA-B08F-47C9-95E7-24ADA03F0701/Wiki.app/Frameworks/BNBSdkCore.framework/bnb-res-ios, file:///private/var/containers/Bundle/Application/B71BA5FA-B08F-47C9-95E7-24ADA03F0701/Wiki.app/effects"

isayeter commented 2 years ago

as I added our test effects into "effects" folder, I had set up the initial "resourcePath" array as only ["effects"]. I have added the "bnb-resources" to the array now and the problem is fixed.