Code Monkey home page Code Monkey logo

parallel-rdp-standalone's Issues

Failure to shutdown gracefully on devices that don't have required vulkan extensions

There seems to be a potential race condition during shutdown on devices that don't support all the correct vulkan extensions, like some Android devices.

Mainly I'm getting this stack trace sometimes:

Crashed: Thread: SIGABRT  0x0000000000000000
#00 pc 0x2216c libc.so 
#01 pc 0x22140 libc.so 
#02 pc 0x919e8 libc.so 
#03 pc 0x91050 libc.so 
#04 pc 0x90ecc libc.so 
#05 pc 0x4546d4 libmupen64plus-video-parallel.so (<name omitted> [__threading_support:367])
#06 pc 0x4069b4 libmupen64plus-video-parallel.so (RDP::Renderer::maintain_queues_idle() [__mutex_base:91])
#07 pc 0x3fdabc libmupen64plus-video-parallel.so (RDP::CommandProcessor::enqueue_command_direct(unsigned int, unsigned int const*) [rdp_device.cpp:939])
#08 pc 0x3fa5dc libmupen64plus-video-parallel.so (RDP::CommandRing::thread_loop() [command_ring.cpp:126])
#09 pc 0x3fad84 libmupen64plus-video-parallel.so (void* std::__ndk1::__thread_proxy<std::__ndk1::tuple<std::__ndk1::unique_ptr<std::__ndk1::__thread_struct, std::__ndk1::default_delete<std::__ndk1::__thread_struct> >, void (RDP::CommandRing::*)(), RDP::CommandRing*> >(void*) [thread:273])
#10 pc 0x90328 libc.so 
#11 pc 0x23a28 libc.so 

I would take the line numbers with a grain of salt since these are stack traces coming out of optimized builds. Some of the stack is also missing due to the build being optimized. Anyways, an invalid mutex seems to be getting locked during shutdown. It almost seems like the thread is still running after the Renderer object is destroyed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.