This repository has been archived by the owner. It is now read-only.

java.lang.NegativeArraySizeException #37

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

Comments

Projects
None yet
8 participants
@espiegel

espiegel commented Jan 29, 2015

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

This comment has been minimized.

Owner

mcxiaoke commented Mar 19, 2015

fixed in #38

@ValleZ

This comment has been minimized.

ValleZ commented Apr 27, 2015

is this in 1.0.15?

@mcxiaoke

This comment has been minimized.

Owner

mcxiaoke commented Apr 29, 2015

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

@moradgholi

This comment has been minimized.

moradgholi commented May 17, 2015

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

@mcxiaoke

This comment has been minimized.

Owner

mcxiaoke commented May 18, 2015

@moradgholi released today

@binqiangsun

This comment has been minimized.

binqiangsun commented Jun 1, 2015

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

This comment has been minimized.

joebowbeer commented Oct 4, 2016

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

@agozie

This comment has been minimized.

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

This comment has been minimized.

abhaymaniyar commented Jan 6, 2018

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

This comment has been minimized.

joebowbeer commented Jan 6, 2018

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.