Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Notification crashes Brave on Linux #14848

Closed
btlechowski opened this issue Jul 26, 2018 · 9 comments
Closed

Notification crashes Brave on Linux #14848

btlechowski opened this issue Jul 26, 2018 · 9 comments

Comments

@btlechowski
Copy link
Contributor

btlechowski commented Jul 26, 2018

Steps to Reproduce

  1. Go to https://www.bennish.net/web-notifications.html
  2. Click 'Show'
  3. Allow the notification

Actual result:
Crash

Expected result:
No crash

Reproduces how often:

always

Brave Version

Brave: 0.23.72 
V8: 6.8.275.24 
rev: c3b1cac002d807409d8438dc72688d9ae553cea5 
Muon: 8.0.2 
OS Release: 4.13.0-21-generic 
Update Channel: Release 
OS Architecture: x64 
OS Platform: Linux 
Node.js: 7.9.0 
Brave Sync: v1.4.2 
libchromiumcontent: 68.0.3440.75

Unable to reproduce on Windows 10 by @GeetaSarvadnya
Unable to reproduce on Mac by @LaurenWags

Reproducible on current live release:
No. Tested 0.23.39 on Ubuntu 17.10

cc @bsclifton @kjozwiak @srirambv

@btlechowski btlechowski changed the title Notifications crashes Brave Notifications crashes Brave on Linux Jul 26, 2018
@btlechowski btlechowski added cr68 and removed cr65 labels Jul 26, 2018
@btlechowski btlechowski changed the title Notifications crashes Brave on Linux Notification crashes Brave on Linux Jul 26, 2018
@LaurenWags
Copy link
Member

Reproduced on UbuntuVM.

@darkdh darkdh self-assigned this Jul 26, 2018
@testinnplayin
Copy link

Hi,
New to OpenSource. Thought I'd take a peek at the Brave project and saw this issue.

I tested this on Ubuntu 18.04 and it did not crash my browser. Here are the specs for my browser:

Brave: 0.22.810 
V8: 6.7.288.43 
rev: 8f30eeba0c2d6cccf1920a360b4774f820adbc58 
Muon: 7.0.6 
OS Release: 4.15.0-29-generic 
Update Channel: Release 
OS Architecture: x64 
OS Platform: Linux 
Node.js: 7.9.0 
Brave Sync: v1.4.2 
libchromiumcontent: 67.0.3396.71

screenshot from 2018-07-26 20-34-22

I have a slightly older version of Brave but I hope this is still helpful. Please let me know if I can be of any help.

@riastradh-brave
Copy link
Contributor

WFM

Name Version
Brave 0.23.39
V8 6.7.288.46
rev 3ee14b0
Muon 7.1.6
OS Release 4.13.0-46-generic
Update Channel Release
OS Architecture x64
OS Platform Linux
Node.js 7.9.0
Tor 0.3.3.8 (git-99f9816efa08ab83)
Brave Sync v1.4.2
libchromiumcontent 67.0.3396.103

@bsclifton
Copy link
Member

bsclifton commented Jul 26, 2018

Hi there @testinnplayin 😄 Thanks for checking

This appears to be specific to Chromium 68, which we're in the process of updating to. This also explains why @riastradh-brave doesn't see it either.

For reference, here's my about:brave:

Brave: 0.23.72
V8: 6.8.275.24
rev: c3b1cac
Muon: 8.0.2
OS Release: 17.7.0
Update Channel: Release
OS Architecture: x64
OS Platform: macOS
Node.js: 7.9.0
Brave Sync: v1.4.2
libchromiumcontent: 68.0.3440.75

@darkdh
Copy link
Member

darkdh commented Jul 26, 2018

this is C68 upgrade only problem

@darkdh
Copy link
Member

darkdh commented Jul 26, 2018

Crash reason:  SIGILL                                                                                                                                                              
Crash address: 0x38990dd                                                                                                                                                           
Process uptime: not available                                                                                                                                                      
                                                                                                                                                                                   
Thread 0 (crashed)                                                                                                                                                                 
0  brave!brightray::LibnotifyNotification::Initialize() [libnotify_notification.cc : 71 + 0x0]
1  brave!brightray::NotificationPresenter::Create() [notification_presenter_linux.cc : 14 + 0x5]
2  brave!brightray::BrowserClient::GetNotificationPresenter() [browser_client.cc : 50 + 0x5]
3  brave!brave::(anonymous namespace)::OnWebNotificationAllowed(brightray::BrowserClient*, SkBitmap const&, content::PlatformNotificationData const&, brightray::NotificationDelegate*, bool) [platform_notification_service_impl.cc : 44 + 0x5]
4  brave!brave::BravePermissionManager::OnPermissionResponse(int, GURL const&, base::RepeatingCallback<void (std::__1::vector<blink::mojom::PermissionStatus, std::__1::allocator<blink::mojom::PermissionStatus> > const&)> const&, std::__1::vector<content::PermissionType, std::__1::allocator<content::PermissionType> > const&, std::__1::vector<blink::mojom::PermissionStatus, std::__1::allocator<blink::mojom::PermissionStatus> > const&) [callback.h : 125 + 0x5]  

it crashes after dlsym setup dlsym(library_, "notify_is_initted")); for libnotify.so.4
and access the method it load
libnotify_loader_.notify_is_initted()

@testinnplayin
Copy link

testinnplayin commented Jul 26, 2018

Ok got the beta version. It does indeed crash on Ubuntu 18.04 as well

Brave: 0.23.72 
V8: 6.8.275.24 
Muon: 8.0.2 
OS Release: 4.15.0-29-generic 
Update Channel:  
OS Architecture: x64 
OS Platform: Linux 
Node.js: 7.9.0 
Brave Sync: v1.4.2 
libchromiumcontent: 68.0.3440.75

Sorry for not realizing it was part of a specific Chromium release 😊

@darkdh
Copy link
Member

darkdh commented Jul 27, 2018

@btlechowski
Copy link
Contributor Author

Thanks @darkdh. Great work!

Verified on Ubuntu 17.10 x64

  • 0.23.73 50bdb6d
  • Muon 8.0.3
  • libchromiumcontent 68.0.3440.75

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.