{"action":"created","issue":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/958","labels_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/958/labels{/name}","comments_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/958/comments","events_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/958/events","html_url":"https://github.com/cefsharp/CefSharp/issues/958","id":69533779,"number":958,"title":"CefSharp.BrowserSubprocess.exe crashes on callback with large data","user":{"login":"rstmm","id":12029804,"avatar_url":"https://avatars.githubusercontent.com/u/12029804?v=3","gravatar_id":"","url":"https://api.github.com/users/rstmm","html_url":"https://github.com/rstmm","followers_url":"https://api.github.com/users/rstmm/followers","following_url":"https://api.github.com/users/rstmm/following{/other_user}","gists_url":"https://api.github.com/users/rstmm/gists{/gist_id}","starred_url":"https://api.github.com/users/rstmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstmm/subscriptions","organizations_url":"https://api.github.com/users/rstmm/orgs","repos_url":"https://api.github.com/users/rstmm/repos","events_url":"https://api.github.com/users/rstmm/events{/privacy}","received_events_url":"https://api.github.com/users/rstmm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-20T08:18:23Z","updated_at":"2015-04-20T09:36:49Z","closed_at":null,"body":"Hi,\r\n\r\nWe are currently experiencing problems when loading data from a C# Application using a callback object:\r\n\r\n    m_xx = new ChromiumWebBrowser();\r\n    //[...]\r\n    m_xx.RegisterJsObject(\"callbackObj\", new DataAccess());\r\n\r\nFor simplification, assume that DataAccess has the method:\r\n\r\n    public String LoadLongData()\r\n    {\r\n        var longString = new string('*', 20592341); // normally we load objects from database and serialize them to JSON, but this doesn't matter.\r\n        return longString;\r\n    }\r\n\r\nNow doing the following call in JS:\r\n\r\n    callbackObj.LoadLongData();\r\n\r\nCrashes the subprocess without any message. When using a smaller return data set, this method works as expected. So this must be related to the size of returned data.\r\n\r\n\r\nThe only things i could find were in windows event viewer:\r\n\r\n----------- First this error: -------------\r\n\r\nAnwendung: CefSharp.BrowserSubprocess.exe\r\nFrameworkversion: v4.0.30319\r\nBeschreibung: Der Prozess wurde aufgrund eines Ausnahmefehlers beendet. (=~ Application was stopped due to an error)\r\nAusnahmeinformationen: System.ServiceModel.CommunicationException\r\nStapel:\r\n\r\nServer stack trace: \r\n   bei System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n   bei System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n   bei System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)\r\n   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)\r\n   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)\r\n   bei CefSharp.Internals.IBrowserProcess.CallMethod(Int64, System.String, System.Object[])\r\n   bei CefSharp.JavascriptMethodWrapper.Execute(System.Object[])\r\n   bei <Module>.CefSharp.JavascriptMethodHandler.Execute(CefSharp.JavascriptMethodHandler*, CefStringBase<CefStringTraitsUTF16>*, CefRefPtr<CefV8Value>*, std.vector<CefRefPtr<CefV8Value>,std::allocator<CefRefPtr<CefV8Value> > >*, CefRefPtr<CefV8Value>*, CefStringBase<CefStringTraitsUTF16>*)\r\n   bei <Module>.CefExecuteProcess(CefMainArgs*, CefRefPtr<CefApp>*, Void*)\r\n   bei CefSharp.CefAppWrapper.Run()\r\n   bei CefSharp.BrowserSubprocess.Program.Main(System.String[])\r\n\r\n\r\n---------- Followed by this error: --------\r\n\r\nName der fehlerhaften Anwendung: CefSharp.BrowserSubprocess.exe, Version: 37.0.0.0, Zeitstempel: 0x549256a5 \r\nName des fehlerhaften Moduls: KERNELBASE.dll, Version: 6.1.7601.18798, Zeitstempel: 0x5507b485\r\nAusnahmecode: 0xe0434352\r\nFehleroffset: 0x0000c42d\r\nID des fehlerhaften Prozesses: 0x2234\r\nStartzeit der fehlerhaften Anwendung: 0x01d07b3f8bc54f61\r\nPfad der fehlerhaften Anwendung: D:\\xxx\\trunk\\Implementation\\Source\\NativeWrappers\\ChromiumWrapper\\xxx\\bin\\x86\\Debug\\CefSharp.BrowserSubprocess.exe\r\nPfad des fehlerhaften Moduls: C:\\windows\\syswow64\\KERNELBASE.dll\r\nBerichtskennung: d30e8bc1-e732-11e4-bff1-5cc5d4533da5\r\n\r\nCould you please have a look at this, since we need this for a client project?\r\n\r\nThanks in advance!\r\n"},"comment":{"url":"https://api.github.com/repos/cefsharp/CefSharp/issues/comments/94408387","html_url":"https://github.com/cefsharp/CefSharp/issues/958#issuecomment-94408387","issue_url":"https://api.github.com/repos/cefsharp/CefSharp/issues/958","id":94408387,"user":{"login":"rstmm","id":12029804,"avatar_url":"https://avatars.githubusercontent.com/u/12029804?v=3","gravatar_id":"","url":"https://api.github.com/users/rstmm","html_url":"https://github.com/rstmm","followers_url":"https://api.github.com/users/rstmm/followers","following_url":"https://api.github.com/users/rstmm/following{/other_user}","gists_url":"https://api.github.com/users/rstmm/gists{/gist_id}","starred_url":"https://api.github.com/users/rstmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstmm/subscriptions","organizations_url":"https://api.github.com/users/rstmm/orgs","repos_url":"https://api.github.com/users/rstmm/repos","events_url":"https://api.github.com/users/rstmm/events{/privacy}","received_events_url":"https://api.github.com/users/rstmm/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T09:36:49Z","updated_at":"2015-04-20T09:36:49Z","body":"That's hard to predict... Our client is tracking sensors for experiments which could run for days. We reached 20 MB after ~22 hours of tracking. 100MB or even more could be possible. Maybe we need to also introduce compression, but we also need to raise that limit.\r\n\r\nWhat would speak against raising the limit to int.MaxValue, same as the others?"}}