{"action":"opened","issue":{"url":"https://api.github.com/repos/electron/electron/issues/11006","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/11006/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/11006/comments","events_url":"https://api.github.com/repos/electron/electron/issues/11006/events","html_url":"https://github.com/electron/electron/issues/11006","id":271056179,"number":11006,"title":"nativeImage hangs with large and corrupted jpeg","user":{"login":"styts","id":293400,"avatar_url":"https://avatars1.githubusercontent.com/u/293400?v=4","gravatar_id":"","url":"https://api.github.com/users/styts","html_url":"https://github.com/styts","followers_url":"https://api.github.com/users/styts/followers","following_url":"https://api.github.com/users/styts/following{/other_user}","gists_url":"https://api.github.com/users/styts/gists{/gist_id}","starred_url":"https://api.github.com/users/styts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/styts/subscriptions","organizations_url":"https://api.github.com/users/styts/orgs","repos_url":"https://api.github.com/users/styts/repos","events_url":"https://api.github.com/users/styts/events{/privacy}","received_events_url":"https://api.github.com/users/styts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-03T17:23:36Z","updated_at":"2017-11-03T17:23:36Z","closed_at":null,"author_association":"NONE","body":"A large (240Mb) and apparently corrupted jpeg image ([link](http://styts.com/babylon.jpg)) causes nativeimage to hang up. The Dev Tools can not be opened.\r\n\r\nSome programs like Preview or Photoshop can open it correctly, others crash.\r\n\r\n```js\r\nconst image = nativeImage.createFromPath('/path/to/babylon.jpg')\r\nconsole.log(image)\r\n```\r\n\r\n* Electron version: 1.7.9 (latest as of writing)\r\n* Operating system: macOS 10.12.6\r\n* Node.js 7.9.0\r\n* Chromium 58.0.3029.110\r\n\r\n### Expected behavior\r\n\r\nQuick start page with version info is rendered.\r\nImage is read or an exception is thrown.\r\n\r\n### Actual behavior\r\n\r\nQuick start page not rendered.\r\nCall to nativeImage hangs up. The Dev Tools can not be opened.\r\n\r\n### How to reproduce\r\n\r\n```bash\r\ngit clone https://github.com/styts/electron-quick-start -b native-image\r\ncd electron-quick-start\r\nwget http://styts.com/babylon.jpg\r\nmd5sum babylon.jpg\r\n2feca3be6e4a6b937e528782591465c6\r\nnpm install\r\nnpm start || electron .\r\n```\r\n<img width=\"801\" alt=\"screen shot 2017-11-03 at 18 17 40\" src=\"https://user-images.githubusercontent.com/293400/32387152-d952ede6-c0c3-11e7-8c19-7053b53c8a66.png\">\r\n"}}
{"actor":{"display_login":"styts"}}