Repository: syncthing/syncthing (language: go)

Issue:
Panic in failure reporting
```
[start] 2022/07/31 08:25:34 INFO: syncthing v1.20.3-dev.8.gec069743-tomasz86-v1.20.2 "Fermium Flea" (go1.18.3 windows-amd64) tomasz86@tomasz86 2022-06-07 07:12:59 UTC [noupgrade, stnoupgrade]
Panic at 2022-07-31T10:24:39+09:00
panic: assignment to entry in nil map

goroutine 30 [running]:
github.com/syncthing/syncthing/lib/model.(*deadlockDetector).watchInner(0xc00019cc00, {0x1a63b64, 0x4}, 0xc000fe3440)
	github.com/syncthing/syncthing/lib/model/util.go:73 +0x22c
github.com/syncthing/syncthing/lib/model.(*deadlockDetector).Watch.func1()
	github.com/syncthing/syncthing/lib/model/util.go:57 +0x65
created by github.com/syncthing/syncthing/lib/model.(*deadlockDetector).Watch
	github.com/syncthing/syncthing/lib/model/util.go:45 +0x115
goroutine 1 [chan receive, 118 minutes]:
```

https://forum.syncthing.net/t/panic-assignment-to-entry-in-nil-map/18791


Discussion / hints:

Fix patch:
diff --git a/gui/default/assets/lang/lang-en.json b/gui/default/assets/lang/lang-en.json
index 9703722a2aa..dcfc3ec6ca4 100644
--- a/gui/default/assets/lang/lang-en.json
+++ b/gui/default/assets/lang/lang-en.json
@@ -29,7 +29,6 @@
    "Anonymous Usage Reporting": "Anonymous Usage Reporting",
    "Anonymous usage report format has changed. Would you like to move to the new format?": "Anonymous usage report format has changed. Would you like to move to the new format?",
    "Apply": "Apply",
-   "Are you sure you want to continue?": "Are you sure you want to continue?",
    "Are you sure you want to override all remote changes?": "Are you sure you want to override all remote changes?",
    "Are you sure you want to permanently delete all these files?": "Are you sure you want to permanently delete all these files?",
    "Are you sure you want to remove device {%name%}?": "Are you sure you want to remove device {{name}}?",
@@ -51,7 +50,6 @@
    "Clean out after": "Clean out after",
    "Cleaning Versions": "Cleaning Versions",
    "Cleanup Interval": "Cleanup Interval",
-   "Click to see discovery failures": "Click to see discovery failures",
    "Click to see full identification string and QR code.": "Click to see full identification string and QR code.",
    "Close": "Close",
    "Command": "Command",
@@ -65,8 +63,6 @@
    "Continuously watching for changes is now available within Syncthing. This will detect changes on disk and issue a scan on only the modified paths. The benefits are that changes are propagated quicker and that less full scans are required.": "Continuously watching for changes is now available within Syncthing. This will detect changes on disk and issue a scan on only the modified paths. The benefits are that changes are propagated quicker and that less full scans are required.",
    "Copied from elsewhere": "Copied from elsewhere",
    "Copied from original": "Copied from original",
-   "Copyright © 2014-2019 the following Contributors:": "Copyright © 2014-2019 the following Contributors:",
-   "Creating ignore patterns, overwriting an existing file at {%path%}.": "Creating ignore patterns, overwriting an existing file at {{path}}.",
    "Currently Shared With Devices": "Currently Shared With Devices",
    "Custom Range": "Custom Range",
    "Danger!": "Danger!",
@@ -74,7 +70,6 @@
    "Default Configuration": "Default Configuration",
    "Default Device": "Default Device",
    "Default Folder": "Default Folder",
-   "Default Folder Path": "Default Folder Path",
    "Default Ignore Patterns": "Default Ignore Patterns",
    "Defaults": "Defaults",
    "Delete": "Delete",
@@ -241,7 +236,6 @@
    "Override Changes": "Override Changes",
    "Path": "Path",
    "Path to the folder on the local computer. Will be created if it does not exist. The tilde character (~) can be used as a shortcut for": "Path to the folder on the local computer. Will be created if it does not exist. The tilde character (~) can be used as a shortcut for",
-   "Path where new auto accepted folders will be created, as well as the default suggested path when adding new folders via the UI. Tilde character (~) expands to {%tilde%}.": "Path where new auto accepted folders will be created, as well as the default suggested path when adding new folders via the UI. Tilde character (~) expands to {{tilde}}.",
    "Path where versions should be stored (leave empty for the default .stversions directory in the shared folder).": "Path where versions should be stored (leave empty for the default .stversions directory in the shared folder).",
    "Pause": "Pause",
    "Pause All": "Pause All",
@@ -252,7 +246,6 @@
    "Periodic scanning at given interval and enabled watching for changes": "Periodic scanning at given interval and enabled watching for changes",
    "Periodic scanning at given interval and failed setting up watching for changes, retrying every 1m:": "Periodic scanning at given interval and failed setting up watching for changes, retrying every 1m:",
    "Permanently add it to the ignore list, suppressing further notifications.": "Permanently add it to the ignore list, suppressing further notifications.",
-   "Permissions": "Permissions",
    "Please consult the release notes before performing a major upgrade.": "Please consult the release notes before performing a major upgrade.",
    "Please set a GUI Authentication User and Password in the Settings dialog.": "Please set a GUI Authentication User and Password in the Settings dialog.",
    "Please wait": "Please wait",
@@ -299,14 +292,12 @@
    "Select additional folders to share with this device.": "Select additional folders to share with this device.",
    "Select latest version": "Select latest version",
    "Select oldest version": "Select oldest version",
-   "Select the folders to share with this device.": "Select the folders to share with this device.",
    "Send \u0026 Receive": "Send \u0026 Receive",
    "Send Only": "Send Only",
    "Set Ignores on Added Folder": "Set Ignores on Added Folder",
    "Settings": "Settings",
    "Share": "Share",
    "Share Folder": "Share Folder",
-   "Share Folders With Device": "Share Folders With Device",
    "Share this folder?": "Share this folder?",
    "Shared Folders": "Shared Folders",
    "Shared With": "Shared With",


Test patch: