torsten-rupp / bar

Backup ARchiver
1 stars 1 forks source link

barcontrol 25: Java Nullpointer error when closing GUI on Windows x64 #15

Open ChrisTG742 opened 2 hours ago

ChrisTG742 commented 2 hours ago

Just got the following error when closing the GUI: grafik

Here's the complete stacktrace as text:

org.eclipse.swt.widgets.Widget.sendSelectionEvent(Unknown Source) org.eclipse.swt.widgets.TabFolder.wmNotifyChild(Unknown Source) org.eclipse.swt.widgets.Control.wmNotify(Unknown Source) org.eclipse.swt.widgets.Composite.wmNotify(Unknown Source) org.eclipse.swt.widgets.Control.WM_NOTIFY(Unknown Source) org.eclipse.swt.widgets.Control.windowProc(Unknown Source) org.eclipse.swt.widgets.Canvas.windowProc(Unknown Source) org.eclipse.swt.widgets.Decorations.windowProc(Unknown Source) org.eclipse.swt.widgets.Shell.windowProc(Unknown Source) org.eclipse.swt.widgets.Display.windowProc(Unknown Source) org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.CallWindowProc(Unknown Source) org.eclipse.swt.widgets.TabFolder.callWindowProc(Unknown Source) org.eclipse.swt.widgets.Widget.wmLButtonDown(Unknown Source) org.eclipse.swt.widgets.Control.WM_LBUTTONDOWN(Unknown Source) org.eclipse.swt.widgets.Composite.WM_LBUTTONDOWN(Unknown Source) org.eclipse.swt.widgets.Control.windowProc(Unknown Source) org.eclipse.swt.widgets.Display.windowProc(Unknown Source) org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) org.eclipse.swt.internal.win32.OS.DispatchMessage(Unknown Source) org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) BARControl.run(BARControl.java:5051) BARControl.<init>(BARControl.java:7694) BARControl.main(BARControl.java:7753)

Note: Some INDEX work was running at the moment. BAR seemed to be busy upgrading an imported index-db from an earlier version:

2024-10-26 20:38:06> INDEX: 58.8%, estimated rest time 0h:00min:00s

BTW, the "estimated rest time" is always displayed as 0h:00min:00s. Another bug?

ChrisTG742 commented 2 hours ago

After that crash I'm no longer able the start the GUI again. It closes instantly again with following output in barcontrol.log:

Date/Time: Sat Oct 26 20:43:29 CEST 2024 Version: 25 (55fc7b777e12ee15d3851512b40f1630a7d1981f) Protocol version: 8.0 Java version: 11.0.18 Error: 18446743677527091818 ValueMap.getLong(StringParser.java:180) ValueMap.getLong(StringParser.java:206) TabRestore$UpdateStorageTreeTableThread$6.handle(TabRestore.java:2234) ReadThread.run(BARServer.java:954) Caused by: java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) java.base/java.lang.Long.parseLong(Long.java:692) java.base/java.lang.Long.parseLong(Long.java:817) ValueMap.getLong(StringParser.java:169) ValueMap.getLong(StringParser.java:206) TabRestore$UpdateStorageTreeTableThread$6.handle(TabRestore.java:2234) ReadThread.run(BARServer.java:954)

ChrisTG742 commented 2 hours ago

Even worse: After restarting barserver, all backups in the database are marked as incomplete and purged. Luckily I was fast enough to stop BAR again before it actually could physically delete my backups on the strorage:

2024-10-26 20:51:14> Started BAR 25 server on 'xxxxx' with 4 worker threads 2024-10-26 20:51:14> INDEX: Opened index database 'sqlite3:/var/lib/bar/index.db' (version 8) 2024-10-26 20:51:14> INDEX: Started initial clean-up index database 2024-10-26 20:51:14> INDEX: Start clean-up duplicate meta data 2024-10-26 20:51:14> INDEX: Done clean-up duplicate meta data 2024-10-26 20:51:14> INDEX: Start clean-up incomplete updates 2024-10-26 20:51:14> INDEX: Done clean-up incomplete updates 2024-10-26 20:51:14> INDEX: Start clean-up incomplete created archives 2024-10-26 20:51:14> INDEX: Purged incomplete storage #19: '/mnt/backup/2020-09-03/userdata-F-000.bar' 2024-10-26 20:51:14> INDEX: Purged incomplete storage #35: '/mnt/backup/2020-09-03/userdata-F-001.bar' 2024-10-26 20:51:14> INDEX: Purged incomplete storage #51: '/mnt/backup/2020-09-03/userdata-F-002.bar' 2024-10-26 20:51:14> INDEX: Purged incomplete storage #67: '/mnt/backup/2020-09-03/userdata-F-003.bar' 2024-10-26 20:51:14> INDEX: Purged incomplete storage #83: '/mnt/backup/2020-09-03/userdata-F-004.bar' 2024-10-26 20:51:15> INDEX: Purged incomplete storage #99: '/mnt/backup/2020-09-03/userdata-F-005.bar' ... This looks like some serious problems. I think I will not start v25 again until it is clear what's happing here.

ChrisTG742 commented 1 hour ago

Okay, I was brave enough to re-run barserver (with chmod -w and chattr +i on all backup files) and after these kind of entries in bar.log the GUI now runs again, but all listed backups are gone now.

2024-10-26 21:23:18> INDEX: Removed storage #19 from index: /mnt/backup/2020-09-03/userdata-F-000.bar, created at Thu 03 Sep 2020 08:23:41 PM CEST 2024-10-26 21:23:20> INDEX: Removed storage #35 from index: /mnt/backup/2020-09-03/userdata-F-001.bar, created at Thu 03 Sep 2020 08:30:22 PM CEST 2024-10-26 21:23:22> INDEX: Removed storage #51 from index: /mnt/backup/2020-09-03/userdata-F-002.bar, created at Thu 03 Sep 2020 08:34:55 PM CEST 2024-10-26 21:23:23> INDEX: Removed storage #67 from index: /mnt/backup/2020-09-03/userdata-F-003.bar, created at Thu 03 Sep 2020 08:39:29 PM CEST 2024-10-26 21:23:25> INDEX: Removed storage #83 from index: /mnt/backup/2020-09-03/userdata-F-004.bar, created at Thu 03 Sep 2020 08:44:19 PM CEST 2024-10-26 21:23:26> INDEX: Removed storage #99 from index: /mnt/backup/2020-09-03/userdata-F-005.bar, created at Thu 03 Sep 2020 08:48:58 PM CEST ...

Also, the automatic re-indexing is not triggered for some reason.