Giter Site home page Giter Site logo

Aruco Detector crashes about emgucv HOT 9 CLOSED

emgucv avatar emgucv commented on May 21, 2024
Aruco Detector crashes

from emgucv.

Comments (9)

okazolab avatar okazolab commented on May 21, 2024 1

The Aruco demo crashes on my PC with random exceptions, during calls of various functions in Emgu.CV.Aruco namespace. I did not recompile 3.3 with the above fix, but I tried to call cveArucoDictionaryCreate1() via the public Dictionary(int nMarkers, int markerSize) constructor with the 3.2 x86 binaries. The demo crashes there too, during the call or later, in GridBoard,Draw(), ArucoInvoke.DetectMarkers(), etc. The most typical exception is "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

from emgucv.

ETLang avatar ETLang commented on May 21, 2024

I'm seeing the same crash. Other demos work ok, but Aruco crashes. Easiest repro is to run the sample and click the "Print Aruco Board" button. Crash occurs on call to ArucoInvoke.cveArucoGridBoardCreate.

Exception details:
Unhandled exception at 0x770F9AAA (ntdll.dll) in Aruco.exe: 0xC0000374: A heap has been corrupted (parameters: 0x771358E8).

Looks like the P/Invoke signature is incompatible with the definition in cvextern. I'd get the original source and try twiddling with it myself but EMGU website is apparently down and I can't access it.

from emgucv.

emgucv avatar emgucv commented on May 21, 2024

Fixed in the above commit. Website has a database issue yesterday and has been fixed too.

Thanks for pointing that out.

from emgucv.

ETLang avatar ETLang commented on May 21, 2024

Did the trick! Thank you!

from emgucv.

cwule avatar cwule commented on May 21, 2024

I have the same issue like okazolab. Got EmguCV via NuGet though, will try to build the newest commit.

from emgucv.

cwule avatar cwule commented on May 21, 2024

The error also occurs for the latest commit. I get the message "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." for the ArucoInvoke.DetectMarkers method:

     Mat mat = imageCV.Mat;
     Mat imageCopy = new Mat();
     mat.CopyTo(imageCopy);
     VectorOfInt markerIds = new VectorOfInt(); 
     DetectorParameters decParameters = new DetectorParameters();
     decParameters.AdaptiveThreshWinSizeMax = 23;
     VectorOfVectorOfPoint markerCorners = new VectorOfVectorOfPoint();
     ArucoInvoke.DetectMarkers(mat, dictionary, markerCorners, markerIds, decParameters);

The same thing happens for the Aruco example. If ArucoInvoke.DetectMarkers is commented out, both run without crashing.

from emgucv.

emgucv avatar emgucv commented on May 21, 2024

This commit should have it fixed:
24d44b4

from emgucv.

cwule avatar cwule commented on May 21, 2024

Awesome, that works!
Thanks a lot.

from emgucv.

emgucv avatar emgucv commented on May 21, 2024

Closing issue now.

from emgucv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.