Giter Site home page Giter Site logo

Comments (12)

gouravd avatar gouravd commented on July 29, 2024

on Android 4.4 device, the 2nd consecutive call to CaptureFrame crashes with
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x801 in tid 32358 (GLThread 5020)

from pldroidmediastreaming.

jpxiong avatar jpxiong commented on July 29, 2024

Could you please provide more informations ?Thanks.

from pldroidmediastreaming.

gouravd avatar gouravd commented on July 29, 2024

Call 1: handler.postDelayed(screenshotThread, 500);
Call 1 always succeeds.

Call 2: handler.postDelayed(screenshotThread, 500);
Call 2 intermittently fails on my Motorola G2 (Android 5.0.1) and always on Micromax Yureka (4.4.4)

If I call handler.postDelayed(screenshotThread) more frequently (like once in every 5 secs) it crashes on my Motorola as well.

This is reproducible even when the onFrameCaptured function is empty,

private Runnable screenshotThread = new Runnable() {
    @Override
    public void run() {
                @Override
                public void onFrameCaptured(Bitmap bmp) {

                }
        };
};

from pldroidmediastreaming.

jpxiong avatar jpxiong commented on July 29, 2024

Any logs ?

from pldroidmediastreaming.

gouravd avatar gouravd commented on July 29, 2024

I/CameraSurfaceRenderer: captureFrame width:272, height:480
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x801 in tid 32358 (GLThread 5020)

This is the only thing I saw. I will alter my code to reproduce the issue and share the complete logs too Again since the exception is in the native jni code, I am not too sure if any debug logs would be helpful. But I will still share the logs when I generate them

from pldroidmediastreaming.

jpxiong avatar jpxiong commented on July 29, 2024

More Debug logs will be helpful to handle the issue. Thanks.

from pldroidmediastreaming.

jpxiong avatar jpxiong commented on July 29, 2024

I think the following way to catch logs will be more effective:

adb shell logcat -v time thread | tee ~/log.log

from pldroidmediastreaming.

gouravd avatar gouravd commented on July 29, 2024

So I clicked on a button which called mCameraStreamingManager.captureFrame. Then I started adb logging and then clicked the button again to call mCameraStreamingManager.captureFrame again and it crashed.

Time when the error occurs - 11-17 17:44:19.701

log.txt

from pldroidmediastreaming.

jpxiong avatar jpxiong commented on July 29, 2024

The log.txt is very valuable for debugging. Thanks.

from pldroidmediastreaming.

jpxiong avatar jpxiong commented on July 29, 2024

Had been fixed. The next version will contain the PATCH.

from pldroidmediastreaming.

gouravd avatar gouravd commented on July 29, 2024

Awesome news. Thanks

from pldroidmediastreaming.

gouravd avatar gouravd commented on July 29, 2024

This is solved in 1.4.3

from pldroidmediastreaming.

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.