IRC Log Viewer » #firebreath » 2011-05-12

IRC Nick Time (GMT-7) Message
mastropinguino 02:05 Hello
mastropinguino 02:05 I'm developing a opengl based plugin obiviously with firebreath ;) .. In window it works very well but in mac i can't find windowHandler of browser plugin frame
I've search in many places about firebreath + opengl but theresn't nothing about firebreath + opengl on mac
FireBreathBot 03:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-56 issue created by noantz
FireBreathBot 03:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-57 issue created by tomek
FireBreathBot 03:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue created by tomek
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by tomek "I have just realized that it could be somehow related to FIREBREATH-58"
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue comment edited by tomek "I have just realized that it could be somehow related to FIREBREATH-57"
FireBreathBot 09:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by richard "Is there anything unusual about your environment? I see you're on 10.6.7... do you have anything ..."
taxilian 09:05 FireBreathBot, tell mastropinguino search logs.firebreath.org for opengl and mac and you'll probably find things. The gist is that it's a pain in the neck and you'll need to use CoreAnimation. Search for that as well
FireBreathBot 09:05 taxilian: yeah, sure, whatever
taxilian 09:05 FireBreathBot, tell mastropinguino: search logs.firebreath.org for opengl and mac and you'll probably find things. The gist is that it's a pain in the neck and you'll need to use CoreAnimation. Search for that as well
FireBreathBot 09:05 taxilian: I'll pass that on when mastropinguino is around.
taxilian 09:05 blasted upstart bot
FireBreathBot 09:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by tomek "Not really, I tested it on 2 MacBooks both running Snow Leopard, but otherwise pretty independent..."
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by richard "what version of xcode?"
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by tomek "I tried with 4.0.2 and 3.2.4, exactly the same result.
FireBreathBot 10:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by tomek "I have just tested it on rather clean Mac Book Air, OS X 10.6.7, Firefox 3.6.13, without anything..."
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by richard "This makes me wonder if there is something unusual about your compiler, but I don't know what the..."
tomekz 10:05 taxilian: Did you compile/test FBTestPlugin on OS X 10.6 or earlier?
taxilian 10:05 both
10.6 and 10.5
tomekz 10:05 damn it, I don't get it
FireBreathBot 10:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-59 issue created by richard
taxilian 10:05 I don't either
I am making some changes today that affect that code; perhaps that will help
there is an edge case crash that you could somehow be hitting every time, I guess
FireBreathBot 10:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by tomek "Initially, I would have thought so too, but I have tried compiling it on 2 different computers, b..."
FireBreathBot 10:05 Commit 2efb7d6 on master by Jarom Loveridge: "FIREBREATH-59: Minor modifications to the WIX project to imp..." http://goo.gl/O9emP
Commit 6d9c15f on master by Eric Herrmann: "FIREBREATH-53: Fix memory leak in Safari 64bit" http://goo.gl/pQ3ZM
Commit 9c53764 on master by Eric Herrmann: "Added static initial values for m_allowDynamicAttributes, m_..." http://goo.gl/97SV4
Commit f0c635e on master by Eric Herrmann: "Added NDEBUG to RelWithDebInfo" http://goo.gl/3azUT
Commit aaa4e77 on master by Eric Herrmann: "FIREBREATH-54: Added logging of who initiated setReady(). Fi..." http://goo.gl/79pCM
taxilian 10:05 tomekz: try the latest from master; I just pushed the changes I mentioned. see if it makes a difference
tomekz 10:05 I'm currently compiling master cloned before your changes
I'll try that first and then I'll try again with the latest one
BTW I always tried target Debug
I'll also try Release
taxilian 10:05 Debug should be fine; that's what I normally test
tomekz 10:05 I thought so too...
the master I cloned before your changes - the same problem
tomekz 11:05 yes!!!, the latest version works
FireBreathBot 11:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue commented by tomek "It works correctly with the latest from master!"
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-57 issue commented by tomek "It works correctly with the latest from master!"
taxilian 11:05 tomekz: seriously? that's bizarre
FireBreathBot 11:05 Commit 2efb7d6 on firebreath-1.5 by Jarom Loveridge: "FIREBREATH-59: Minor modifications to the WIX project to imp..." http://goo.gl/O9emP
Commit 6d9c15f on firebreath-1.5 by Eric Herrmann: "FIREBREATH-53: Fix memory leak in Safari 64bit" http://goo.gl/pQ3ZM
Commit 9c53764 on firebreath-1.5 by Eric Herrmann: "Added static initial values for m_allowDynamicAttributes, m_..." http://goo.gl/97SV4
Commit f0c635e on firebreath-1.5 by Eric Herrmann: "Added NDEBUG to RelWithDebInfo" http://goo.gl/3azUT
Commit aaa4e77 on firebreath-1.5 by Eric Herrmann: "FIREBREATH-54: Added logging of who initiated setReady(). Fi..." http://goo.gl/79pCM
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-53 issue resolved by richard "Thanks for the patch!"
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-54 issue resolved by richard "Thanks for the patch!"
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-57 issue resolved by richard "Believed to be fixed by FIREBREATH-54"
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-58 issue resolved by richard "Believed to be fixed by FIREBREATH-54"
FireBreathBot 12:05 Commit df0c4ea on master by Richard Bateman: "FIREBREATH-55 Added locks to attach/detach evt handler code" http://goo.gl/oT9EG
Commit df0c4ea on firebreath-1.5 by Richard Bateman: "FIREBREATH-55 Added locks to attach/detach evt handler code" http://goo.gl/oT9EG
Commit 9ccd550 on firebreath-1.5 by Richard Bateman: "Added status handlers and error event to UploadQueue" http://goo.gl/RvrlG
Commit 9ccd550 on master by Richard Bateman: "Added status handlers and error event to UploadQueue" http://goo.gl/RvrlG
taxilian 13:05 jshanab_wcw: you 'round?
jshanab_wcw 13:05 Yeah, (but swamped) %$%# "standard" h264 that every camera implements differently
taxilian 13:05 lol. could you submit a quick jira ticket and attach your date check code? I lost it :-(
jshanab_wcw 13:05 k
how do i start the jira ticket?
taxilian 13:05 log in and do "create issue" in the top right
(jira.firebreath.org)
jshanab_wcw 13:05 Ah, found it
taxilian 13:05 or press "c"
FireBreathBot 13:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-60 issue created by jshanab
taxilian 13:05 thanks!
linearray 14:05 so the docs say not to use shared_ptr anymore
I assume the use in Factory.cpp is ok though?
taxilian 14:05 linearray: doesn't mean don't use a shared_ptr, it means don't use the method shared_ptr()
linearray 14:05 ah ok
taxilian 14:05 if it's a type, not a method, you're doing it correctly
I apologize; that was my ignorance that caused that issue
why do people keep asking if FireBreath will ever support iOS? I'm trying to decide if that means that they dont' know anything about FireBreath (or even what a plugin is) or if it means they don't know anything about iOS....
linearray 14:05 hehe
stuartmorgan 14:05 Probably the latter
iOS is so trendy that all kinds of people who have no clue what they are doing are trying to write iOS software
taxilian 14:05 yeah, I have noticed that… I just don't understand how anyone who knows *anything* about iOS and knows what a browser plugin is could think that Apple would allow them on iOS...
my faith in humanity is probably just a tad high still
strange, after running an open source project for over a year and a half...
linearray 14:05 :)
stuartmorgan 14:05 I don't understand how people think they can write iOS apps without ever learning the basic memory management semantics of Cocoa
But stackoverflow routinely demonstrates that they do ;)
taxilian 14:05 lol. ironically enough, I am studying exactly that at the moment :-P
figured everyone else is doing it, maybe I should finally learn objective c…. =]
sabotaged|wk 14:05 oh this is fun. firing events to the browser i guess causes it to pump messages at which time i get some firebreath cross process messages, which is causing some neat re-entrant execution
taxilian 14:05 that's always neat
sabotaged|wk 15:05 weird, i don't think it had that behavior before on 1.4
taxilian 15:05 mac? windows?
sabotaged|wk 15:05 windows
taxilian 15:05 hmm. browser?
sabotaged|wk 15:05 ff3
FireBreathBot 15:05 Commit fe91841 on firebreath-1.5 by Richard Bateman: "Fixed bug accidently introduced by previous fix in version d..." http://goo.gl/Q2jOZ
Commit fe91841 on master by Richard Bateman: "Fixed bug accidently introduced by previous fix in version d..." http://goo.gl/Q2jOZ
taxilian 15:05 what kind of reentrant calls?
sabotaged|wk 15:05 well i fire an event to the browser, and after javascript handles it, but i think before it comes out of FireEvent, i get one of those firebreath async cross thread calls
taxilian 15:05 yeah; that has always been the case. FireEvent uses async calls
sabotaged|wk 15:05 well the async call i get is unrelated to FireEvent. it's weird because i would have noticed this before, it breaks part of my code since some of my methods aren't re-entrant safe
maybe something else changed in my code, and this was always happening
taxilian 15:05 what is it related to, then?
sabotaged|wk 15:05 just a call from one of my other threads
taxilian 15:05 huh. well, the async calls could happen whenever… the only guarantee is that it will be on the main thread
jshanab_wcw: so while I was looking for something completely unrelated today I stumbled across the "if (file1 IS_NEWER_THAN file2)" command in cmake....
which I previously had searched for for hours and found no mention of....
so I don't actually need your C script (which is actually good news, but…)
I sure appreciate it, though =]
FireBreathBot 15:05 Commit 84c1162 on firebreath-1.5 by Richard Bateman: "Fixed configure_template to no longer regen files that havne..." http://goo.gl/xrIvw
Commit a15752e on firebreath-1.4 by Richard Bateman: "Fixed configure_template to no longer regen files that havne..." http://goo.gl/WL7Cb
Commit 84c1162 on master by Richard Bateman: "Fixed configure_template to no longer regen files that havne..." http://goo.gl/xrIvw
taxilian 15:05 so good news! as of that fix rerunning the prep script shouldn't cause everything to rebuild anymore
.. and just tested it on windows, didn't
huzzah!
FireBreathBot 15:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-60 issue resolved by richard "So it turns out I can do this in cmake using if ... IS_NEWER_THAN. Who knew? Thanks a bunch, tho..."
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-60 issue closed by richard
jshanab_wcw 15:05 Cool!
jshanab_wcw 15:05 Cmake is sweet. Do you know if On linux when you use cmake, does it create makefiles that have the configure step?
Rudd-x 15:05 what up mentlegen
I have begun to trial FireBreath
and I'm done with the compilation
the plugin works and all.
now, how do I get from here to actually drawing, say, a circle using GTK+ and Cairo on my browser?
taxilian 15:05 jshanab_wcw: sure does
Rudd-x: are you on linux?
Rudd-x 15:05 taxiliian: ye sindeed
on lunix
I mean, linux :-D
I am on an ubuntu 11.04 box using chrome
which supports NPAPI plugins
so what I want to do now is get, I donno, like a gtkwindow and start drawing on it.
ideas?
(i have fairly good experience with gtk+)
what is the sanctioned way / api to draw stuff on NP plugins?
taxilian 16:05 basically you handle the AttachedEvent, which will give you the PluginWindowX11 object
!findfile PluginWindowX11
FireBreathBot 16:05 Found 2 matching file(s) in the master branch. First 2 are:
src/PluginAuto/X11/PluginWindowX11.cpp http://goo.gl/Dvv6E
src/PluginAuto/X11/PluginWindowX11.h http://goo.gl/6fh64
taxilian 16:05 use that to get your GtkDrawable and such
http://colonelpanic.net/2010/11/firebreath-tips-drawing-on-windows/ may help you understand the general way that FireBreath deals with drawing
Rudd-x 16:05 ok
so I just cast the plugin window I get on that event to a PluginWindowX11?
wait, the parameter does not have a name! bool TestPlugin::onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow *)
how do I use it in the body of the function???
taxilian 16:05 uh, add a name? =]
stuartmorgan: when a plugin crashes in Chrome, is there anywhere it stores the crash dump?
like firefox 4 does?
stuartmorgan 16:05 taxilian: I think only on the Mac
IIRC on Windows and Linux the report is removed from disk after upload
This is assuming you have reporting on; if you don't it should just fall through to whatever OS crash handling would normally happen
taxilian 16:05 thats
that's okay; I only need it on the mac =]
ahh. I think we found it =]
Library/Logs/CrashReporter
Rudd-x: if you're only doing it on linux you can change the type in the event handler declaration from PluginWindow to PluginWindowX11
if you don't care about other platforms
Rudd-x 16:05 it will be crossplatform at some point so I'll fix it later
how do I call, say, a javascript fnction from the body of that C++ function?
iow, do I have access to the JS host in the same page where I am loading the plugin?
sabotaged|wk 16:05 Rudd-x: check out http://www.firebreath.org/display/documentation/Interacting+with+Javascript
Rudd-x 16:05 sabotaged|wk HELL YEAH thanks!
sabotaged|wk: that page only explains how to interact from JS to the plugin, not the other way around
sabotaged|wk 16:05 well you can fire events to javascript
http://www.firebreath.org/display/documentation/Firing+Events+from+JSAPI
Rudd-x 16:05 ok
that is useful but does not tell me how to call js code from the plugin
it only does events
kylehuff 16:05 I wouldn't know either way - I am no authority on the matter, but I would be greatly surprised if you could call a JS methods on the page from inside the plugin without the use of events or first passing the method to be called into the plugin as a callback.
but I've been very wrong before.
FireBreathBot 16:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-61 issue created by richard
Commit 57aa347 on master by Eric Herrmann: "FIREBREATH-61: New take on async CrossThreadCall dependencie..." http://goo.gl/YnjaG
Commit 57aa347 on firebreath-1.5 by Eric Herrmann: "FIREBREATH-61: New take on async CrossThreadCall dependencie..." http://goo.gl/YnjaG
linearray 16:05 oh my... how can I get source files from subdirs to show up in subdirs in my xcode project?
FireBreathBot 16:05 Commit fafe9af on firebreath-1.5 by Eric Herrmann: "housecleaning" http://goo.gl/j1yaR
Commit fafe9af on master by Eric Herrmann: "housecleaning" http://goo.gl/j1yaR
taxilian 16:05 kylehuff: yeah, you're wrong this time too :-P you can call into Javascript from anywhere
!wiki getDOMWindow
FireBreathBot 16:05 7 results found. Note: Results limited to 8
"class FB ActiveX ActiveXBrowserHost getDOMWindow": http://goo.gl/HCvrl
"class FB Npapi NpapiBrowserHost getDOMWindow": http://goo.gl/EyJ49
"class FB BrowserHost getDOMWindow": http://goo.gl/5Q6L8
"Tips and Tricks": http://goo.gl/sOA8M
"Plugin Lifecycle": http://goo.gl/nVhKS
"Features": http://goo.gl/xXK1q
"Version History": http://goo.gl/lgWpo
taxilian 16:05 !wiki getDOMDocument
FireBreathBot 16:05 6 results found. Note: Results limited to 8
"class FB ActiveX ActiveXBrowserHost getDOMDocument": http://goo.gl/VnOUr
"class FB BrowserHost getDOMDocument": http://goo.gl/RNAbn
"class FB Npapi NpapiBrowserHost getDOMDocument": http://goo.gl/7DIAy
"Plugin Lifecycle": http://goo.gl/nVhKS
"Features": http://goo.gl/xXK1q
"Version History": http://goo.gl/lgWpo
taxilian 16:05 linearray: update your CMakeLists.txt file to include them
Rudd-x: so to interact with javascript just get a reference to the Document or Window objects and go from there
and feel free to update the docs so the next person can find it
that would be very helpful
linearray 16:05 what I did is add the subdirs to the file(...)
e.g. tinyxml/tiny[^.]*.cpp
taxilian 16:05 should work just fine. (the file(GLOB you mean, right?)
linearray 16:05 yes
this does put all the files in the project
but not in subdirs
so I have a large list of files below "Source files"
taxilian 16:05 oh, I see what you mean
that's because those aren't subdirs in the project
they are source groups =]
linearray 16:05 aha!
taxilian 16:05 kylehuff: didn't notice you'd dropped out; you can call into JS without using events and such; use host->getDOMDocument and host->getDOMWindow
FireBreathBot 16:05 Commit 0c8cbc5 on master by Richard Bateman: "Lowered verbosity of configure_template script" http://goo.gl/1PEqP
kylehuff 16:05 ah, yeah, netsplit.. anyway, cool - at least I was right that I would be surprised... =c )
taxilian 16:05 lol. way to be ;-)
Rudd-x 16:05 error: invalid conversion from ‘FB::PluginWindow*’ to ‘FB::PluginWindowX11*’
this is on:
FB::PluginWindowX11 * x11win = (FB::PluginWindowX11 *) win;
FireBreathBot 16:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-61 issue resolved by richard "fixed"
taxilian 17:05 Rudd-x: did you #include "X11/PluginWindowX11.h"?
FireBreathBot 17:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-55 issue resolved by richard "Believed to be fixed; added mutexes around vector access"
FireBreathBot 17:05 Commit 1f1cf55 on master by Richard Bateman: "FIREBREATH-49 changed CreateURLMoniker to CreateURLMonikerEx..." http://goo.gl/OfWtk
Commit 0c8cbc5 on firebreath-1.5 by Richard Bateman: "Lowered verbosity of configure_template script" http://goo.gl/1PEqP
Commit 1f1cf55 on firebreath-1.5 by Richard Bateman: "FIREBREATH-49 changed CreateURLMoniker to CreateURLMonikerEx..." http://goo.gl/OfWtk
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-49 issue resolved by richard "Thanks for letting us know! Fixed."
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-49 issue closed by richard
Commit 9651fbd on master by NoAntzWk: "Bug fix, error processing returned value by httpInfo->QueryI..." http://goo.gl/CQRuW
Commit 9651fbd on firebreath-1.5 by NoAntzWk: "Bug fix, error processing returned value by httpInfo->QueryI..." http://goo.gl/CQRuW
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-56 issue resolved by richard "Path applied; thanks!"
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-56 issue closed by richard
Rudd-x 17:05 wow, thanks taxilian that worked
FireBreathBot 18:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-62 issue created by igor
FireBreathBot 18:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-63 issue created by richard
Rudd-x 18:05 ok gents I have successfully managed to use firebreath to draw something to my browser plugin
I have a question now, a tougher question
FireBreathBot 18:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-63 issue updated by richard
Rudd-x 18:05 I have worked with the projects/ and build/projects directories, but now I want to move ONLY MY FILES, CLEANLY, outside the git clone of firebreath and into its separate directory
pointers to doing that?
taxilian 18:05 Rudd-x: http://colonelpanic.net/2010/11/firebreath-tips-working-with-source-control/
FireBreathBot 19:05 Commit 57e5505 on master by Richard Bateman: "FIREBREATH-63: Added suspend and resume to ActiveXBrowserHos..." http://goo.gl/zqt7r
Commit 57e5505 on firebreath-1.5 by Richard Bateman: "FIREBREATH-63: Added suspend and resume to ActiveXBrowserHos..." http://goo.gl/zqt7r
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-63 issue resolved by richard "what a pain"
taxilian 19:05 Rudd-x: headed home from work. I'll be online later (when I get home)
taxilian 19:05 today has been a good day for FireBreath… lots of issues resolved and closed
FireBreathBot 21:05 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-62 issue updated by richard
FireBreathBot 21:05 Commit 2a132f8 on master by Richard Bateman: "FIREBREATH-62 Updated async method firing to use js delegate..." http://goo.gl/Ktz0C
taxilian 21:05 anyone around that uses 1.5 that can help me test some changes?
'
FireBreathBot 22:05 Commit 732a72f on master by Richard Bateman: "FIREBREATH-62 fixed async arguments" http://goo.gl/zOyT6