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

cvui:: window crashed #81

Open
chris-shenzhen-china opened this issue May 9, 2019 · 8 comments
Open

cvui:: window crashed #81

chris-shenzhen-china opened this issue May 9, 2019 · 8 comments
Labels
bug c++ Issues related to the C++ version of cvui

Comments

@chris-shenzhen-china
Copy link

image

image

@chris-shenzhen-china
Copy link
Author

crashed in cvui:window ---> cv::rectangle(aOverlay, theContent, cv::Scalar(0x31, 0x31, 0x31), CVUI_FILLED);

@Dovyski
Copy link
Owner

Dovyski commented May 9, 2019

I'll check that. Are you using OpenCV 4.x?

@chris-shenzhen-china
Copy link
Author

i think the issue is always there both opencv 4.x and opencv3.4.6,
image

@Dovyski
Copy link
Owner

Dovyski commented May 10, 2019

Ok, thanks for the info. I think I've identified the problem. I'll make a patch soon.

@pthom
Copy link
Contributor

pthom commented Jun 6, 2019

Good evening Fernando !

I stumbled also on this problem, using opencv 4. The patch below seems to do the trick:

cvui.h line 2089; add the line "aOverlay = cv::Mat..."

void window(cvui_block_t& theBlock, cv::Rect& theTitleBar, cv::Rect& theContent, const cv::String& theTitle) {
  bool aTransparecy = false;
  double aAlpha = 0.3;
  // Replace the line "cv::Mat aOverlay;" by this:
  cv::Mat aOverlay = cv::Mat(theBlock.where.size(), theBlock.where.type());

@Dovyski
Copy link
Owner

Dovyski commented Jun 7, 2019

Thanks, Pascal! I'll work on the fix using your patch.

@Dovyski Dovyski added bug c++ Issues related to the C++ version of cvui labels Jun 21, 2019
@bonukai bonukai mentioned this issue Aug 27, 2019
@lvZic
Copy link

lvZic commented Jul 22, 2020

Thanks, Pascal! I'll work on the fix using your patch.

hi version2.7.0 stiil has this bug lol

@Dovyski
Copy link
Owner

Dovyski commented Jul 24, 2020

That must be some sort of record (1 year of "I'll work on it") 😄

As the maintainer of the project, I honestly apologize for this. I work on cvui during my free time, which has been quite limited. For those monitoring it, cvui is not abandoned, just under-maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c++ Issues related to the C++ version of cvui
Projects
None yet
Development

No branches or pull requests

4 participants