Fix Druva backup crash on Linux with Nvidia
If your running Druva InSync on a Linux box with Nvidia hardware, you might experience a crash every time you try to load the app.
This manifests as the app starting and immediately exiting. The cause for this is incompatibility between Electron GPU acceleration and the Nvidia driver. Since this is a very simple GUI we can just disable GPU acceleration.
Applying this patch disables GPU acceleration in Electron which lets the app start:
--- /opt/Druva/inSync/electron/resources/app/main.js.orig 2023-02-15 12:45:50.185991969 +1100 +++ /opt/Druva/inSync/electron/resources/app/main.js 2023-02-15 12:59:29.757252038 +1100 @@ -1,6 +1,8 @@ const electron = require('electron') // Module to control application life. const app = electron.app; +app.commandLine.appendSwitch('disable-gpu'); +app.commandLine.appendSwitch('no-sandbox'); const Menu = electron.Menu; const os = require('os')
InSync Version : 5.9.5-100920 from https://downloads.druva.com/insync/.
App started crashing again after update? …Must not be fixed upstream yet. In this case try reapplying the patch. You may need to make the changes by hand if the patch no longer applies.