bethesirius / ChosunTruck

Euro Truck Simulator 2 autonomous driving solution
732 stars 104 forks source link

Assertion error occurs ONLY at the first run after build #18

Closed chi3236 closed 7 years ago

chi3236 commented 7 years ago

I changed IPM area code at windows/src/main.cpp This area setting works well in Linux without an assertion error, but in Windows, assertion error occurs.

OpenCV Error: Assertion failed (ssize.area() > 0) in cv::remapBilinear, file ...\opencv\sources\modules\imgproc\src\imgwarp.cpp, line 3868 

The error looks like this. It only occurs at the first execution after the build, and it does not occur after the second execution. The error can be ignored. Although the error occurs with the program stopped window, program runs well after a few seconds. Any ideas to deal with it?

zappybiby commented 7 years ago

Try switching to Multi-threaded runtime libs (/MT)

I just updated my code to match that change and it works fine.

gotope commented 7 years ago

I set to Release version and run successful.

chi3236 commented 7 years ago

@zappybiby Thanks!