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

Uncaught exception in processFrame #11

Closed
kalwalt opened this issue Apr 14, 2023 · 3 comments
Closed

Uncaught exception in processFrame #11

kalwalt opened this issue Apr 14, 2023 · 3 comments
Labels
bug Something isn't working Emscripten / C / C++ all about Emscripten

Comments

@kalwalt
Copy link
Member

kalwalt commented Apr 14, 2023

As said in #10 i get sometimes this error:

__resumeException WebARKit.js:2

  $emscripten::internal::MethodInvoker<void (WebARKit::*)(emscripten::val, ColorSpace), void, WebARKit*, emscripten::val, ColorSpace>::invoke(void (WebARKit::* const&)(emscripten::val, ColorSpace), WebARKit*, emscripten::_EM_VAL*, ColorSpace) 00d78de6:0x12cf0
  WebARKit$processFrame VM21:10
  value WebARKit.js:2
  value WebARKit.js:2
  processFrame  worker.js:53
  self.onmessage

Note that this happens only on Mobile device.

@kalwalt kalwalt added bug Something isn't working Emscripten / C / C++ all about Emscripten labels Apr 14, 2023
@kalwalt kalwalt changed the title Uccaught exception in processFrame Uncaught exception in processFrame Apr 14, 2023
kalwalt added a commit that referenced this issue Apr 23, 2023
Uncaught exception in processFrame #11
kalwalt added a commit that referenced this issue Apr 23, 2023
- it seems that issue #11 is solved
kalwalt added a commit that referenced this issue Apr 24, 2023
Uncaught exception in processFrame #11
@kalwalt
Copy link
Member Author

kalwalt commented May 1, 2023

with commit 7c4f5b2 i get now:

a @ WebARKit.js:2
  $cv::error(int, std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator> const&, char const*, char const*, int) @
  $cv::(anonymous namespace)::SparsePyrLKOpticalFlowImpl::calc(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_InputOutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&) @
  $webarkit::WebARKitAkazeTracker::track(cv::Mat&) @
  $webarkit::WebARKitOrbTracker::processFrame(cv::Mat&) @
  $webarkit::WebARKitAkazeTracker::processFrameData(unsigned char*, unsigned long, unsigned long, webarkit::ColorSpace) @
  $WebARKit::processFrame(emscripten::val, webarkit::ColorSpace) @
  $emscripten::internal::MethodInvoker<void (WebARKit::)(emscripten::val, webarkit::ColorSpace), void, WebARKit, emscripten::val, webarkit::ColorSpace>::invoke(void (WebARKit::* const&)(emscripten::val, webarkit::ColorSpace), WebARKit*, emscripten::_EM_VAL*, webarkit::ColorSpace) @
  WebARKit$processFrame @
  value @
  value @
  processFrame @
  self.onmessage @




I think i have to change the initialization of the trackers. The issue arise because i create two trackers with unique_ptr's? or should i create only one m_tracker (instead of m_akaze_tracker and m_orb_tracker) and instantiate the orb or akaze on demand?

@kalwalt
Copy link
Member Author

kalwalt commented May 1, 2023

i tested removing the m_orb_tracker and all related code and seems that the uncaught error does not show anymore. I will try to change the code in accord of this in dedicated PR.

kalwalt added a commit to webarkit/WebARKitLib that referenced this issue May 1, 2023
WebARKitOrbTracker classes.
Now only WebARKitTracker is necessary.
- fix for issue webarkit/webarkit-testing#11
kalwalt added a commit that referenced this issue May 1, 2023
- removing not necessary classes
- fix issue #11
kalwalt added a commit that referenced this issue May 2, 2023
- removing not necessary classes
- fix issue #11
@kalwalt
Copy link
Member Author

kalwalt commented May 4, 2023

This issue should be fixed with #16

@kalwalt kalwalt closed this as completed May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Emscripten / C / C++ all about Emscripten
Projects
None yet
Development

No branches or pull requests

1 participant