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

Error open No such file run the ./ChosunTruck [OpenCV error message] #35

Open
mrasyidaqmar opened this issue Mar 21, 2017 · 1 comment

Comments

@mrasyidaqmar
Copy link

mrasyidaqmar commented Mar 21, 2017

Hi, basically this error is a continuation of error issue #17 posted by @gotope.
Previously, I have successfully ran the ChosunTruck on Windows.
Now on Ubuntu 16.04, I had the same problem as @gotope's issue #17 , and ended up here:
~/ChosunTruck/linux$ sudo ./ChosunTruck
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /home/aqmar/OpenCV/modules/core/src/matrix.cpp, line 508
terminate called after throwing an instance of 'cv::Exception'
what(): /home/aqmar/OpenCV/modules/core/src/matrix.cpp:508: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat

My suspicion right now is in the ETS2 windowed mode size is not appropriate. (I have put the window in the right bottom though).
This is the screenshot:
chosuntruck-opencv-error-snapshot

But I am not sure how to fix this yet. I it possible that my monitor resolution has a role on the error?

@chi3236
Copy link
Collaborator

chi3236 commented Mar 22, 2017

Yeah. The monitor resolution in Linux should be 1920x1080, because of the limitation of getting screen method. Please check your monitor resolution and set it to 1920x1080, if not set.

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

2 participants