openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

pointCloudExample #9

Closed danzeeeman closed 11 years ago

danzeeeman commented 11 years ago

Seg Faults after removing EasyCam

bakercp commented 11 years ago

I am thinking that ofEasyCam may be failing because we do not have ofEvents working correctly yet (to respond to mouse / keyboard input). I am working on this now over in another issue and hope to have it all working in the next few hours.

danzeeeman commented 11 years ago

also I think ofSetVerticalSync(true); might be causing a bunch of issues. I'm starting to comment it out of the examples I'm testing.

jvcleave commented 11 years ago

fyi (just added to piratepad (http://piratepad.net/jFNE528ols) but we may want to put this somewhere in a readme)

Debugging If your app is crashing (segmentation fault, etc) you can get better error messages/stack traces by using gdb

example (raspberrypi_helloWorldApp is your compiled app):

$ make Debug
$ cd bin
$ gdb raspberrypi_helloWorldApp

(type "r" to run)

http://davis.lbl.gov/Manuals/GDB/gdb_3.html

bakercp commented 11 years ago

Nice tip @jvcleave I'll make sure it is included when I move the pirate pad stuff over to this wiki.

danzeeeman commented 11 years ago

so I got this when trying to compile with make Debug

g++: error: ../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworksDebug.a: No such file or directory make: *\ [bin/raspberrypi_debug] Error 1

On Tue, Nov 20, 2012 at 2:29 PM, Christopher Baker <notifications@github.com

wrote:

Nice tip @jvcleave https://github.com/jvcleave I'll make sure it is included when I move the pirate pad stuff over to this wiki.

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10569059.

"I believe in science. Unlike mathematical theorems, scientific results can't be proved. They can only be tested again and again, until only a fool would not believe them.

I cannot prove that electrons exist, but I believe fervently in their existence. And if you don't believe in them, I have a high voltage cattle prod I'm willing to apply as an argument on their behalf. Electrons speak for themselves."

-- Seth Lloyd: Quantum Mechanical Engineer, MIT

/.

jvcleave commented 11 years ago

forgot to mention you have to make debug OF as well

On Nov 20, 2012, at 3:18 PM, Dan Moore notifications@github.com wrote:

so I got this when trying to compile with make Debug

g++: error: ../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworksDebug.a:

No such file or directory make: *\ [bin/raspberrypi_debug] Error 1

On Tue, Nov 20, 2012 at 2:29 PM, Christopher Baker <notifications@github.com

wrote:

Nice tip @jvcleave https://github.com/jvcleave I'll make sure it is included when I move the pirate pad stuff over to this wiki.

— Reply to this email directly or view it on GitHub< https://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10569059>.

"I believe in science. Unlike mathematical theorems, scientific results can't be proved. They can only be tested again and again, until only a fool would not believe them.

I cannot prove that electrons exist, but I believe fervently in their existence. And if you don't believe in them, I have a high voltage cattle prod I'm willing to apply as an argument on their behalf. Electrons speak for themselves."

-- Seth Lloyd: Quantum Mechanical Engineer, MIT

/.

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10571051.

bakercp commented 11 years ago

Right now, the make only makes release libs. Did you explictly do a 'make Debug' for the core libs?

danzeeeman commented 11 years ago

I didn't run a make debug on the openFrameworksCompiled/project

On Tue, Nov 20, 2012 at 3:21 PM, Christopher Baker <notifications@github.com

wrote:

Right now, the make only makes release libs. Did you explictly do a make Debug for the libs?


http://christopherbaker.net

On Tue, Nov 20, 2012 at 2:18 PM, Dan Moore notifications@github.com wrote:

so I got this when trying to compile with make Debug

g++: error:

../../../libs/openFrameworksCompiled/lib/linuxarmv6l/libopenFrameworksDebug.a:

No such file or directory make: *\ [bin/raspberrypi_debug] Error 1

On Tue, Nov 20, 2012 at 2:29 PM, Christopher Baker < notifications@github.com

wrote:

Nice tip @jvcleave https://github.com/jvcleave I'll make sure it is included when I move the pirate pad stuff over to this wiki.

— Reply to this email directly or view it on GitHub<

https://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10569059>.

"I believe in science. Unlike mathematical theorems, scientific results can't be proved. They can only be tested again and again, until only a fool would not believe them.

I cannot prove that electrons exist, but I believe fervently in their existence. And if you don't believe in them, I have a high voltage cattle prod I'm willing to apply as an argument on their behalf. Electrons speak for themselves."

-- Seth Lloyd: Quantum Mechanical Engineer, MIT

/.

— Reply to this email directly or view it on GitHub< https://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10571051>.

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10571154.

"I believe in science. Unlike mathematical theorems, scientific results can't be proved. They can only be tested again and again, until only a fool would not believe them.

I cannot prove that electrons exist, but I believe fervently in their existence. And if you don't believe in them, I have a high voltage cattle prod I'm willing to apply as an argument on their behalf. Electrons speak for themselves."

-- Seth Lloyd: Quantum Mechanical Engineer, MIT

/.

bakercp commented 11 years ago

We're all on the same page :)

danzeeeman commented 11 years ago

with gdb enabled:

Starting program: /home/pi/src/pi/openFrameworks/apps/devApps/raspberrypi/bin/raspberrypi [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". [New Thread 0x418c3310 (LWP 9888)] [New Thread 0x420c3310 (LWP 9889)] [New Thread 0x428c3310 (LWP 9890)] [New Thread 0x430c3310 (LWP 9891)] CREATED SCREEN WITH SIZE 1920 x 1080

Program received signal SIGSEGV, Segmentation fault. 0x409462b8 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6

this looks like its fun

danzeeeman commented 11 years ago

looks like the culprit is: mesh.draw()

danzeeeman commented 11 years ago

so in ofMesh the draw() function we grab the renderer from ofGraphics and call draw but I'm not sure if we are returning the correct renderer for the rpi.

bakercp commented 11 years ago

Can you check the getType() string? It should be ofGLRenderer (we aren't using the GLES type). IF it's null that's also a problem.


http://christopherbaker.net

On Tue, Nov 20, 2012 at 4:39 PM, Dan Moore notifications@github.com wrote:

so in ofMesh the draw() function we grab the renderer from ofGraphics and call draw but I'm not sure if we are returning the correct renderer for the rpi.

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10577094.

danzeeeman commented 11 years ago

closed with 9dbe1cb3eb3afaa8b92b7067f0b1398de52f3820

bakercp commented 11 years ago

hey dan, could you give a little more info on how you got this example running.

i rebuilt my core libs, and removed the GLUT specific stuff from the example main.cpp then ran make, but got this:

terminate called after throwing an instance of 'Poco::SystemException' what(): System exception Aborted

Did you may any other modifications besides uncommenting the bcm_host line in ofConstants?

danzeeeman commented 11 years ago

I'll push the whole project. I'll make an ofxRaspberryPi examples folder in examples/addons and push updated examples there. On Nov 21, 2012 8:52 AM, "Christopher Baker" notifications@github.com wrote:

hey dan, could you give a little more info on how you got this example running.

i rebuilt my core libs, and removed the GLUT specific stuff from the example main.cpp then ran make, but got this:

terminate called after throwing an instance of 'Poco::SystemException' what(): System exception Aborted

Did you may any other modifications besides uncommenting the bcm_host line in ofConstants?

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10597523.

danzeeeman commented 11 years ago

I pushed the examples but I screwed up and checked in updates to the raspberrypi devApps that I changed. grrrrrr command line git errors.

On Wed, Nov 21, 2012 at 10:00 AM, Daniel Moore <daniel.james.moore@gmail.com

wrote:

I'll push the whole project. I'll make an ofxRaspberryPi examples folder in examples/addons and push updated examples there. On Nov 21, 2012 8:52 AM, "Christopher Baker" notifications@github.com wrote:

hey dan, could you give a little more info on how you got this example running.

i rebuilt my core libs, and removed the GLUT specific stuff from the example main.cpp then ran make, but got this:

terminate called after throwing an instance of 'Poco::SystemException' what(): System exception Aborted

Did you may any other modifications besides uncommenting the bcm_host line in ofConstants?

— Reply to this email directly or view it on GitHubhttps://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/9#issuecomment-10597523.

"I believe in science. Unlike mathematical theorems, scientific results can't be proved. They can only be tested again and again, until only a fool would not believe them.

I cannot prove that electrons exist, but I believe fervently in their existence. And if you don't believe in them, I have a high voltage cattle prod I'm willing to apply as an argument on their behalf. Electrons speak for themselves."

-- Seth Lloyd: Quantum Mechanical Engineer, MIT

/.

bakercp commented 11 years ago

Perfect.