IRC Log Viewer » #firebreath » 2012-01-19

IRC Nick Time (GMT-7) Message
AndreyOsipov 00:01 Hello
I'm trying to embed external class libraries to the plugin library, is it possible? Can someone give me a hint how I can make it?
mkoch 04:01 hi
mkoch 08:01 does anyone know how to fix log4cplus' startup bug? ("ERROR No appenders could be found for logger (FireBreath)" and "ERROR Please initialize the log4cplus system properly.")
reichi 08:01 i guess it's more of a firebreath issue, isn't it?
mkoch 08:01 i think so. at least I've done everything according to the tutorial on FB's wiki and it still complains
reichi 08:01 you may want to use jira.firebreath.org
ssdc 08:01 I have a pretty interesting issue and am curious if anyone might know the trick.
My plugin launches another process of a C# application - used to communicate to devices plugged into a serial port - basically provides a web GUI to communicate with these devices, etc.
Once I launch the process - I use named pipes for IPC
works great on the most part
one thing I'm noticing though ... the named pipes (the plugin is the "server") don't get created when it's launched from a standard (non-admin) user account.
The call to CreateNamedPipe() returns with a ERROR_ACCESS_DENIED error
I'm assuming this is caused by some security detail I'm missing - so I'm curious if anybody else in the forum has seen similar issues and if/how they fixed them?
mkoch 09:01 btw I joined the firebreath mail list on google lists and instead of sending a mail to the list address, I used the "new post" button on the google list's page and sent my question. or at least I hope I did because I haven't receive anything so far, not even my own question.
can anyone confirm if my mail from yesterday was sent at all? :)
(the subject was stg like CALayer animation oslt)
mkoch 09:01 is it possible to test a CoreGraphics or QuickDraw drawing model if the default pick of my system/browser is CoreAnimation?
ch 09:01 mkoch: you can always turn off CA in projectDef.cmake and rebuild
(this is what I do)
mkoch 09:01 ch: then it falls back to CG?
ch 09:01 yes
if you only do 2D, you probably don't even need CA
mkoch 09:01 is it possible to do it without a rebuild? forcing Safari for example to do one or other?
*use i mean
ch 09:01 I don't know
mkoch 09:01 okay, thx
ch 09:01 you could probably step through FB and look where it negotiates the drawing model
src/PluginAuto/Mac/PluginWindowMac.mm
maybe you can override the functions in there or temporarily change them
mkoch 09:01 yes but then it's still easier to recompile with disabled CA. for my tests, the best would have been to run 2 Safari windows with the same plugin loaded and use CA in one and CG in the other
taxilian 10:01 FireBreathBot: tell mkoch I haven't seen any posts from you on the google group
FireBreathBot 10:01 taxilian: I'll pass that on when mkoch is around.
taxilian 10:01 !FireBreathBot: tell andreyosipov search the website for libraries; it's on there.
mkoch 10:01 well, it's party solved already anyway :) I keep pushing it and if still can't find the solution, then I ask again in the standard way, by sending an email
FireBreathBot 10:01 mkoch: 17:02Z <taxilian> tell mkoch I haven't seen any posts from you on the google group
taxilian 10:01 FireBreathBot: tell mkoch look at the logging page on the website for info on configuring the logger; also, you usually disappear a few hours before I get online, just FYI
FireBreathBot 10:01 taxilian: I'll pass that on when mkoch is around.
mkoch 10:01 taxilian: I did everything according to the logging page
FireBreathBot 10:01 mkoch: 17:05Z <taxilian> tell mkoch look at the logging page on the website for info on configuring the logger; also, you usually disappear a few hours before I get online, just FYI
taxilian 10:01 oh, you are still here. I guess I'm blind :-P
sorry, I wasn't even reading the current stuff, I was looking in the history :-P
mkoch 10:01 np :)
taxilian 10:01 you did add_firebreath_library(log4cplus) in your pluginconfig.cmake file?
and you added the config functions in your Factory.cpp?
mkoch 10:01 yes, and logging works actually
(except of the loglevel setting, that doesn't change anything)
taxilian 10:01 what version of the framework are you using? loglevel was fixed fairly recently
mkoch 10:01 I use the HEAD branch and used to update quite frequently tho maybe I haven't done it yet this week
taxilian 10:01 hmm. no changes this week, so you should be good
mkoch 10:01 but are those error messages "normal"?
taxilian 10:01 I've never seen that message
mkoch 10:01 then the problem should be on my side.. I will make a clean checkout and try it because I need to check some other things too, I will come back to you if the problem exists also on that one
taxilian 10:01 pastebin me your Factory.cpp
mkoch 10:01 sec
taxilian 10:01 (on the phone; will look at it in a few minutes)
mkoch 10:01 here: http://pastebin.com/Rw8mmhM5
I must go now sorry, I will come back later and we can discuss
bye
taxilian 10:01 FireBreathBot: My best guess is that your plugin doesn't have rights to write to C:\ and that's probably causing your error; see http://www.firebreath.org/display/documentation/Tips+and+Tricks#TipsandTricks-Findingasafeplaceforfile-basedlogging
FireBreathBot: tell mkoch My best guess is that your plugin doesn't have rights to write to C:\ and that's probably causing your error; see http://www.firebreath.org/display/documentation/Tips+and+Tricks#TipsandTricks-Findingasafeplaceforfile-basedlogging
FireBreathBot 10:01 taxilian: I'll pass that on when mkoch is around.
taxilian 10:01 ssdc: You just need to create the named pipe with different permissions; it's possible to create a named pipe so that it can be used even in low integrity mode
I don't have code I can share doing it, but I have done it before
ssdc 10:01 Yeah - I was playing around with a bunch of different ways to do it - most didn't make a difference
just got it working with the solution posted here: http://www.eggheadcafe.com/microsoft/Win32-Kernel/29687960/vista-ipc-using-named-pipes--erroraccessdenied.aspx
taxilian 10:01 cool; glad you figured it out
jpteasdale 12:01 Suppose I have a page where my plugin is downloaded, I have found (on non IE browsers) that I can use navigator.plugins.refresh(false) to detect when the plugin is installed without reloading, but I can't find an IE equivalent. Do you guys know of one?
taxilian 12:01 !findfile fb_installer.js
FireBreathBot 12:01 Found 1 matching file(s) in the master branch. First 1 are:
Installer/js/fb_installer.js http://goo.gl/3Cmr4
taxilian 12:01 jpteasdale: take a look at that
jteasdale 14:01 That was exactly what I was looking for, thanks
ch 16:01 taxilian: I don't know exactly which log4cplus messages mkoch is refering to, but I see some generic 'log4cplus not set up properly' (or something like that, can't look right now) messages when the plugin loads. but logging to console and file works fine.
taxilian 16:01 interesting
maybe those are messages that occur earlier in the lifecycle? dunno
ch 16:01 I'd think so
this is on OS X btw.