osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.66k stars 1.02k forks source link

Osmand crashes on startup #21066

Closed Nine-Tailed closed 2 weeks ago

Nine-Tailed commented 2 weeks ago

Description

Version  OsmAnd~ 4.9.0#3474m
17.10.2024 2:08:44
Apk Version : 4.9.0#3474m 4900
Exception occurred in thread Thread[main,5,main] : 
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.osmand.plus/net.osmand.plus.activities.MapActivity}: java.util.UnknownFormatConversionException: Conversion = ')'
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3920)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4073)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2426)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:211)
    at android.os.Looper.loop(Looper.java:300)
    at android.app.ActivityThread.main(ActivityThread.java:8503)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
Caused by: java.util.UnknownFormatConversionException: Conversion = ')'
    at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:3013)
    at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:3051)
    at java.util.Formatter$FormatSpecifierParser.<init>(Formatter.java:2804)
    at java.util.Formatter.parse(Formatter.java:2737)
    at java.util.Formatter.format(Formatter.java:2686)
    at java.util.Formatter.format(Formatter.java:2640)
    at java.lang.String.format(String.java:4068)
    at android.content.res.Resources.getString(Resources.java:598)
    at android.content.Context.getString(Context.java:800)
    at net.osmand.plus.views.mapwidgets.widgets.MapWidget.getString(MapWidget.java:155)
    at net.osmand.plus.views.mapwidgets.widgets.TextInfoWidget.setContentTitle(TextInfoWidget.java:115)
    at net.osmand.plus.views.mapwidgets.SimpleWidgetInfo.<init>(SimpleWidgetInfo.java:28)
    at net.osmand.plus.views.mapwidgets.WidgetInfoCreator.createWidgetInfo(WidgetInfoCreator.java:127)
    at net.osmand.plus.views.mapwidgets.WidgetInfoCreator.createWidgetInfo(WidgetInfoCreator.java:57)
    at net.osmand.plus.plugins.odb.VehicleMetricsPlugin.createWidgets(VehicleMetricsPlugin.kt:106)
    at net.osmand.plus.plugins.PluginsHelper.createMapWidgets(PluginsHelper.java:619)
    at net.osmand.plus.views.mapwidgets.WidgetsInitializer.createAllControls(WidgetsInitializer.java:71)
    at net.osmand.plus.views.mapwidgets.WidgetsInitializer.createAllControls(WidgetsInitializer.java:153)
    at net.osmand.plus.views.mapwidgets.MapWidgetRegistry.registerAllControls(MapWidgetRegistry.java:367)
    at net.osmand.plus.views.layers.MapInfoLayer.registerAllControls(MapInfoLayer.java:219)
    at net.osmand.plus.views.layers.MapInfoLayer.setMapActivity(MapInfoLayer.java:101)
    at net.osmand.plus.views.MapLayers.setMapActivity(MapLayers.java:235)
    at net.osmand.plus.activities.MapActivity.onCreate(MapActivity.java:254)
    at android.app.Activity.performCreate(Activity.java:8589)
    at android.app.Activity.performCreate(Activity.java:8553)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1445)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3901)
    ... 12 more

Steps to reproduce

.

Actual result

.

Expected result

.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version:
Android/iOS version:
Device model:
Crash-Logs: ?
Nine-Tailed commented 2 weeks ago

Fixed in https://github.com/osmandapp/OsmAnd/commit/ca3b00ed50da80e813bc4b048846bd6945a0f596 OsmAnd~ 4.9.0#3476m, Дата выпуска: 2024-10-17