Code Monkey home page Code Monkey logo

Comments (4)

ofTheo avatar ofTheo commented on May 28, 2024

If I change the closing sequence to have some printouts this is the output from:

 if( ofGetKeyPressed('c') ){
         if( mPipe ){
            cout << "1 - STOPPING PIPE" << endl; 
            mPipe->stop();
            mPipe.reset();
            cout << "2 - PIPE STOPPED AND RESET " << endl; 
            ofSleepMillis(100);
            cout << "3 - CALLING exit " << endl; 
            std::exit(0);
        }
    }
1 - STOPPING PIPE
[2023-09-26 11:41:27.002007][info][63146][Pipeline.cpp:344] Try to stop pipeline!
[2023-09-26 11:41:27.002039][info][63146][Pipeline.cpp:316] Try to stop streams!
[2023-09-26 11:41:27.079484][info][63146][VideoSensor.cpp:657] Video sensor stopped, @OB_SENSOR_DEPTH
[2023-09-26 11:41:27.079494][info][63146][Pipeline.cpp:329] Sensor stream stopped, sensorType=OB_SENSOR_DEPTH
[2023-09-26 11:41:27.079499][info][63146][Pipeline.cpp:335] Stop streams done!
[2023-09-26 11:41:27.080125][info][63146][Pipeline.cpp:373] Stop pipeline done!
[2023-09-26 11:41:27.080134][info][63146][Pipeline.cpp:69] Pipeline destroyed! @0x55A52BD44B60
[2023-09-26 11:41:27.080142][info][63146][FemtoMegaNetDevice.cpp:62] FemtoMega Net device destroyed! PID: 0x0669, SN: CL2K83P001W
[2023-09-26 11:41:27.080155][info][63146][VideoSensor.cpp:265] VideoSensor destroyed, @OB_SENSOR_DEPTH
[2023-09-26 11:41:27.080235][warning][63146][RTSPStreamPort.cpp:189] Stream have not been started!
2 - PIPE STOPPED AND RESET 
3 - CALLING exit 
[2023-09-26 11:41:27.180601][info][63149][DeviceManager.cpp:117] task finish.

Note: I have tried not closing the pipe or resetting too.

from orbbecsdk.

hzcyf avatar hzcyf commented on May 28, 2024

I believe the issue is related to a deadlock caused by the code I wrote to prevent the spdlog crash problem. The registry instance of spdlog is a static object, and it needs to be ensured that no log output remains after the object is destroyed when the program exits. Therefore, I cached the object and added a lock to avoid this situation. This issue has been resolved in the recent version. May you can verifiy it using v1.7.5.

from orbbecsdk.

ofTheo avatar ofTheo commented on May 28, 2024

from orbbecsdk.

ofTheo avatar ofTheo commented on May 28, 2024

Awesome - just tried 1.7.5 ( #13 ) and it totally fixes this issue.
Thanks @hzcyf

from orbbecsdk.

Related Issues (20)

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.