-
Notifications
You must be signed in to change notification settings - Fork 845
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
moldraw2DTest1 failure when building on aarch64 #5899
Comments
Hi @vfscalfani, |
Thanks for your reply, that makes sense. I'm happy to test any changes if that would help. Vin |
Hi @vfscalfani, I think I have fixed the test. It was a classic case of "all the right notes, not necessarily in the right order" (obscure UK cultural reference : https://vimeo.com/479336770). The convex hull algorithm that is used to create the rectangle for the highlights was returning the corners of the rectangle in a different order for your file, so the regex failed. It now checks for the correct corners in any order. That might mean a non-rectangular shape will pass the test, but we can cross that bridge later if necessary. Best, |
Hi @DavidACosgrove This is great! Yes, I just built with the new code on my Raspberry Pi and moldraw2DTest1 passed (as well as all other tests). That was with Freetype support. I'm running a build now without Freetype support just in case. It does not look like that should matter, but probably good to check anyway. I will report back on that tomorrow (a build and testing takes about 4 hours on the Pi 400). Thanks a lot for fixing this. Vin |
Okay, all tests pass with and without Freetype support. Thanks again @DavidACosgrove |
Hi Vin,
Thanks for running the tests and letting me know. I’ll do the PR.
Best,
Dave
On Sat, 31 Dec 2022 at 16:02, Vincent F. Scalfani ***@***.***> wrote:
Okay, all tests pass with and without Freetype support. Thanks again
@DavidACosgrove <https://github.com/DavidACosgrove>
—
Reply to this email directly, view it on GitHub
<#5899 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGF2FVQJGLWS6PVTXAEBY3WQBKKNANCNFSM6AAAAAATJTAW5U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
David Cosgrove
Freelance computational chemistry and chemoinformatics developer
http://cozchemix.co.uk
|
Describe the bug
moldraw2DTest1 fails when building on aarch64 Raspberry Pi OS.
To Reproduce
Hi,
I am trying to build the 2022_09_3 RDKit release on aarch64 (Raspberry Pi OS 64 bit, based on Debian 11).
After building, all tests pass except for one test: moldraw2DTest1. Here are my cmake settings (popcnt off as cmake reported that it was not available on aarch64)
And here is a snippet of the relevant verbose output of ctest on moldraw2DTest1:
Looking at the test1.cpp file around line 4318, https://github.com/rdkit/rdkit/blob/master/Code/GraphMol/MolDraw2D/test1.cpp, it looked like maybe turning of freetype support may work, however I recieved the same error with disabling freetype in another build:
Then, since it was failing on a regex_search, I tried to build with boost regex instead, but the same moldraw2DTest1 failed:
This led me to believe that regex is working correctly, and the test is actually failing. I inspected the testGitHub3305_4.svg file (which is what I believe the following regex in test1.cpp is looking at):
test1.cpp, line 4316:
And here are the 3 lines in the build output testGitHub3305_4.svg that start with
class='bond-6
:I don't think any of those match the expected regex pattern and that this might be a bug.
Many thanks,
Vin
Expected behavior
I expected moldraw2DTest1 to pass.
Screenshots
I have attached the output testGitHub3305_4.svg from the build.
Configuration (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: