Skip to content

Where is the error spew? #2

Closed
cmoski opened this Issue Jul 6, 2010 · 6 comments

4 participants

@cmoski
cmoski commented Jul 6, 2010

Ok, so I've got everything compiled. I had to import IOKit headers from the general OS X framework (you load the ones from the OS and not the simulator, correct?) directory, and it seems to be signing correctly using ldid2.

However, I am trying to figure out where Frash is logging it's errors, if any. I've tried visiting the same flash files used in the demo, and it results in a brief frame buffer flash, followed by a black colored screen... On some loading attempts 'Loading' is shown at the top of Safari, sometimes it's not.

Any further troubleshooting tips you might have? The flash library from froyo is located in ~/Frash.

@feisley
feisley commented Jul 6, 2010

cmoski,
I had copied the IOKit headers from the simulator. Not sure if that could be causing an issue for you.

@kangaroo
kangaroo commented Jul 6, 2010

Check the console in Xcode organizer or write a small program to parrot com.apple.syslog_relay

@WoozleWrangler

you can install syslogd using cydia. then 'tail -f /var/log/syslogd'

I found that I needed to make a small change to PluginFlashView.m in the -initWithArguments: method. All my plugin instances were being created with a (0,0,0,0) frame, so I added a few lines to set the frame according to the width and height args...

here's a replacement for the if statement that begins on line 96:
if(w && h) {
int w_ = [w intValue];
int h_ = [h intValue];
NSLog(@"Frash plugin: width: %d height: %d", w_, h_);
CGRect pluginFrame = self.frame;
pluginFrame.size.width = w_;
pluginFrame.size.height = h_;
self.frame = pluginFrame;
NSLog(@"Frash plugin frame: %@", NSStringFromCGRect(self.frame));

        if(w_ < 30 || h_ < 30) {
            on = YES;
            return self;
        }
    }
@cmoski
cmoski commented Jul 6, 2010

Woozle: I made changes that were very similar as well, thanks for the tip about syslogd! All frash's errors are now belong to me.. Now to start playing around with the codebase a bit :)

I suppose it might be helpful to put a useful compile script up as well..

@cmoski
cmoski commented Jul 6, 2010

Seems to work. Issue closed! Thanks all.

@feisley
feisley commented Jul 6, 2010

Make sure you all check out the changes kangaroo has made as well: http://github.com/kangaroo/frash

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.