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

java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 #284

Closed
HritikBhat opened this issue Nov 2, 2020 · 4 comments
Closed

java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 #284

HritikBhat opened this issue Nov 2, 2020 · 4 comments

Comments

@HritikBhat
Copy link

When the sticker is larger than photoediterview or multiple sticker on photoeditorview...It causing in version 1.1.0

E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.digitalvtalks.data, PID: 29899
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:353)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at android.view.ViewGroup.getAndVerifyPreorderedView(ViewGroup.java:3756)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4243)
at android.view.View.draw(View.java:20346)
at android.view.ViewGroup.drawChild(ViewGroup.java:4459)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4245)
at android.view.View.buildDrawingCacheImpl(View.java:19720)
at android.view.View.buildDrawingCache(View.java:19586)
at android.view.View.getDrawingCache(View.java:19492)
at android.view.View.getDrawingCache(View.java:19457)
at ja.burhanrashid52.photoeditor.PhotoEditor$6$1.doInBackground(PhotoEditor.java:745)
at ja.burhanrashid52.photoeditor.PhotoEditor$6$1.doInBackground(PhotoEditor.java:731)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 
at java.lang.Thread.run(Thread.java:764) 

@JSpiner
Copy link
Contributor

JSpiner commented Mar 9, 2021

same here

JSpiner added a commit to JSpiner/PhotoEditor that referenced this issue Mar 10, 2021
- getDrawingCache is deprecated.
- getDrawingCache raises burhanrashid52#284
- PixelCopy is better way. But it needs window instance.
burhanrashid52 pushed a commit that referenced this issue Mar 13, 2021
- getDrawingCache is deprecated.
- getDrawingCache raises #284
- PixelCopy is better way. But it needs window instance.
@JSpiner
Copy link
Contributor

JSpiner commented Mar 15, 2021

fixed at v1.1.1

@JSpiner
Copy link
Contributor

JSpiner commented Mar 15, 2021

thanks to @burhanrashid52

@burhanrashid52
Copy link
Owner

Fixed in v.1.1.1

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

No branches or pull requests

3 participants