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

Raspberry Pi Fails on ofSystem (openFrameworks Core) error. #58

Closed
bakercp opened this issue Jun 19, 2014 · 8 comments
Closed

Raspberry Pi Fails on ofSystem (openFrameworks Core) error. #58

bakercp opened this issue Jun 19, 2014 · 8 comments
Assignees
Labels
Milestone

Comments

@bakercp
Copy link
Member

bakercp commented Jun 19, 2014

OfSketch compiles on RPI and serves static content but WebSocket is closed prematurely. This may be due to an older version of poco, but more investigation is required.

@bakercp bakercp added this to the v0.2.0 milestone Jun 19, 2014
@bakercp bakercp self-assigned this Jun 19, 2014
@bakercp bakercp changed the title Raspberry Pi Raspberry Pi fails. Jun 19, 2014
@bakercp
Copy link
Member Author

bakercp commented Jun 20, 2014

Will attempt to fix this with newer version of Poco.

@bakercp bakercp modified the milestones: v0.3.0, v0.2.0 Jul 11, 2014
@bakercp
Copy link
Member Author

bakercp commented Jul 16, 2014

This seems to be related to ofxHTTP. Funny thing is that the ofxHTTP and ofxJSONRPC examples run on RPI ...

@bakercp
Copy link
Member Author

bakercp commented Jul 24, 2014

So, basically the situation is that everything compiles, but something is broken in the websocket communication. Perhaps the WebSocket frames are too big or something -- I'm not sure yet. I did just get this exception on the raspberry pi side, which is strange ....

[ error ] ServerWebSocketRouteHandler::handleRequest: exception: std::bad_alloc
[ error ] App::onWebSocketErrorEvent: Stop: 50

So, maybe that is a clue ...

@bakercp bakercp changed the title Raspberry Pi fails. ofSketch does not run on Raspberry Pi. Jul 24, 2014
@bakercp bakercp changed the title ofSketch does not run on Raspberry Pi. Raspberry Pi Support Jul 24, 2014
@bakercp bakercp changed the title Raspberry Pi Support Raspberry Pi Fails on WebSocket error. Jul 24, 2014
@brannondorsey
Copy link
Member

I don't have access to an RPi at the moment, but can we confirm that the browsers on the Pi fully support websockets?

@bakercp
Copy link
Member Author

bakercp commented Jul 26, 2014

Yeah, it works under other circumstances. I'm going to start injecting
logging info tonight to see if I can get it to reveal its mysteries ...


http://christopherbaker.net

On Fri, Jul 25, 2014 at 11:53 AM, Brannon Dorsey notifications@github.com
wrote:

I don't have access to an RPi at the moment, but can we confirm that the
browsers on the Pi fully support websockets?


Reply to this email directly or view it on GitHub
#58 (comment).

@bakercp
Copy link
Member Author

bakercp commented Jul 28, 2014

I have seen this error quite a few times in Chrome:

Uncaught TypeError: Cannot read property 'isTemplate' of undefined

I'm assuming that is a piece of javascript ... that perhaps is not being downloaded from the server or something?

@bakercp
Copy link
Member Author

bakercp commented Jul 28, 2014

Alright I figured it out.

It all boils down to an error with ofSystem on Raspberry Pi. This is called during the connection routine when ofGetTargetPlatform() is called. This needs to be addressed in openFrameworks as an issue. For the moment I am going to try to create a hack so we can keep moving. You'll be happy to know as soon as I made my initial hack raspberry Pi worked splendidly (slow of course, but splendidly :)).

@bakercp bakercp changed the title Raspberry Pi Fails on WebSocket error. Raspberry Pi Fails on ofSystem (openFrameworks Core) error. Jul 28, 2014
@bakercp
Copy link
Member Author

bakercp commented Jul 28, 2014

This should be fixed as of 73cf43d. !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants