Macro-Deck icon indicating copy to clipboard operation
Macro-Deck copied to clipboard

Error on creating backups

Open bpmacedo opened this issue 11 months ago • 1 comments

I'm using the Macro Deck for the first time. Thx 4 all the great work!

Describe the bug I've installed v2.4.1 just for the current user, and I'm getting an error when I try to create a backup.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Click on 'Backups'
  3. Click on 'Create backup'
  4. See the error notification

Screenshots Image

Additional context The log file seems to have been created, but I don't know if it keeps all the necessary data.

Log file

...
23:37:29 [Macro Deck] [Trace] >> Clear
23:37:29 [Macro Deck] [Trace] >> Clear
23:40:18 [Macro Deck] [Info] >> Starting creation of backup: backup_25-05-05_23-40-18.zip
23:40:19 [Macro Deck] [Info] >> Backup successfully created: backup_25-05-05_23-40-18.zip
23:40:19 [Macro Deck] [Error] >> Backup creation failed: Não é possível chamar Invoke ou BeginInvoke em um controle antes da criação do identificador de janela.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at System.Windows.Forms.Control.Invoke(Action method)
   at SuchByte.MacroDeck.GUI.MainWindowContents.SettingsView.BackupManager_BackupSaved(Object sender, EventArgs e) in D:\a\Macro-Deck\Macro-Deck\MacroDeck\GUI\MainWindowViews\SettingsView.cs:line 260
   at SuchByte.MacroDeck.Backups.BackupManager.CreateBackup() in D:\a\Macro-Deck\Macro-Deck\MacroDeck\Backup\BackupManager.cs:line 221

bpmacedo avatar May 06 '25 02:05 bpmacedo

Also, same problem. 7:57:53 AM [Macro Deck] [Trace] >> Saved 2 profiles 7:58:19 AM [Macro Deck] [Info] >> Starting creation of backup: backup_25-08-08_07-58-19.zip 7:58:20 AM [Macro Deck] [Info] >> Backup successfully created: backup_25-08-08_07-58-19.zip 7:58:20 AM [Macro Deck] [Error] >> Backup creation failed: Invoke or BeginInvoke cannot be called on a control until the window handle has been created. at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at System.Windows.Forms.Control.Invoke(Action method) at SuchByte.MacroDeck.GUI.MainWindowContents.SettingsView.BackupManager_BackupSaved(Object sender, EventArgs e) in D:\a\Macro-Deck\Macro-Deck\MacroDeck\GUI\MainWindowViews\SettingsView.cs:line 260 at SuchByte.MacroDeck.Backups.BackupManager.CreateBackup() in D:\a\Macro-Deck\Macro-Deck\MacroDeck\Backup\BackupManager.cs:line 221

WarrenSensei avatar Aug 08 '25 12:08 WarrenSensei