Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the error spew? #2

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

Where is the error spew? #2

cmoski opened this issue Jul 6, 2010 · 6 comments

Comments

@cmoski
Copy link

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
Copy link

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
Copy link

kangaroo commented Jul 6, 2010

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

@WoozleWrangler
Copy link

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
Copy link
Author

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
Copy link
Author

cmoski commented Jul 6, 2010

Seems to work. Issue closed! Thanks all.

@feisley
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants