B4J Question A fatal error has been detected by the Java Runtime Environment

schimanski

Well-Known Member
Licensed User
Longtime User
Does anybody knows something about the following error-message? It seems to be related to googlemaps. When using the map, it happens after a few seconds...
 

Attachments

  • hs_err_pid285836.txt
    37.8 KB · Views: 217

schimanski

Well-Known Member
Licensed User
Longtime User
Now, i get this????? I use a Core i7 with 8GB RAM.

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 316976 bytes for Chunk::new
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (allocation.cpp:390), pid=28120, tid=340872
#
# JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
 
Upvote 0

schimanski

Well-Known Member
Licensed User
Longtime User
Ok, I found the causer:

For each chosen marker, I use the following code:

B4X:
Dim cp As CameraPosition
cp.Initialize(lat, lon, 15)
gmap.MoveCamera(cp)

After using it one or three times directly behind, the app runs in an outofmemory-error. On the system-monitor I can see, that the memory runs from 5 GB free to zero in a few seconds, when the app hungs up.
 
Upvote 0

schimanski

Well-Known Member
Licensed User
Longtime User
Seems, that the big zoom is the problem. I now use the code above with a zoomlevel of 5 and the memory-usage is less than 500MB.:)
 
Upvote 0
Top