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

Slack crashes on upload #58273

Closed
memberbetty opened this issue Mar 25, 2019 · 30 comments
Closed

Slack crashes on upload #58273

memberbetty opened this issue Mar 25, 2019 · 30 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@memberbetty
Copy link
Contributor

memberbetty commented Mar 25, 2019

Issue description

Slack crashes when trying to open the window that one can use to upload a file.

/run/current-system/sw/bin/slack
(electron) 'app.makeSingleInstance(cb)' is deprecated. Use 'app.requestSingleInstanceLock() and app.on('second-instance', cb)' instead.
Creating Slack Application
Cannot upload crash dump: cannot exec /usr/bin/wget
Failed to get crash dump id.
Report Id:
Segmentation fault

Steps to reproduce

Press the '+'-button and select 'Your computer' in a chat.

Technical details

This happens with the master version of Slack that was updated a few days ago.

slack[14978]: segfault at 0 ip 00007f553a42a9fd sp 00007ffd5424ea18 error 6 in libc-2.27.so[7f553a2fa000+13d000]

cc: @dtzWill (author), @srhb (person who merged)

@srhb
Copy link
Contributor

srhb commented Mar 25, 2019

I cannot seem to reproduce this, but possibly that's because of some other impurity that's present. I'll keep trying.

@memberbetty
Copy link
Contributor Author

My host operating system is still 18.09, so I referred to this master version as:
environment.systemPackages = [checkout_of_master.slack]

Perhaps that helps?

@dtzWill
Copy link
Member

dtzWill commented Mar 25, 2019 via email

@srhb
Copy link
Contributor

srhb commented Mar 25, 2019

GTK impurity sounds like a likely suspect indeed.

@samueldr
Copy link
Member

I lost the ability to reproduce #54278, but from a cursory look at strace -fo slack.strace result/bin/slack from master, I'm pretty sure it would be it.

@wil3
Copy link

wil3 commented Apr 14, 2020

I am having the same problem. I was finally able to isolate the issue. It occurs for me if the directory contains a gif.

To reproduce,

  • Download gif to directory, e.g. fast parrot
  • Click paper clip -> Add file from your computer
  • Navigate to directories without gif --> ok
  • Navigate to directory with gif --> slack crashes

I have slack for ubuntu 18.04 e0514fa-s@1586890343

@jakewc
Copy link

jakewc commented May 10, 2020

Same problem as the above here - only seems to happen for directories containing gifs.

@stale
Copy link

stale bot commented Nov 7, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 7, 2020
@ryangalamb
Copy link

Uninstalling and reinstalling slack fixed this problem for me (nix-env --uninstall slack; nix-env -iA nixpkgs.slack).

It looks like slack was looking for some things in the wrong place:

Gtk:ERROR:../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /run/current-system/sw/share/icons/Papirus-Dark/16x16/actions/image-missing.svg: Unable to load image-loading module: /nix/store/mm9ck1cv7zygpylzzfgfc2laphi8kxpl-librsvg-2.48.8/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/mm9ck1cv7zygpylzzfgfc2laphi8kxpl-librsvg-2.48.8/lib/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)
Bail out! Gtk:ERROR:../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /run/current-system/sw/share/icons/Papirus-Dark/16x16/actions/image-missing.svg: Unable to load image-loading module: /nix/store/mm9ck1cv7zygpylzzfgfc2laphi8kxpl-librsvg-2.48.8/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/mm9ck1cv7zygpylzzfgfc2laphi8kxpl-librsvg-2.48.8/lib/librsvg-2.so.2) (gdk-pixbuf-error-quark, 5)

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 7, 2020
@stale
Copy link

stale bot commented Jun 6, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 6, 2021
@ahmad-elkomey
Copy link

I suffered from the same issue. It happened to me twice and each time I tackled it differently.

Note: I'm using GNU/Linux Ubuntu 18.04, slack installed by snap.

First time, it was because of navigating to a directory with a gif file, as mentioned by the folks here. If this is the case, you can solve this by editing ~/.config/Slack/Preferences. You will find there the path containing the gif file. Change the path to anywhere not containing the git file. Save the file, restart slack. It should work just fine now.

Second time, it wasn't because of a gif file. It just happened that I opened slack one day and the upload file window will cause slack to crash. I stopped slack, removed the cache directory: ~/snap/slack/common/.cache, and launched slack again. Everything is back to normal.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 24, 2021
@medienlampe
Copy link

I stopped slack, removed the cache directory: ~/snap/slack/common/.cache, and launched slack again. Everything is back to normal.

I encountered this issue today, too.
Also with Slack installed as Snap (v4.19.2) on an Ubuntu 20.04 LTS.

@ahmad-elkomey: Deleting the cache directory did the trick for me. Thanks for sharing!

@juuuuuu
Copy link

juuuuuu commented Aug 25, 2021

@ahmad-elkomey: Deleting the cache directory did the trick for me. Thanks for sharing!

It did the trick for me too! 👍

@7hibault
Copy link

I got the same issue and deleting the cache did the trick for me as well !

Snap 4.19.2 64-bit
Ubuntu 20.04.3 LTS

@MariaKokshaikina
Copy link

I faced this issue all of a sudden today too. Thanks, @ahmad-elkomey. Your solution with deleting the cache directory worked for me too

@luizsgpetri2
Copy link

Deleting the cache files did the trick as described on #58273 (comment)

@IsmiKin
Copy link

IsmiKin commented Sep 1, 2021

Deleting the cache as @ahmad-elkomey said didn't work for me, however, doing it through the app it worked, thank you for the tip! 😄

Help -> Troubleshooting -> Clear Cache and Restart

Ubuntu 18.04.5 LTS

@sobi3ch
Copy link

sobi3ch commented Sep 2, 2021

Same problem here

Snap 4.19.2 64-bit
Ubuntu 20.04.3 LTS

..and same solution works like a charm

I stopped slack, removed the cache directory: ~/snap/slack/common/.cache, and launched slack again. Everything is back to normal.

Thanks @ahmad-elkomey

@stkrelax
Copy link

stkrelax commented Sep 3, 2021

I suffered from the same issue. It happened to me twice and each time I tackled it differently.

Note: I'm using GNU/Linux Ubuntu 18.04, slack installed by snap.

First time, it was because of navigating to a directory with a gif file, as mentioned by the folks here. If this is the case, you can solve this by editing ~/.config/Slack/Preferences. You will find there the path containing the gif file. Change the path to anywhere not containing the git file. Save the file, restart slack. It should work just fine now.

Second time, it wasn't because of a gif file. It just happened that I opened slack one day and the upload file window will cause slack to crash. I stopped slack, removed the cache directory: ~/snap/slack/common/.cache, and launched slack again. Everything is back to normal.

@ahmad-elkomey
TRIPPLE Thanks for the cache clean idea !! works like charm

@ganesan-prenetics
Copy link

Had the same problem. Deleting the cache directory didn't work.
This solved it for me.
Attach file (chat with yourself ) --> View all your files --> Upload a file --> change directory (where there are no gifs) and upload something.
Next time 'Attach File' works normal

@serhii-zasulskyi
Copy link

Thanks @ahmad-elkomey , cache cleaning solved the issue

@bledi1985
Copy link

for me too

@zdhamasha
Copy link

same issue here

@joshuafishman
Copy link

joshuafishman commented Sep 20, 2021

Cache clearing doesn't work for me, but uninstall/reinstall through snap does.

@Aubreymcfato
Copy link

Aubreymcfato commented Sep 23, 2021

Cache clearing doesn't work for me, neither uninstall/reinstall through snap does. :(
Do I have to manually remove the ~/snap/slack/common/.cache folder?

EDIT: removing manually the folder, it worked.

@stale
Copy link

stale bot commented Apr 19, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 19, 2022
@SebTM
Copy link
Contributor

SebTM commented Jan 25, 2023

Hey, thanks for the report as this is stale for longer time and I confirmed its working on stable and unstable.

@SebTM SebTM closed this as completed Jan 25, 2023
@Systho
Copy link

Systho commented Feb 7, 2024

I still had the issue today.
clearing the cache from the menu did not work, deleting the cache manually with slack closed worked.
I'm on 4.36.140

@SebTM
Copy link
Contributor

SebTM commented Feb 7, 2024

Can't reproduce on latest unstable with 138, where did you got 140? Is it beta? If I try to download latest release from slack I get 138-0.1 still

@Systho
Copy link

Systho commented Feb 9, 2024

I might be on beta indeed. To be honest I'm not sure since I installed a while back and just keep the auto updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests