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

crash when calling in program #34

Open
Sutter099 opened this issue Aug 16, 2023 · 0 comments
Open

crash when calling in program #34

Sutter099 opened this issue Aug 16, 2023 · 0 comments

Comments

@Sutter099
Copy link

I have tried some versions like 3.4.9 and 4.1.1. Things work well with opencv objects like:

// cv_test.cpp main()
Point3d all_points[][2] = {
		Point3d( 0.0, 0.0, 0.0 ),
		Point3d( 1.0, 0.0, 0.0 ),

		Point3d( 0.0, 2.0, 0.0 ),
		Point3d( 1.0, 1.0, 0.0 ),
				 
		Point3d( 0.0, -2.0, 0.0 ),
		Point3d( 1.0, -1.0, 0.0 ),
	};

cv::Mat tmp = cv::Mat::zeros(512, 512, CV_8UC1);

However, when it comes to imread() and imshow(), I can still compile my program successfully, but running the exe, it crashes immediately. I guess it is about the dynamic link library...

// cv_test.cpp main()
    cv::Mat my_pic = cv::imread("./my_pic.png", cv::IMREAD_GRAYSCALE);
    cv::imshow("my_pic", my_pic);

// gdb output
(gdb) start
During startup program exited with code 0xc0000135
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

1 participant