Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

java.lang.NegativeArraySizeException #37

Closed
espiegel opened this issue Jan 29, 2015 · 10 comments
Closed

java.lang.NegativeArraySizeException #37

espiegel opened this issue Jan 29, 2015 · 10 comments

Comments

@espiegel
Copy link

I'm getting this error sometimes which causes my application to crash:

java.lang.NegativeArraySizeException: -450
at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:322)
at com.android.volley.toolbox.DiskBasedCache.get(DiskBasedCache.java:118)
at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:100)

@mcxiaoke
Copy link
Owner

fixed in #38

@ValleZ
Copy link

ValleZ commented Apr 27, 2015

is this in 1.0.15?

@mcxiaoke
Copy link
Owner

@ValleZ not yet, I will publish a new version in this week.

@moradgholi
Copy link

@mcxiaoke haven't you release an update on this ?

@mcxiaoke
Copy link
Owner

@moradgholi released today

@binqiangsun
Copy link

Is this only github updated. I found these codes are not in the android / platform/frameworks/volley / android-5.1.1_r4 of google code?

@joebowbeer
Copy link

I think this is another symptom of #61 (OutOfMemoryError) and both of these are caused by problems reading the header.

@agozie
Copy link

agozie commented Jan 28, 2017

I got this today.

Exception java.lang.NegativeArraySizeException: -824
com.android.volley.toolbox.DiskBasedCache.streamToBytes (DiskBasedCache.java:323)
com.android.volley.toolbox.DiskBasedCache.get (DiskBasedCache.java:119)
com.android.volley.CacheDispatcher.run (CacheDispatcher.java:100)

@abhaymaniyar
Copy link

I got this few days ago:

Fatal Exception: java.lang.NegativeArraySizeException: -1362
at com.android.volley.toolbox.DiskBasedCache.streamToBytes(DiskBasedCache.java:323)
at com.android.volley.toolbox.DiskBasedCache.get(DiskBasedCache.java:119)
at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:100)

@joebowbeer
Copy link

This should now be fixed in the 1.1.1-SNAPSHOT build of https://github.com/google/volley

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

No branches or pull requests

8 participants