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

Error Attempt to invoke virtual method when capturing a photo #3289

Closed
asemiankevich opened this issue Feb 12, 2018 · 7 comments · Fixed by #3297
Closed

Error Attempt to invoke virtual method when capturing a photo #3289

asemiankevich opened this issue Feb 12, 2018 · 7 comments · Fixed by #3297

Comments

@asemiankevich
Copy link
Contributor

asemiankevich commented Feb 12, 2018

Description

Type: Bug

Summary: App crashes with java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference on Android when multitapping when capturing user picture

Expected behavior

no crash

Actual behavior

image
as well as

java.lang.RuntimeException: Camera is being used after Camera.release() was called

Reproduction

  • Open Profile
  • Tap edit - capture
  • Tap the screen several times in fast manner

Additional Information

  • Status version: 0.9.10-663-gd0dff14e+ (2220) develop
  • Operating System: Android

Logs

https://app.testfairy.com/projects/4803622-status/builds/7671704/sessions/2/?accessToken=EzO1CCG3FCs91s5XA/0RimxKjMA

@rasom
Copy link
Contributor

rasom commented Feb 12, 2018

can't reproduce this on Android devices, only see the next exception when press camera icon multiple times:

@asemiankevich
Copy link
Contributor Author

asemiankevich commented Feb 12, 2018

Just repro it within latest develop, using LGE - LG-H990 Android 7.0. Can reproduce the error @rasom has found too

@rasom
Copy link
Contributor

rasom commented Feb 13, 2018

@rasom rasom self-assigned this Feb 13, 2018
rasom added a commit that referenced this issue Feb 13, 2018
rasom added a commit that referenced this issue Feb 13, 2018
yenda pushed a commit that referenced this issue Feb 14, 2018
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
@asemiankevich asemiankevich reopened this Feb 14, 2018
@asemiankevich
Copy link
Contributor Author

reopened as this commit needs to be rolled back. It does not fix the problem.

@lukaszfryc
Copy link
Contributor

I've just reproduced it on Samsung Galaxy S8, Android 7.0. Here is TS.

rasom added a commit that referenced this issue Apr 3, 2018
rasom added a commit that referenced this issue Apr 4, 2018
@rasom rasom removed their assignment Jun 26, 2018
@status-github-bot
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@status-github-bot
Copy link

This issue has been automatically closed. Please re-open if this issue is important to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants