mocap4face icon indicating copy to clipboard operation
mocap4face copied to clipboard

Mainactivity re-opened cannot be traced

Open cike978 opened this issue 2 years ago • 8 comments

Only the first open MainActivity can be tracked. when back to SplashActivity and reopen Mainactivity the track result is null.

The test code is as follows(modify SplashAtivity):

override fun onResume() {
    super.onResume()
    Timer("Splash", false).schedule(5000) {
        startMainActivity()
    }
}

cike978 avatar Dec 16 '21 09:12 cike978

The Repetition steps is when the app is not killed, go back to the SplashActivity and enter MainActicity again

cike978 avatar Dec 16 '21 09:12 cike978

Same problem, the error is "OpenGLResizer20: setup OES texture: glError 1282: invalid operation"

will4621d avatar Jan 06 '22 07:01 will4621d

@karelp Hi, is there any update about this issue?

will4621d avatar Mar 25 '22 02:03 will4621d

Hi, I’m able to reproduce it but it takes quite a bit of internal refactor to get fixed, the problem is that sometimes when closing/reopening activities the OpenGL context gets lost without the camera tracker getting information about it. Will probably need to rethink the way we handle OpenGL to work around this problem.

karelp avatar Mar 25 '22 09:03 karelp

I also encountered this mistake and urgently need to solve it. Is there any way to solve this problem now? thank you

lonelyssl avatar May 16 '22 01:05 lonelyssl

Hey, yes, the workaround for now is to create new CameraWrapper when the activity gets restarted.

karelp avatar May 16 '22 09:05 karelp

Is there any solution to this problem? It is in urgent need of repair. Thank you

pengzhenkun avatar Aug 06 '22 10:08 pengzhenkun

I also encountered this mistake and urgently need to solve it. Is there any way to solve this problem now? thank you

Is there a solution?

pengzhenkun avatar Aug 06 '22 10:08 pengzhenkun

Fixed in 0.4.0.

karelp avatar Aug 29 '22 13:08 karelp