Google Filament渲染引擎分割错误

乔尔·麦卡利斯特(Joel McAllister)

我试图通过静态链接到适当的库,从Filament库中编译示例应用程序“ Suzanne”。示例应用程序和库均已从最新源代码编译而成。我正在用clang ++进行编译。

但是,当我编译并运行该应用程序时,会得到一个segmentation faultvalgrind给出以下输出:

==31202== Process terminating with default action of signal 11 (SIGSEGV)
==31202==  Access not within mapped region at address 0x8
==31202==    at 0x46A485: size (__hash_table:809)
==31202==    by 0x46A485: bucket_count (__hash_table:1197)
==31202==    by 0x46A485: std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, void*>*> std::__1::__hash_table<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::__unordered_map_hasher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::__unordered_map_equal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, true>, std::__1::allocator<std::__1::__hash_value_type<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >::find<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (__hash_table:2334)
==31202==    by 0x461CA7: find (unordered_map:1205)
==31202==    by 0x461CA7: image::KtxBundle::getMetadata(char const*, unsigned long*) const (KtxBundle.cpp:274)
==31202==    by 0x463D26: image::KtxBundle::getSphericalHarmonics(filament::math::details::TVec3<float>*) (KtxBundle.cpp:290)
==31202==    by 0x420E69: IBL::loadFromKtx(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (in /home/joel/Documents/KiwiTest/filament-suzanne/out/suzanne)
==31202==    by 0x42162D: IBL::loadFromDirectory(utils::Path const&) (in /home/joel/Documents/KiwiTest/filament-suzanne/out/suzanne)
==31202==    by 0x41A41C: FilamentApp::loadIBL(Config const&) (in /home/joel/Documents/KiwiTest/filament-suzanne/out/suzanne)
==31202==    by 0x415D19: FilamentApp::run(Config const&, std::__1::function<void (filament::Engine*, filament::View*, filament::Scene*)>, std::__1::function<void (filament::Engine*, filament::View*, filament::Scene*)>, std::__1::function<void (filament::Engine*, filament::View*)>, std::__1::function<void (filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*)>, std::__1::function<void (filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*)>, unsigned long, unsigned long) (in /home/joel/Documents/KiwiTest/filament-suzanne/out/suzanne)
==31202==    by 0x40A1D4: main (in /home/joel/Documents/KiwiTest/filament-suzanne/out/suzanne)
==31202==  If you believe this happened as a result of a stack
==31202==  overflow in your program's main thread (unlikely but
==31202==  possible), you can try to increase the size of the
==31202==  main thread stack using the --main-stacksize= flag.
==31202==  The main thread stack size used in this run was 8388608.

对于可能导致此问题以及我为解决此问题所做的任何想法,将不胜感激。

乔尔·麦卡利斯特(Joel McAllister)

错误已解决(由TheGoldKnight23提供):使用的头文件已过时。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google App引擎部署错误

来自分类Dev

Google Chrome渲染颜色错误的图片

来自分类Dev

本地计算机上的MySQL Google App引擎-错误

来自分类Dev

Devise + Google Auth +可挂载引擎路由错误

来自分类Dev

Google 应用引擎错误服务器遇到临时错误,无法完成您的请求

来自分类Dev

Google Chrome字体渲染

来自分类Dev

渲染样式的Google地图

来自分类Dev

Google容器引擎和VPN

来自分类Dev

自动缩放Google容器引擎

来自分类Dev

Google计算引擎的路由问题

来自分类Dev

自动缩放Google App引擎

来自分类Dev

应用引擎中的google应用

来自分类Dev

Google Chrome渲染引擎-意外边距,将鼠标悬停在图片上后将其删除

来自分类Dev

Google自定义搜索引擎错误代码403:未配置访问

来自分类Dev

Google PHP API应用程序引擎上的PHP致命错误

来自分类Dev

terraform Google kubernetes引擎中的权限compute.regions.get错误

来自分类Dev

搜索引擎(Google)在搜索结果中显示错误的标题

来自分类Dev

无法从Google容器引擎访问Google Cloud SQL

来自分类Dev

Google App引擎还是我需要Google Apps脚本?

来自分类Dev

从 Google Compute 引擎到 Google Storage 的文件传输

来自分类Dev

Google Maps根本不渲染

来自分类Dev

Google Chrome DevTools字体渲染

来自分类Dev

我在Web渲染引擎中发现错误了吗?

来自分类Dev

Java自定义像素渲染引擎错误

来自分类Dev

我在Web渲染引擎中发现错误了吗?

来自分类Dev

Google App引擎-Rabbit MQ替代

来自分类Dev

Android和Google App引擎联合登录

来自分类Dev

Polymer Dart-Google App引擎TemplateSyntaxError

来自分类Dev

将jekyll托管到Google App引擎