Comments (9)
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.
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.
Fixed in the above commit. Website has a database issue yesterday and has been fixed too.
Thanks for pointing that out.
from emgucv.
Did the trick! Thank you!
from emgucv.
I have the same issue like okazolab. Got EmguCV via NuGet though, will try to build the newest commit.
from emgucv.
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.
This commit should have it fixed:
24d44b4
from emgucv.
Awesome, that works!
Thanks a lot.
from emgucv.
Closing issue now.
from emgucv.
Related Issues (20)
- Image.Data and GetSubRect not compatible HOT 3
- [BUG] Wrong documentation of angle direction in RotatedRect HOT 5
- Wrongly converted parameter arguments for process method in AlignExposures class HOT 1
- [Feature] Add getter/setter in Feature2D algorithms
- Missing custom Aruco board definition
- [BUG] An error occurs when the file path contains Chinese characters
- [BUG] Emgu prevents apps from running on iPhone 6/iOS 12 HOT 7
- Timeline of .Net 8.0 support HOT 7
- [BUG] Features2DToolbox.DrawMatches singlePointColor argument is ignored, it always uses the matchColor argument
- EMGUCV 4.8 VideoCapture.Set is not setting desired Width and Height
- [BUG]AvaloniaUI Project with Emgu.CV.runtime.debian-arm64, encountered Segmentation fault error during runtime HOT 1
- [QUESTION] How to Optimize Image Stitching HOT 3
- [FEATURE] Adding GStreamer when building a project on Debian
- [FEATURE] - Support use of ReadOnly/Span in APIs HOT 5
- [Question] Replace OpenCv default dlls with other OpenCv build HOT 17
- [BUG] For certain FPS settings VideoWriter creation fails with "make sure you have the specific codec installed" HOT 1
- Attempting to JIT compile method "(wrapper native-to-managed) int Emgu.CV.CvInvoke:CvErrorHandler (int,intptr,intptr,intptr,int,intptr)" while running in aot-only mode. HOT 2
- [BUG] ./cmake_configure run ends with an error HOT 1
- [BUG] Emgu on Raspberrypi error - global cap_v4l.cpp:1134 tryIoctl HOT 1
- [BUG] GetSpan with ROI crash application with violation of memory access HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emgucv.