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

GetWorldPos error #3

Open
freakfs opened this issue May 19, 2022 · 6 comments
Open

GetWorldPos error #3

freakfs opened this issue May 19, 2022 · 6 comments

Comments

@freakfs
Copy link

freakfs commented May 19, 2022

I'm very interested in your project. What's your current progress?

I ran your project and found the card in CV:: mat worldpos = points [i] - > getworldpos();

The console then prints the following error

RuntimeError: Aborted(segmentation fault)

Can you tell me something about the progress of debugging

@nickw1
Copy link
Owner

nickw1 commented May 22, 2022

Hi @freakfs glad you are interested!

The project will not do a lot just yet, besides print out the position of any tracked points.

In terms of my progress, there is still an unaligned memory access error I need to diagnose. However the main issue for the moment is that I am having some problems initialising the tracking on my device (even with custom camera parameters which I obtained with a calibration tool). Need to work on this but have had little time recently. Did you manage to get tracking started?

There's some info about Emscripten debugging here: https://emscripten.org/docs/porting/Debugging.html

@freakfs
Copy link
Author

freakfs commented May 23, 2022

I try to run in debug mode. At present, I can output some information

However, running more times will cause the browser to get stuck, which may be related to "pthread"

Like this:
image

@freakfs
Copy link
Author

freakfs commented May 23, 2022

@nickw1 sorry i may have wasted your time
Can you provide the parameters of your EMCC instruction
For example, emcc xxx xxxx.a -I xxx?

I have linked many static libraries, but have been unable to debug. Now I can only debug after packaging

@nickw1
Copy link
Owner

nickw1 commented May 25, 2022

@freakfs did you build with the cmake file provided?

That includes all the options, libraries, etc.

emcmake cmake .
emmake make

That "blocking on the main thread" doesn't actually seem to cause any problems for me, at least not yet. It's using the pthread provision of Emscripten.

@freakfs
Copy link
Author

freakfs commented May 26, 2022

@freakfs did you build with the cmake file provided?

That includes all the options, libraries, etc.

emcmake cmake .
emmake make

That "blocking on the main thread" doesn't actually seem to cause any problems for me, at least not yet. It's using the pthread provision of Emscripten.

@nickw1
Yes.with
emcmake cmake . -DCMAKE_BUILD_TYPE=DEBUG emmake make -j

but Emmake again after each change
so i need the parameters of your EMCC instruction

@nickw1
Copy link
Owner

nickw1 commented May 30, 2022

@freakfs these are all detailed in the CMakeLists.txt, look for the add_compile_options() and add_link_options() lines.

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

2 participants