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

App crash after opened image and click in"touch to see color" #15

Open
muhammadarif1 opened this issue May 30, 2019 · 1 comment
Open
Labels

Comments

@muhammadarif1
Copy link

muhammadarif1 commented May 30, 2019

EXPECTED BEHAVIOR

this application will display the color name when the user wants to see the color of a photo they choose

ACTUAL BEHAVIOR

the app will crash when user click on touch to see color

STEP TO REPRODUCE

  • install and open the app
  • click on open option
  • chose any pic
  • click on touch to see color and note the bug

ERROR RECORDING

https://youtu.be/qKKdFAFR9pM
BROWSER
OS :ANDROID 6.1
***DEVICE *** :OPPO NEO 5
APP :COLOR V1.3
Here is log cat

Process: com.njzjz.color, PID: 24301
java.lang.ArithmeticException: divide by zero
	at com.njzjz.color.MainActivity.getrgb(MainActivity.java:329)
	at com.njzjz.color.MainActivity$3.onTouch(MainActivity.java:224)
	at android.view.View.dispatchTouchEvent(View.java:8582)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2530)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2110)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2530)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2110)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2530)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2110)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2530)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2110)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2530)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2110)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2530)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2110)
	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2538)
	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1811)
	at android.app.Activity.dispatchTouchEvent(Activity.java:2820)
	at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)
	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2476)
	at android.view.View.dispatchPointerEvent(View.java:8799)
	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4729)
	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4551)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4047)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4106)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4066)
	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4209)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4074)
	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4266)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4047)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4106)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4066)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4074)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4047)
	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6530)
	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6504)
	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6457)
	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6689)
	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:218)
	at android.os.MessageQueue.nativePollOnce(Native Method)
	at android.os.MessageQueue.next(MessageQueue.java:148)
	at android.os.Looper.loop(Looper.java:168)
	at android.app.ActivityThread.main(ActivityThread.java:5657)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)```
@muhammadarif1
Copy link
Author

@njzjz

@njzjz njzjz added the bug label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants