-
Notifications
You must be signed in to change notification settings - Fork 425
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
rc49p5 aruco crashes when marker detected #375
Comments
Uh ok I did a clean uninstall, then I installed the portable version and I think it works. |
Oh I spoke too soon it's actually crashing as soon as it detects the Aruco shape (ok I had to remove that GOOFY picture ehehe) The last version that works for me is rc49p2 |
Send a camera frame with your marker in it. |
Some new matrix element type requirements came up after opencv update Also, - switch to matrices of known sizes wherever possible - split into functions for readability - use member variables rather than locals to ensure heap allocation There was also breakage wrt "unknown element type" deep in opencv that only happens on release mode with no symbols. It's unknown to me whether the issue got fixed or variable reordering made it corrupt something else. It appears to work however. -fstack-protector-all doesn't show any errors at all. @kblomster says it worked in rc49p2. Looks like -fipa-pta has a miscompilation despite finally working to begin with. Reported-by: @kblomster Issue: #375
@kblomster see if pre6 works for you, thanks. |
Installed rc49p6, but I still have the same issue. Starting the tracking without the marker in frame works fine, but as soon as the marker is detected (red outline appears around it), the application crashes. I don't have Visual Studio on this computer, but I could probably install it and try to get you a stack trace or something - I have no experience with OpenCV or anything though so I doubt I'll be of much use attempting to debug the problem. Would it help if I tried to narrow down exactly which version it broke in? |
@kblomster version with link-time optimization has no visible symbols or debug info. They can't be embedded. It probably broke in pre3 with the compiler change enabling working |
Tried it (shows version as rc49p6-dirty) but nope, still same issue. Let me know if there's anything you want me to try or do. |
@kblomster here's a debug build. Visual studio wouldn't show you exact frame information, but use gdb. In particular, use this build of gdb. Before running the process, input
If the latter doesn't work, just continue debugging. After it crashes, run
and send the output. This is only to ensure that it works without any optimizations. If this version works, the compiler needs rolling back to 5.3. |
I'm gone over the weekend and will be able to try it on Monday at the earliest. Sorry for the delay. |
@kblomster no worries. You're doing a lot for the project this way actually. |
@kblomster here's a build after backing off the compiler change - https://www.dropbox.com/s/1n5in6puv4uh14e/opentrack-test-20160627.7z |
Rift 0.2.5 is no longer miscompiled. It's likely that aruco will now work. |
Hm. Tried test-20160627, still same issue. Tried the debug version, which also crashes - here's the debugger output and backtrace:
|
Hey @kblomster, There's a new logic error after simplifying aruco. Try this build - https://www.dropbox.com/s/o0ghg4x89v6prq1/opentrack-test-20160627_2.7z?dl=0 You can run it under the debugger to get the error message. It's only that the backtrace won't be visible. |
If there are still errors please record a camera video for me to reproduce under manycam. |
Well, something's changed. Running 20160627_2 under gdb worked for a few seconds, but then crashed again. gdb shows the message "warning: Invalid parameter passed to C runtime function." twice when it crashes and then a bunch of threads exiting with code 3, nothing else of interest as far as I can see (let me know if you want the full output). Will record camera video shortly. |
Will this clip do? Let me know if you want something longer or with a different codec/file format or anything (this is h.264, 640x480 @ 60fps). |
@kblomster great clip, thanks. It no longer crashes on that clip. See https://www.dropbox.com/s/ntluwx14f7hs9b8/opentrack-test-20160627_3.7z Other than the newly-introduced bugs in 2.3 release process, there was the matter of never checking height to be greater than zero. Since forever. |
What the hell, I didn't close the issue |
Good news. Windows Subsystem for Linux has a fully-working Ubuntu Xenial environment. It's also possible to run the openssh server as a Windows service. Now I no longer have to build Qt, opentrack et al. on mingw or Cygwin. WSL provides an almost complete Linux environment with binary compatibiliy. |
I can confirm that I can't get 20160627_3 to crash - it seems to work just fine. Thanks! |
@kblomster thanks for working to get it fixed. |
Crashes when I click start
Last version I was using was from a few weeks ago with out any problem, I installed using the exe, did I forget something or did my computer setup change somehow to cause this?
The text was updated successfully, but these errors were encountered: