- Electron version: 1.2.2
- Operating system: Linux

This is a problem only in linux. It works in OSX.

``` javascript
win.hide()
win.capturePage(function(img){
 // never called
})
```

shell/browser/api/electron_api_web_contents.cc
Emit("render-view-deleted", render_view_host->GetProcess()->GetID());
  if (ontents()->GetRenderViewHost() == render_view_host) {
    
    
    
    
    Emit("current-render-view-deleted",
         render_view_host->GetProcess()->GetID());
  }
}
void WebContents::RenderProcessGone(base::TerminationStatus status) {
  auto weak_this = GetWeakPtr();
  Emit("crashed", status == base::TERMINATION_STATUS_PROCESS_WAS_KILLED);
  
  if (!weak_this || !ontents())
    return;
  v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
  v8::HandleScope handle_scope(isolate);
  gin_helper::Dictionary details = gin_helper::Dictionary::CreateEmpty(isolate);
  details.Set("reason", status);
  details.Set("exitCode", ontents()->GetCrashedErrorCode());
  Emit("render-process-gone", details);
}
void WebContents::PluginCrashed(const base::FilePath& plugin_path,