Comments (7)
Firefox is giving me pretty much the same problem
(<unknown>:10293): Gdk-CRITICAL **: IA__gdk_gc_new: assertion `drawable !=
NULL' failed
(<unknown>:10293): Gdk-CRITICAL **: IA__gdk_gc_set_rgb_fg_color: assertion
`GDK_IS_GC (gc)' failed
(<unknown>:10293): Gdk-CRITICAL **: IA__gdk_draw_rectangle: assertion
`GDK_IS_DRAWABLE (drawable)' failed
(<unknown>:10293): Gdk-CRITICAL **: IA__gdk_gc_set_rgb_fg_color: assertion
`GDK_IS_GC (gc)' failed
(<unknown>:10293): Gdk-CRITICAL **: IA__gdk_gc_set_values: assertion `GDK_IS_GC
(gc)' failed
(<unknown>:10293): Gdk-CRITICAL **: IA__gdk_draw_rectangle: assertion
`GDK_IS_DRAWABLE (drawable)' failed
(<unknown>:10293): Gdk-CRITICAL **: IA__gdk_draw_layout: assertion
`GDK_IS_DRAWABLE (drawable)' failed
(<unknown>:10293): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
(<unknown>:10293): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed
Original comment by [email protected]
on 20 Sep 2011 at 8:27
from npapi-sdk.
I got the problem narrowed down I dont know the solution but the problem is
happening on this line at least from what I can tell
GdkDrawable* gdkWindow = GDK_DRAWABLE(gdk_window_foreign_new(nativeWinId));
gdk_window_foreign_new seems to be returning null
Original comment by [email protected]
on 20 Sep 2011 at 9:14
from npapi-sdk.
Same behavios here with Mozilla Firefox 6.0.2, however Google Chrome and
Chromium works well.
Google Chrome version: 14.0.835.186 (Official Build 101821)
Chromium version: 14.0.803.0 (Developer Build 90483) Ubuntu 11.04
Original comment by [email protected]
on 4 Oct 2011 at 10:52
from npapi-sdk.
My version is
Chromium version: 12.0.742.112 (90304) Ubuntu 11.04
Original comment by [email protected]
on 4 Oct 2011 at 11:24
from npapi-sdk.
This patch mostly fixes it. The issue was that the Drawable could be either a
Pixmap or a Window. Newer browsers do out-of-process stuff and pass a Pixmap,
but Firefox <4 in in-process plugin mode just passes in the Window.
This works for me in Firefox and WebKitGtk. Unfortunately, this doesn't work
for me in Chrome for some reason. It renders, but most of the plugin ends up
being transparent. I poked at it a bit Chrome-side but haven't figured out
what's wrong.
(There is also another issue with QtWebKit, but it probably deserves its own
bug. The plugin doesn't link to libgdk-x11-2.0.so.0, so QtWebKit can't load it.
Once that's there, QtWebKit only calls gtk_init for Flash and nspluginwrapper.
If you have one of those installed, it all works. If not, gtk_init never gets
called. Not sure whose bug that should be considered.)
Original comment by [email protected]
on 11 Oct 2011 at 4:52
Attachments:
from npapi-sdk.
Thank you so much for spending your time fixing this it has had me going
bonkers for quite a while. At the moment im not so worried about the chrome
side.
Ill schedule some time in tomorrow and let you know the results. Once again
thank you this is a big help.
Original comment by [email protected]
on 11 Oct 2011 at 5:58
from npapi-sdk.
Finally got around to it 5 am on a saturday lol. It works perfectly in firefox
and chromium is the same as you explained chrome is its mostly transparent but
shows the useragent. Thank you!!
Original comment by [email protected]
on 15 Oct 2011 at 9:28
from npapi-sdk.
Related Issues (20)
- Need a tutorial or sample code to develop NPAPI Plugin for Safari5.1 from scratch HOT 1
- add a pkgconfig template HOT 6
- Add a simple autotools buildsystem HOT 9
- rev5 breaks API compatibility for plugins HOT 12
- Please add NPAPI_VERSION_REVISION to provide true API version number HOT 2
- add support for NPNVdocumentOrigin HOT 2
- NP_GetPluginVersion has incorrect const-ness HOT 1
- NP_VERSION_MINOR must be increased HOT 1
- Using npapi sdk in browser code. NP_* functions HOT 5
- Const correctness of some functions' arguments HOT 2
- [patch] Can ndata be const void *? Is it used anywhere? HOT 1
- NP_* function declarations are declared with calling convention incompatible with NP_*Func types HOT 3
- Code review request HOT 2
- add support for Asynchronous Drawing Models (Bitmap and Windows Accelerated) HOT 7
- Fix a calling convention of NPN_* function pointers HOT 11
- Patch for /trunk/samples/mac-basic/Info.plist HOT 1
- Under MinGW bool and uintptr_t are unknown type names HOT 3
- OpenGL.h include in npapi.h on mac is problematic for some users HOT 4
- Plugin compiles but plugin error when loaded
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npapi-sdk.