Uncaught TypeError: Object [object DOMWindow] has no method 'Berkelium'

80 views
Skip to first unread message

Mala

unread,
Mar 28, 2013, 7:31:23 PM3/28/13
to berk...@googlegroups.com
Hi all!

I'm integrating Berkelium in a Mac OS X software. Everything works fine except javascript binding when reloading url:
*** onConsoleMessage Uncaught TypeError: Object [object DOMWindow] has no method 'Berkelium' from  line 1

Does anyone run into the same problem?

I'd be happy if someone has a solution. Sounds like a bug in Berkelium.

Thanks.

Ewen Cheslack-Postava

unread,
Mar 28, 2013, 11:50:13 PM3/28/13
to berk...@googlegroups.com
When the document loads, some javascript is supposed to execute which
sets up the window.Berkelium object:
https://github.com/sirikata/berkelium/blob/chromium11/src/WindowImpl.cpp#L210

That code is then used (through a couple of function calls) when
binding callback functions.

So something must be going wrong in one of those. Given that it's on
line 1 and the initial setup checks whether window.Berkelium exists,
I'd bet somehow something is trying to bind before the window is
finished loading. Perhaps you're calling bind() instead of
addBindOnStartLoading()?

-Ewen
> --
> You received this message because you are subscribed to the Google Groups
> "Berkelium" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to berkelium+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Mala

unread,
Mar 29, 2013, 9:48:51 AM3/29/13
to berk...@googlegroups.com
Thanks for feedback Ewen. :)

I was not able to make addBindOnStartLoading() work to me. I use bind() when loading stop (onLoadingStateChanged call with isLoading set to false). I would agree with you if binding was not working at all. Here the problem appears if I just reload the page. This seems very suspicious.

Unfortunately, I use the archive with compiled binaries for Mac (more than two years old: 31/10/10). I think the first step should to be up to date but compilation on OSX do not seems to work fine anymore. Compilation success, but binaries seems to be corrupted. :(

My building platform:
- MacPro3,1 (2x2,8 Quad-Core Intel Xeon / Memory: 6 GB) 
- Mac OS X 10.6.8.
- GCC 4.2.1
- Mac OS X SDK 10.5

After full build (chromium+berkelium), according to documentation, liblibberkelium.dylib seems to be corrupted (Glut Sample crash and I'm not able to integrate binaries in my project working with old release).
29/03/13 14:42:02 [0x0-0x14d14d].org.berkelium.GLUTSample[45764] dyld: Library not loaded: liblibberkelium.dylib

I would be pleased to produce more recent binary files for Mac community but I think I need help to understand what's going wrong.
Reply all
Reply to author
Forward
0 new messages