The only time I saw such an error is when I used a png image or otherwise non compatible format. Try a jpeg only. YOu get a pointer for this error:
static\opencv\modules\imgcodecs\src\loadsave.cpp:768: error: (-215:Assertion failed) !buf.empty() in function 'cv::imdecode_'
I run into the same issue, however changing the image is not the actual fix. It works fine in Mendix 9.24.4 (the version in which the demo app is published), but no longer works in Mendix 10.6.0.
Hi,
I am also experiencing this issue. After analyzing the problem, it is clear that the issue is not related to whether the image is square or not.
The file is being correctly retrieved and passed to the Java Action, which then sees it as empty.
This error can be bypassed, but it requires following these steps:
1. Launch the runtime environment and trigger the error.
2. Stop the runtime.
3. Start again (not restart) the runtime. At this point, you can use the same file as before or a different one, and the application will function correctly.
I would appreciate any further insights or assistance from more experienced members on this topic.