{"action":"created","issue":{"url":"https://api.github.com/repos/atom/electron/issues/2294","labels_url":"https://api.github.com/repos/atom/electron/issues/2294/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/2294/comments","events_url":"https://api.github.com/repos/atom/electron/issues/2294/events","html_url":"https://github.com/atom/electron/issues/2294","id":96420398,"number":2294,"title":"Crash when clicking notification (GNOME3)","user":{"login":"markbaas","id":1153495,"avatar_url":"https://avatars.githubusercontent.com/u/1153495?v=3","gravatar_id":"","url":"https://api.github.com/users/markbaas","html_url":"https://github.com/markbaas","followers_url":"https://api.github.com/users/markbaas/followers","following_url":"https://api.github.com/users/markbaas/following{/other_user}","gists_url":"https://api.github.com/users/markbaas/gists{/gist_id}","starred_url":"https://api.github.com/users/markbaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbaas/subscriptions","organizations_url":"https://api.github.com/users/markbaas/orgs","repos_url":"https://api.github.com/users/markbaas/repos","events_url":"https://api.github.com/users/markbaas/events{/privacy}","received_events_url":"https://api.github.com/users/markbaas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/electron/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-21T21:27:52Z","updated_at":"2015-10-20T13:49:13Z","closed_at":"2015-10-20T03:12:43Z","body":"When receiving a notification electron crashes with:\r\n```\r\n(electron:8526): libnotify-CRITICAL **: notify_notification_close: assertion 'NOTIFY_IS_NOTIFICATION (notification)' failed\r\n[8526:0721/170311:ERROR:browser_main_loop.cc(219)] GLib-GObject: invalid uninstantiatable type '(null)' in cast to 'GObject'\r\n[8526:0721/170311:ERROR:browser_main_loop.cc(219)] GLib-GObject: g_object_get_data: assertion 'G_IS_OBJECT (object)' failed\r\n```\r\n\r\nI'm not sure about other environments, but it happens while using GNOME3."},"comment":{"url":"https://api.github.com/repos/atom/electron/issues/comments/149573578","html_url":"https://github.com/atom/electron/issues/2294#issuecomment-149573578","issue_url":"https://api.github.com/repos/atom/electron/issues/2294","id":149573578,"user":{"login":"markbaas","id":1153495,"avatar_url":"https://avatars.githubusercontent.com/u/1153495?v=3","gravatar_id":"","url":"https://api.github.com/users/markbaas","html_url":"https://github.com/markbaas","followers_url":"https://api.github.com/users/markbaas/followers","following_url":"https://api.github.com/users/markbaas/following{/other_user}","gists_url":"https://api.github.com/users/markbaas/gists{/gist_id}","starred_url":"https://api.github.com/users/markbaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbaas/subscriptions","organizations_url":"https://api.github.com/users/markbaas/orgs","repos_url":"https://api.github.com/users/markbaas/repos","events_url":"https://api.github.com/users/markbaas/events{/privacy}","received_events_url":"https://api.github.com/users/markbaas/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T13:49:13Z","updated_at":"2015-10-20T13:49:13Z","body":"I am no longer running GNOME 3, but on KDE with Fedora 23, I still have the same issue. Odd you can't reproduce it.\r\n\r\n```\r\nvar app = require('app');  // Module to control application life.\r\nvar BrowserWindow = require('browser-window');  // Module to create native browser window.\r\nvar proc = require('child_process');\r\n\r\n// Initial vars\r\nurl = 'https://web.whatsapp.com';\r\ndomain = url.replace(/https?:\\/\\/(\\w+\\.)?(\\w+)\\.(\\w+)\\/?.*/, \"$2.$3\");\r\n\r\n\r\n// Report crashes to our server.\r\nrequire('crash-reporter').start();\r\n\r\n// Keep a global reference of the window object, if you don't, the window will\r\n// be closed automatically when the JavaScript object is GCed.\r\nvar mainWindow = null;\r\n\r\n// Quit when all windows are closed.\r\napp.on('window-all-closed', function() {\r\n  // On OS X it is common for applications and their menu bar\r\n  // to stay active until the user quits explicitly with Cmd + Q\r\n  if (process.platform != 'darwin') {\r\n    app.quit();\r\n  }\r\n});\r\n\r\n// This method will be called when Electron has finished\r\n// initialization and is ready to create browser windows.\r\napp.on('ready', function() {\r\n  // Create the browser window.\r\n  mainWindow = new BrowserWindow({width: 1024, height: 768,\r\n    \"node-integration\": false,\r\n    \"icon\": \"/home/mark/.local/share/webapps/WhatsApp/WhatsApp.png\",\r\n    \"auto-hide-menu-bar\": true});\r\n\r\n  // and load the index.html of the app.\r\n  // mainWindow.loadUrl('file://' + __dirname + '/index.html');\r\n  mainWindow.loadUrl(url, {'userAgent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36'});\r\n\r\n  // Emitted when the window is closed.\r\n  mainWindow.on('closed', function() {\r\n    // Dereference the window object, usually you would store windows\r\n    // in an array if your app supports multi windows, this is the time\r\n    // when you should delete the corresponding element.\r\n    mainWindow = null;\r\n  });\r\n\r\n  mainWindow.webContents.on('new-window', function(event, url, frameName, disposition) {\r\n    outDomain = url.replace(/https?:\\/\\/(\\w+\\.)?(\\w+)\\.(\\w+)\\/?.*/, \"$2.$3\");\r\n    if (domain !== outDomain) {\r\n      proc.exec(\"xdg-open \" + url);\r\n      event.preventDefault();\r\n    }\r\n\r\n  });\r\n\r\n  mainWindow.webContents.on('context-menu', function(event) {\r\n    alert('haha')\r\n  })\r\n});\r\n```\r\n\r\n```\r\n{\r\n  \"name\": \"WhatsApp\",\r\n  \"version\": \"0.1.0\",\r\n  \"main\": \"main.js\",\r\n  \"devDependencies\": {\r\n    \"electron-prebuilt\": \"\"\r\n  },\r\n  \"dependencies\": {\r\n  }\r\n}\r\n```\r\n\r\n\r\n\r\n"}}