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

Update TGraph2D properties before painting #13919

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

linev
Copy link
Member

@linev linev commented Oct 23, 2023

TGraph2DPainter keep pointers on TGraph2D data,
but was not checking if these values were changed.

Fixes problem reported https://root-forum.cern.ch/t/56816/

TGraph2DPainter keep pointers on TGraph2D data,
but was not checking if these values were changed.

Fixes problem reported https://root-forum.cern.ch/t/56816/
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on windows10/default.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Errors:

  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\rfield_vector.cxx(26,1): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\rfield_vector.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(270,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\rfield_vector.cxx(26,17): error C2672: 'std::vector<CustomStruct,std::allocator<CustomStruct>>::emplace_back': no matching overloaded function found [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\rfield_vector.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\rfield_vector.cxx(27,1): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\rfield_vector.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(273,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\rfield_vector.cxx(27,17): error C2672: 'std::vector<CustomStruct,std::allocator<CustomStruct>>::emplace_back': no matching overloaded function found [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\rfield_vector.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(275,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\rfield_vector.cxx(32,1): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\rfield_vector.vcxproj]
  • [2023-10-23T12:10:59.585Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\ntuple_show.cxx(277,22): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'CustomStruct' [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\ntuple_show.vcxproj]
  • [2023-10-23T12:10:59.959Z] C:\build\workspace\root-pullrequests-build\root\tree\ntuple\v7\test\rfield_vector.cxx(32,17): error C2672: 'std::vector<CustomStruct,std::allocator<CustomStruct>>::emplace_back': no matching overloaded function found [C:\build\workspace\root-pullrequests-build\build\tree\ntuple\v7\test\rfield_vector.vcxproj]

And 12 more

@github-actions
Copy link

Test Results

       10 files         10 suites   1d 22h 34m 10s ⏱️
  2 446 tests   2 443 ✔️ 0 💤 3
24 297 runs  24 289 ✔️ 0 💤 8

For more details on these failures, see this check.

Results for commit 1c27861.

@vepadulano
Copy link
Member

Hi @linev , thanks for this improvement! Is there any test with the mentioned reproducer?

@linev
Copy link
Member Author

linev commented Oct 25, 2023

Reproducer is in the forum post

Copy link
Member

@couet couet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@linev linev merged commit 03bfb76 into root-project:master Oct 25, 2023
5 of 16 checks passed
@linev linev deleted the fix_graph2d branch October 25, 2023 09:17
@vepadulano
Copy link
Member

It's not really what I meant :)

@linev
Copy link
Member Author

linev commented Oct 25, 2023

Macro can run in batch, but one cannot really test result of the running macro.
Problem is missing drawing of TGraph2D points. We do not have reliable methods to check if these drawing done or not.

Very inaccurate method is size of produced png or gif image. Probably it will be larger with correct drawing, but not sure.

@vepadulano
Copy link
Member

Alright, thanks for the explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants