Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on Reversion #306

Closed
Foggalong opened this issue Jan 26, 2017 · 6 comments
Closed

Crashes on Reversion #306

Foggalong opened this issue Jan 26, 2017 · 6 comments
Assignees

Comments

@Foggalong
Copy link
Contributor

Specifications

  • Hardcode-Tray version : 3.6.5
  • Distribution : Ubuntu 16.10
  • Gtk version : 3.20.9
  • Inkscape version : 0.91
  • Cairo version : 1.14.6
  • Sni-qt version: 0.2.7
  • Application name : Rambox
  • Application version : 0.5.2

Expected behavior and actual behavior

Expected: Revert changes made to Rambox
Actual: Program crashes with file not found error

Steps to reproduce the problem

  1. Install Rambox 0.5.0
  2. Run hardcode-tray to fix the icon
  3. Update Rambox from 0.5.0 to 0.5.2
  4. Try to revert the previous changes made
@Foggalong Foggalong changed the title Crashes on Crashes on Reversion Jan 26, 2017
@bilelmoussaoui
Copy link
Owner

bilelmoussaoui commented Jan 26, 2017

This is indeed not so good! But i can't really do anything about it, the tray icons are replaced on the asar file. Which stores some libraries used by electron applications too! once you revert an old asar package to a newer version of the same application it will normally crash as some good is missing. I can't detect the version number of any application out there, each distro out there has a different packaging system, people can install the application from the source code and so on...
The only thing i can think about, is instead of backing up the whole binary file, we backup only the modified icons. But again if the images locations changes on the newer update it won't work :P
@wa4557 What do you think about this issue?

@Foggalong
Copy link
Contributor Author

It sounds like there should be at least a check that the file exists before attempting to do anything with it though. And cool, I'll check out that issue :)

@bilelmoussaoui
Copy link
Owner

We already check if the file exists in the binary file 👍 let's hear what @wa4557 thinks about it and i will fix it as soon as possible! :D

@andia89
Copy link
Collaborator

andia89 commented Jan 27, 2017

I would remove the possibility to revert electron icons then (or any other apps wher we replace icons in the binary file). That's causing more problems than it solves, and we don't have to store this large asar files

@bilelmoussaoui
Copy link
Owner

Yeah :( in some applications those files are more than 100M ! I will try to backup the png file, test it with updating/reversing back after and see if it works correctly. If it does i will push it to master if not i will remove the backup from the binary applications

@bilelmoussaoui bilelmoussaoui self-assigned this Jan 29, 2017
@bilelmoussaoui bilelmoussaoui modified the milestone: v3.7 Jan 29, 2017
@bilelmoussaoui bilelmoussaoui modified the milestones: v3.7, v3.8 Mar 30, 2017
@bilelmoussaoui bilelmoussaoui modified the milestones: v3.8, v3.8.1 May 21, 2017
@bilelmoussaoui
Copy link
Owner

The master branch now just back up the png files 👍
screenshot from 2017-05-23 17-21-52
Tried it for every app out there and it works perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants