Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#22255 closed defect (othersoftware)

Error on saving

Reported by: vetalexy@… Owned by: vetalexy@…
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report Cc: vetalexy@…

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-07-07 23:02:39 +0200 (Thu, 07 Jul 2022)
Revision:18513
Build-Date:2022-07-08 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18513 ru) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19042)
Memory Usage: 510 MB / 8156 MB (229 MB allocated, but free)
Java version: 11.0.15+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 2560×1440 (scaling 1.25×1.25) \Display1 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1251
System property sun.jnu.encoding: Cp1251
Locale info: ru_RU
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Dicedtea-web.bin.location=C:\Program Files\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop]
Dataset consistency test: No problems found

Last errors/warnings:
- 00000.392 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.394 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00001.588 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00001.936 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00007.103 W: java.nio.file.FileSystemException: D:\Temp\josm_exec_powershell_17484452212982208760.txt: Процесс не может получить доступ к файлу, так как этот файл занят другим процессом.
- 00007.104 W: Unable to request certificate of https://grca.nat.gov.tw
- 00035.981 E: Handled by bug report queue: java.lang.NullPointerException



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-1 (57) of JOSM
java.lang.NullPointerException
	at java.desktop/sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Win32ShellFolder2.java:611)
	at java.desktop/sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:335)
	at java.desktop/sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:333)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.desktop/sun.awt.shell.Win32ShellFolderManager2$ComInvoker$1.run(Win32ShellFolderManager2.java:586)
	at java.base/java.lang.Thread.run(Thread.java:829)

Attachments (0)

Change History (14)

comment:1 by taylor.smock, 3 years ago

Owner: changed from team to vetalexy@…
Status: newneedinfo

Can you please give us steps to reproduce? The stack trace is all code outside of our control.

I'm hoping this is not a Windows specific bug, since I do not have a Windows machine.

comment:2 by skyper, 3 years ago

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

in reply to:  1 comment:3 by skyper, 3 years ago

Replying to taylor.smock:

Can you please give us steps to reproduce? The stack trace is all code outside of our control.

The steps in #22387 are quite simple.

I'm hoping this is not a Windows specific bug, since I do not have a Windows machine.

Maybe, even OpenWebstart on Windows.

comment:4 by skyper, 3 years ago

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

comment:5 by skyper, 3 years ago

Cc: vetalexy@… added

#22393 includes a thread dump.

comment:6 by taylor.smock, 3 years ago

The thread dump isn't particularly helpful. But the code in Windows is

parentIShellFolder == Win32ShellFolderManager2.getNetwork().getIShellFolder()

@vetalexy: Can you try changing the Use native file choosers preference in wiki:Help/Preferences/Display (advanced preference use.native.file.dialog) and see if that helps?

Alternatively, it looks like you are running an out-of-date version of Windows (still supported, technically, but not the current version).

OS Build number: Windows 10 Pro 2009 (19042)

Looking at wikipedia:Windows_10_version_history#Channels, you are running 20H2 (19042). The current revision is 21H2 (19044). I borrowed someone else's Windows machine, and was unable to reproduce with 21H2 using OpenWebStart.

comment:7 by stoecker, 3 years ago

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

comment:8 by stoecker, 3 years ago

See also hints in #1964, #3190, #4381 how to fix similar issues.

comment:9 by anonymous, 3 years ago

Thank you! The solution helped me: changing the option "use.native.file.dialog = true"

comment:10 by stoecker, 3 years ago

Resolution: othersoftware
Status: needinfoclosed

in reply to:  8 comment:11 by taylor.smock, 3 years ago

Replying to stoecker:

See also hints in #1964, #3190, #4381 how to fix similar issues.

#1964: The Java bug is supposed to be fixed ( https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6544857 -- I also updated the link in that ticket)
comment:7:ticket:3190: I don't think we want to implement the suggested workaround. It is probably better to have Java fix it.
comment:2:ticket:4381: Indicates that wiping preferences may fix the problem. Unfortunately, it is generally a bad idea to ask users for their preference files since we store authentication information in them.

comment:12 by skyper, 3 years ago

Maybe the value of use.native.file.dialog is useful in bug reports.

comment:13 by taylor.smock, 3 years ago

Probably not. I'd rather try to do a try catch block if we can figure out the exact code that that causes the failure, and set use.native.file.dialog to true. But fixing the problem in upstream java would be preferable.

comment:14 by skyper, 3 years ago

I just thought about #22429 and similar reports where the setting might come into play, too.

Last edited 3 years ago by skyper (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain vetalexy@….
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.