Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#18759 closed defect (fixed)

AssertionError when launching JOSM

Reported by: nkamapper Owned by: simon04
Priority: normal Milestone: 20.02
Component: Core mappaint Version:
Keywords: template_report regression mapcss zoom range Cc: simon04


What steps will reproduce the problem?

  1. Launching JOSM, both Web Start and MacOS package

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-02-23 19:11:30 +0100 (Sun, 23 Feb 2020)
Build-Date:2020-02-23 19:47:25
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15915 en_GB) Mac OS X 10.15.3
OS Build number: Mac OS X 10.15.3 (19D76)
Memory Usage: 599 MB / 1820 MB (206 MB allocated, but free)
Java version: 1.8.0_241-b07, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 69732864 1440x900
Maximum Screen Size: 1440x900
VM arguments: [-Djava.library.path=/private/var/folders/gw/1x4vl20s0f7_fqtqdj_z7t740000gn/T/AppTranslocation/C90C2B94-88CA-4633-9A02-46AFD7F509C6/d/, -DLibraryDirectory=${HOME}/Library, -DDocumentsDirectory=${HOME}/Documents, -DApplicationSupportDirectory=${HOME}/Library/Application Support, -DCachesDirectory=${HOME}/Library/Caches, -DApplicationDirectory=${HOME}/Applications, -DAutosavedInformationDirectory=${HOME}/Library/Autosave Information, -DDesktopDirectory=${HOME}/Desktop, -DDownloadsDirectory=${HOME}/Downloads, -DMoviesDirectory=${HOME}/Movies, -DMusicDirectory=${HOME}/Music, -DPicturesDirectory=${HOME}/Pictures, -DSharedPublicDirectory=${HOME}/Public, -DSystemLibraryDirectory=/Library, -DSystemApplicationSupportDirectory=/Library/Application Support, -DSystemCachesDirectory=/Library/Caches, -DSystemApplicationDirectory=/Applications, -DSystemUserDirectory=/Users, -DUserHome=${HOME}, -DSandboxEnabled=true, -DLaunchModifierFlags=0, -DLaunchModifierFlagCapsLock=false, -DLaunchModifierFlagShift=false, -DLaunchModifierFlagControl=false, -DLaunchModifierFlagOption=false, -DLaunchModifierFlagCommand=false, -DLaunchModifierFlagNumericPad=false, -DLaunchModifierFlagHelp=false, -DLaunchModifierFlagFunction=false, -Dapple.laf.useScreenMenuBar=true,,,,]

+ PicLayer
+ SeaChart
+ SeaMapEditor
+ apache-commons
+ conflation
+ ejml
+ geotools
+ imagery-xml-bounds
+ jaxb (35092)
+ jts
+ opendata
+ reverter
+ todo
+ utilsplugin2

Tagging presets:

Map paint styles:

Last errors/warnings:
- E: Failed to locate image ''
- E: Handled by bug report queue: java.util.concurrent.ExecutionException: java.lang.AssertionError. Cause: java.util.concurrent.ExecutionException: java.lang.AssertionError. Cause: java.lang.AssertionError

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: main (1) java.util.concurrent.ExecutionException: java.lang.AssertionError
	at org.openstreetmap.josm.spi.lifecycle.Lifecycle.initialize(
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(
	at org.openstreetmap.josm.gui.MainApplication.main(
Caused by: java.util.concurrent.ExecutionException: java.lang.AssertionError
	at java.util.concurrent.FutureTask.get(
	at org.openstreetmap.josm.spi.lifecycle.Lifecycle.initialize(
	... 3 more
Caused by: java.lang.AssertionError
	at org.openstreetmap.josm.gui.mappaint.mapcss.Selector$OptimizedGeneralSelector.fromLevel(
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.zoom(
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.selector(
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.child_selector(
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.selectors(
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.rule(
	at org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser.sheet(
	at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.loadStyleSource(
	at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.readFromPreferences(
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

Attachments (0)

Change History (9)

comment:1 by GerdP, 4 years ago

Cc: simon04 added

regression from r15910?

comment:2 by simon04, 4 years ago contains an invalid zoom range |z16-15.

Previously, this glitch has been reported on the console and loading continued. Due to (now) inadequate AssertionError, this triggers a report-bug-dialog.

in reply to:  1 comment:3 by simon04, 4 years ago

Keywords: regression mapcss zoom added

Replying to GerdP:

regression from r15910?


comment:4 by simon04, 4 years ago

Owner: changed from team to simon04
Status: newassigned

comment:5 by Don-vip, 4 years ago

Component: CoreCore mappaint
Keywords: range added
Milestone: 20.03

comment:6 by simon04, 4 years ago

Resolution: fixed
Status: assignedclosed

In 15925/josm:

fix #18759 - AssertionError on invalid MapCSS zoom range

comment:7 by simon04, 4 years ago

With r15925, the JOSM starts up and reports the invalid range to the console:

2020-02-24 21:47:50.416 WARNING: Failed to load Mappaint styles from ''. Exception was: java.lang.IllegalArgumentException: Invalid range: 238.8657133911758-238.8657133911758
2020-02-24 21:47:50.419 SEVERE: java.lang.IllegalArgumentException: Invalid range: 238.8657133911758-238.8657133911758
2020-02-24 21:47:50.421 WARNING: Initializing map style completed in 49 ms (1 errors, 0 warnings)

The reported numbers are due to the transformation Selector.OptimizedGeneralSelector#level2scale.

comment:8 by skyper, 4 years ago

no milestone ?

comment:9 by Klumbumbus, 4 years ago

Milestone: 20.0320.02

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.