-
Notifications
You must be signed in to change notification settings - Fork 75
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
jvm crash #47
Comments
Can you confirm that this only comes with nutiteq-3dsdk-build341-232RC and not with earlier versions? |
Also, what do you mean by "hardware acceleration isn't available " ? |
Previous version of app was shipped with nutiteq-3dsdk-build311-231RC2 and without "mapsforge layer" option. That all, what we can say at this moment. "hardware acceleration isn't available" means |
Some more questions:
|
MapsForgeLayer: public class MapsForgeLayer extends RasterLayer implements ILayer {
public MapsForgeLayer(Projection projection, int minZoom, int maxZoom, int id, Context ctx) throws IOException {
super(new MapsforgeRasterDataSource(projection, minZoom, maxZoom, MapsForgeLayer.localMapsForgeFile(ctx),MapsForgeLayer.getDatabase(ctx), InternalRenderTheme.OSMARENDER, TransportApplication.getThisApplication()), id);
}
synchronized private static File localMapsForgeFile(Context ctx) throws IOException {
final File mapsForgeMap = new File(ctx.getExternalFilesDir(null) + "/" + "tmn.map");
if (mapsForgeMap.exists()) {
return mapsForgeMap;
} else {
final InputStream input = ctx.getResources().getAssets().open("tmn.map");
final OutputStream output = new FileOutputStream(mapsForgeMap.getAbsolutePath());
byte data[] = new byte[1024];
int count;
while ((count = input.read(data)) != -1) {
output.write(data, 0, count);
}
output.flush();
output.close();
input.close();
return new File(mapsForgeMap.getAbsolutePath());
}
}
private static MapDatabase getDatabase(Context ctx) throws IOException {
final MapDatabase mdb = new MapDatabase();
mdb.closeFile();
mdb.openFile(localMapsForgeFile(ctx));
return mdb;
}
@Override
public LayerType getType() {
return LayerType.MAPSFORGE_LAYER;
}
} mapsforge map file: https://drive.google.com/file/d/0B7JpsJ2ZKswObmVlWFBNdDFMSXc bounds: 56.877323, 65.283986, 57.403498, 65.974421 |
Tried to reproduce the issue on Nexus 7 (2012 version, Android 4.4.2), but could not. Got lots of messages 'App is not responding', but this is probably not related to the issue here. |
After updating to a new version of sdk (nutiteq-3dsdk-build341-232RC) we get strange errors, like that:
Devices: HTC Sensation XL with Beats - Android 4.4.2,
LG G2 (g2) - Android 4.4.2,
Galaxy S2 Plus (s2ve) - Android 4.4.2,
Nexus 7 (deb) - Android 4.4.2
Seems like it happens when MapView using mapsforge layer as base layer and hardware acceleration isn't available on that device. But this issue may not be related with map sdk.
Unfortunately we don't have listed devices to check issue.
The text was updated successfully, but these errors were encountered: