Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gltf_viewer run batch test crash #4892

Closed
GGMU1987 opened this issue Nov 25, 2021 · 0 comments
Closed

gltf_viewer run batch test crash #4892

GGMU1987 opened this issue Nov 25, 2021 · 0 comments

Comments

@GGMU1987
Copy link

Describe the bug
gltf_viewer run batch test crash

To Reproduce
Steps to reproduce the behavior:

  1. check out tag 1.14.2
  2. run gltf_viewer project
  3. check export screenshot for each test
  4. run batch test
  5. crash

A clear and concise description of what you expected to happen.
output screenshot file

Screenshots
image
Expected behavior

Logs
utils::PreconditionPanic

in void filament::FRenderer::readPixels(uint32_t, uint32_t, uint32_t, uint32_t, filament::backend::PixelBufferDescriptor &&):1177
in file filament/filament/src/Renderer.cpp
reason: readPixels() on a SwapChain must be called after beginFrame() and before endFrame().
#0 gltf_viewer 0x10995889d utils::CallStack::update(unsigned long) + 29
#1 gltf_viewer 0x1099771f4 utils::TPanicutils::PreconditionPanic::TPanic(char const*, char const*, int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) + 180
#2 gltf_viewer 0x109977f5d utils::PreconditionPanic::PreconditionPanic(char const*, char const*, int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) + 61
#3 gltf_viewer 0x109976f0b utils::PreconditionPanic::PreconditionPanic(char const*, char const*, int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >) + 43
#4 gltf_viewer 0x109976c89 utils::TPanicutils::PreconditionPanic::panic(char const*, char const*, int, char const*, ...) + 553
#5 gltf_viewer 0x108a9bf6d filament::FRenderer::readPixels(unsigned int, unsigned int, unsigned int, unsigned int, filament::backend::PixelBufferDescriptor&&) + 109
#6 gltf_viewer 0x108a9c476 filament::Renderer::readPixels(unsigned int, unsigned int, unsigned int, unsigned int, filament::backend::PixelBufferDescriptor&&) + 102
#7 gltf_viewer 0x10870022a filament::viewer::exportScreenshot(filament::View*, filament::Renderer*, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, bool, filament::viewer::AutomationEngine*) + 394
#8 gltf_viewer 0x1086ffba4 filament::viewer::AutomationEngine::tick(filament::viewer::AutomationEngine::ViewerContent const&, float) + 1012
#9 gltf_viewer 0x1086cb4f3 main::$_7::operator()(filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*) const + 275
#10 gltf_viewer 0x1086cb3ca decltype(std::__1::forwardmain::$_7&(fp)(std::__1::forwardfilament::Engine*(fp0), std::__1::forwardfilament::View*(fp0), std::__1::forwardfilament::Scene*(fp0), std::__1::forwardfilament::Renderer*(fp0))) std::__1::__invoke<main::$_7&, filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*>(main::$_7&, filament::Engine*&&, filament::View*&&, filament::Scene*&&, filament::Renderer*&&) + 122
#11 gltf_viewer 0x1086cb321 void std::__1::__invoke_void_return_wrapper::__call<main::$_7&, filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*>(main::$_7&, filament::Engine*&&, filament::View*&&, filament::Scene*&&, filament::Renderer*&&) + 113
#12 gltf_viewer 0x1086cb2a1 std::__1::__function::__alloc_func<main::$_7, std::__1::allocatormain::$_7, void (filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*)>::operator()(filament::Engine*&&, filament::View*&&, filament::Scene*&&, filament::Renderer*&&) + 113
#13 gltf_viewer 0x1086c9fe2 std::__1::__function::__func<main::$_7, std::__1::allocatormain::$_7, void (filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*)>::operator()(filament::Engine*&&, filament::View*&&, filament::Scene*&&, filament::Renderer*&&) + 114
#14 gltf_viewer 0x1086d4777 std::__1::__function::__value_func<void (filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*)>::operator()(filament::Engine*&&, filament::View*&&, filament::Scene*&&, filament::Renderer*&&) const + 151
#15 gltf_viewer 0x1086d083f std::__1::function<void (filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*)>::operator()(filament::Engine*, filament::View*, filament::Scene*, filament::Renderer*) const + 111
#16 gltf_viewer 0x1086cebee 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) + 10094
#17 gltf_viewer 0x1086ad3d0 main + 2320

libc++abi: terminating with uncaught exception of type utils::PreconditionPanic

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Desktop (please complete the following information):

  • OS: macos 11.5.2
  • GPU: Radeon Pro 580X 8 GB
  • Backend: [OpenGL]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant