javafx - Getting EXCEPTION_ACCESS_VIOLATION with Java 8 if I load data over 2 GB -



javafx - Getting EXCEPTION_ACCESS_VIOLATION with Java 8 if I load data over 2 GB -

i using latest java runtime 8 , have created application in javafx load images in canvas. if info size below 2gb application runs fine, if 1 mb on 2gb next error logged.

a fatal error has been detected java runtime environment: exception_access_violation (0xc0000005) @ pc=0x0000000053def51c, pid=5716, tid=10968 jre version: java(tm) se runtime environment (8.0_20-b26) (build 1.8.0_20-b26) java vm: java hotspot(tm) 64-bit server vm (25.20-b23 mixed mode windows-amd64 compressed oops) problematic frame: v [jvm.dll+0x21f51c] failed write core dump. minidumps not enabled default on client versions of windows error study file more info saved as: c:\users\105064864\documents\netbeansprojects\javafx3dapplication\hs_err_pid5716.log compiled method (nm) 51180 1220 n 0 sun.misc.unsafe::copymemory (native) total in heap [0x0000000002f4fb10,0x0000000002f4fe90] = 896 relocation [0x0000000002f4fc30,0x0000000002f4fc78] = 72 main code [0x0000000002f4fc80,0x0000000002f4fe90] = 528 if submit bug report, please visit: http://bugreport.sun.com/bugreport/crash.jsp

i have tried several options , nil works.

i using windows 7 , jre 8.0

my java , os both 64 bit.

i have tried on 8gb , 16gb rams.

i have set vm options (-xmx4g) allocated 4gb , above nil works.

is there limit imposed graphic card of machine on data? or there other setting apart -xmx4g can set explicitly allow on 2 gb of info loading?

with magic number beingness 2gb, first thing comes mind somewhere there's array beingness initiliazed hold whole data. since in java array index must of type int (reference: http://docs.oracle.com/javase/specs/jls/se8/html/jls-10.html#jls-10.4), maximum array length can integer.max_value (2147483647). assuming info loaded single byte array, 2147483647 bytes ~ 2gb maximum capacity. thus, possible trying allocate larger array application results in aforementioned exception.

the situation typically handled loading info in chunks , not storing in single byte array. however, far i've gathered isn't code actual physical reading storage. perhaps if mention utilize case application easier come higher level solution

java javafx 64bit

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -