VectorCamera icon indicating copy to clipboard operation
VectorCamera copied to clipboard

Vector Camera v 1.2.3 Crash when clicked several times quickly on android 7.0

Open ammarraisafti opened this issue 6 years ago • 0 comments

Expected behavior

It should, when clicking multiple times quickly in image capture icon or start video, this app does not crash.

Actual behavior

Initially, I accidentally clicked several times quickly on the image capture icon or start the video. Furthermore, without me realizing this application suddenly crashes and stops. Then I tried re-implementing the behavior, to make sure that the behavior was real, or actually happening, causing the application to crash and stop. Also to ensure that this problem is purely technical. It turns out after I tried to do it, the application again broke down and stopped. So, the actual behavior I can conclude well. That is when clicking multiple times quickly on the image capture icon or start video, can cause this application to crash and stop.

How to reproduce

  1. Launch app.

  2. Click a few times quickly on the image capture icon.

  3. Press the back button to exit the captured image.

  4. Click the camera icon, to switch to video mode.

  5. Click several times quickly on the video start icon.

  6. You will find a problem as I have experienced, the application suddenly crashes and stops.


Device information reproduces BUG
Browser: Samsung Galaxy S6 edge
Operating system: Nougat 7.0

Recording Of The Bug

https://youtu.be/pGbRatSt-uI

Logcat

05-30 10:48:37.627 21568 21568 E AndroidRuntime: FATAL EXCEPTION: main
05-30 10:48:37.627 21568 21568 E AndroidRuntime: Process: com.dozingcatsoftware.vectorcamera, PID: 21568
05-30 10:48:37.627 21568 21568 E AndroidRuntime: java.lang.IllegalArgumentException: Invalid frame index: 0
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at com.dozingcatsoftware.vectorcamera.VideoReader.bitmapForFrame(VideoReader.kt:38)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at com.dozingcatsoftware.vectorcamera.PhotoLibrary.saveVideo(PhotoLibrary.kt:255)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at com.dozingcatsoftware.vectorcamera.MainActivity$videoRecorderUpdated$1.run(MainActivity.kt:603)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:751)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6682)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
05-30 10:48:37.627 21568 21568 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: FATAL EXCEPTION: main
05-30 10:49:01.977 24832 24832 E AndroidRuntime: Process: com.dozingcatsoftware.vectorcamera, PID: 24832
05-30 10:49:01.977 24832 24832 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dozingcatsoftware.vectorcamera/com.dozingcatsoftware.vectorcamera.ViewVideoActivity}: java.lang.IllegalArgumentException: Invalid frame index: 0
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.ActivityThread.-wrap14(ActivityThread.java)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6682)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Invalid frame index: 0
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at com.dozingcatsoftware.vectorcamera.VideoReader.bitmapForFrame(VideoReader.kt:38)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at com.dozingcatsoftware.vectorcamera.ViewVideoActivity.loadFrame(ViewVideoActivity.kt:144)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at com.dozingcatsoftware.vectorcamera.ViewVideoActivity.onCreate(ViewVideoActivity.kt:99)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.Activity.performCreate(Activity.java:6942)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880)
05-30 10:49:01.977 24832 24832 E AndroidRuntime: 	... 9 more</code>```

ammarraisafti avatar May 30 '18 07:05 ammarraisafti