Modify

Opened 4 years ago

Closed 3 years ago

#2904 closed defect (othersoftware)

Transient (and harmless?) exception when starting JOSM in java.awt.image.ColorModel

Reported by: avar Owned by: team
Priority: minor Component: Core
Version: latest Keywords: javabug
Cc:

Description

Every once in a while I get this exception when starting JOSM:

Uncaught error fetching image:
java.lang.ClassCastException: [I cannot be cast to [B
	at java.awt.image.ColorModel.getAlpha(ColorModel.java:815)
	at java.awt.image.ColorModel.getRGB(ColorModel.java:860)
	at sun.awt.image.ImageRepresentation.convertToRGB(ImageRepresentation.java:278)
	at sun.awt.image.ImageRepresentation.setPixels(ImageRepresentation.java:494)
	at ava.awt.image.AreaAveragingScaleFilter.accumPixels(AreaAveragingScaleFilter.java:196)
	at java.awt.image.AreaAveragingScaleFilter.setPixels(AreaAveragingScaleFilter.java:235)
	at sun.awt.image.ImageDecoder.setPixels(ImageDecoder.java:108)
	at sun.awt.image.PNGImageDecoder.sendPixels(PNGImageDecoder.java:540)
	at sun.awt.image.PNGImageDecoder.produceImage(PNGImageDecoder.java:460)
	at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
	at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
	at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

The message appears before JOSM starts loading plugins.

It doesn't seem to have any effect on the operation of JOSM, and normally goes away when I start it again.

This has been going on for a while, like for the last 300-400 SVN revisions. Filing it because I couldn't find an existing bug.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by stoecker

Sometimes the loading of certain PNG images issues this. It is always a different image and in my opinion always an error. I already did a web search but found no real reason. I know this error since I know JOSM.

comment:2 Changed 3 years ago by stoecker

Ticket #4607 has been marked as a duplicate of this ticket.

comment:3 Changed 3 years ago by stoecker

  • Keywords javabug added
  • Resolution set to othersoftware
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.