geoffwilliams@home:~$

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.

Patch

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')

Affected version

InSync Version : 5.9.5-100920 from https://downloads.druva.com/insync/.

Upgrades

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.

Post comment

Markdown is allowed, HTML is not. All comments are moderated.