WebSocket in Web Worker bug?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

WebSocket in Web Worker bug?

Postby jep » Mon Apr 30, 2012 5:22 pm

I'm running into a problem and I would really appreciate it if someone with some debugging set up on chromium embedded could try to following code and see if they get an error when they close free up the embed library:

index.html:
Code: Select all
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Websocket Test</title>
  </head>
  <script type="text/javascript">
    var wsWorker = new Worker('worker.js');
  </script>
<body></body>
</html>


worker.js:
Code: Select all
var cxn = new WebSocket('ws://echo.websocket.org/');


I'm wondering if I'm running into a flavor of this Chromium bug:
http://code.google.com/p/chromium/issue ... ?id=108626

It's specifically about WebSockets in Workers, so it seems quite possible.

The long story is that I'm working with the Delphi Chromium Embedded project, and trying to figure out if the problem is at that layer or deeper. I'm going to report this there as well but it'd be really helpful if someone found this to be a problem even without the Delphi layer.

What happens to me is that, in my Delphi project, I get an access violation upon exiting the app. But where it happens makes it extremely hard to debug (it's after all the normal program code has finished and the cleanup is happening). Of course, if I comment out the WebSocket call, it doesn't happen.

Thanks a bunch.
jep
Techie
 
Posts: 24
Joined: Mon Apr 30, 2012 5:14 pm

Re: WebSocket in Web Worker bug?

Postby magreenblatt » Mon Apr 30, 2012 5:47 pm

Have you tried CEF version 1.1025.607? The WebKit fix linked from the Chromium issue appears to be included in that version.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: WebSocket in Web Worker bug?

Postby jep » Tue May 01, 2012 10:50 am

Thanks for the reply. Somehow I missed that it was fixed already.

Unfortunately, that's easier said than done. I think there must be a change in a calling convention or method signature between 1.963.439.0 and 1.1025.607. I get the old "Run-Time Check Failure #0" with the debug version of libcef. I'm working on trying to track down what it might be bombing out on.
jep
Techie
 
Posts: 24
Joined: Mon Apr 30, 2012 5:14 pm

Re: WebSocket in Web Worker bug?

Postby magreenblatt » Tue May 01, 2012 10:57 am

The CEF DLL is not a drop-in replacement. You will likely need to update your bindings.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: WebSocket in Web Worker bug?

Postby jep » Mon May 07, 2012 11:34 am

Well, the author of DCEF has updated his code to 1.1025.607.

Unfortunately, the problem still occurs. Any other suggestions?
jep
Techie
 
Posts: 24
Joined: Mon Apr 30, 2012 5:14 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 218 guests