Start a new topic
Solved

SIGSEGV when using camera 1 api with native plugin

Hi,

I'm trying to use the customCamera sample on a Huawei P7, and i'm unable to use camera 1 api, the plugin crashes when rendering frames:


thread #50: tid = 6651, 0x4abce2b4 libGLES_mali.so, name = 'GLThread 1155', stop reason = signal SIGSEGV: invalid address (fault address: 0x4e4f2108)
  frame #0: 0x4abce2b4 libGLES_mali.so
  frame #1: 0x4abe72c0 libGLES_mali.so
  frame #2: 0x4abe98cc libGLES_mali.so
  frame #3: 0x4abea370 libGLES_mali.so`_mali_convert_texture + 1032
  frame #4: 0x4ab98d90 libGLES_mali.so
  frame #5: 0x4ab7729c libGLES_mali.so
  frame #6: 0x4ab793bc libGLES_mali.so
  frame #7: 0x4abb50e0 libGLES_mali.so
  frame #8: 0x4ab73a5c libGLES_mali.so`glTexImage2D + 140
  frame #9: 0x4c1e58b2 libwikitudePlugins.so`YUVFrameInputPlugin::updateFrameTexturesData(int, int, unsigned char const*) + 170
  frame #10: 0x4c1e329c libwikitudePlugins.so`YUVFrameInputPlugin::render() + 216
  frame #11: 0x4c1e29a4 libwikitudePlugins.so`YUVFrameInputPlugin::startRender() + 88
  frame #12: 0x5016238e libarchitect.so`wikitude::sdk_foundation::impl::PluginManager::iterateEnabledPlugins(std::function<void (std::shared_ptr<wikitude::sdk::impl::Plugin> const&)>) + 62
  frame #13: 0x501624c4 libarchitect.so`wikitude::sdk_foundation::impl::PluginManager::startRenderPlugins() + 52
  frame #14: 0x5011ebb2 libarchitect.so`wikitude::sdk_core::impl::ArchitectEngine::architectLoop() + 366
  frame #15: 0x5013d920 libarchitect.so`gameplay::Game::frame() + 144
  * frame #16: 0x5012c21a libarchitect.so`wikitude::android_sdk::impl::ArchitectRendererInterface::drawFrame() + 54


works on a samsung S5.

(Just commented wikitudeCamera2 usage in CustomCameraActivity.java, using sdk 6.0.1)


Thanks



Wikitude Cam's latest version adds the option to store still photographs, but resolutions aren't restricted.

drift hunters

Login or Signup to post a comment