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

test_synapse_generator_random fails occasionally #115

Open
tnowotny opened this issue Jul 8, 2020 · 2 comments
Open

test_synapse_generator_random fails occasionally #115

tnowotny opened this issue Jul 8, 2020 · 2 comments

Comments

@tnowotny
Copy link
Contributor

tnowotny commented Jul 8, 2020

the test fails occasionally on some (seemingly randomly chosen) setup as follows:

2020-07-08T13:11:15.4206410Z >       assert_equal(S4.i, np.ones(7)*2)
2020-07-08T13:11:15.4207290Z E       AssertionError: 
2020-07-08T13:11:15.4207910Z E       Arrays are not equal
2020-07-08T13:11:15.4208820Z E       
2020-07-08T13:11:15.4209390Z E       Mismatch: 100%
2020-07-08T13:11:15.4210100Z E       Max absolute difference: 2.0
2020-07-08T13:11:15.4210790Z E       Max relative difference: 1.0
2020-07-08T13:11:15.4211950Z E        x: array([0, 0, 1, 1, 1, 1, 1], dtype=int32)
2020-07-08T13:11:15.4212790Z E        y: array([ 2.,  2.,  2.,  2.,  2.,  2.,  2.])

gut-feeling I wonder whether it has something to do with a failure to invalidate arrays in the array cache so that they are not read back correctly into python after run.
This doesn't explain though why the test only fails n some instances and only occasionally.

@mstimberg
Copy link
Member

We've only ever seen this specific outcome on OS X though, right? I wonder whether it is not a bug in the C++ code, e.g. some "undefined behaviour" or some wrong use of pointers. This could explain why it only happens sometimes.

@tnowotny
Copy link
Contributor Author

tnowotny commented Jul 8, 2020

could be - definitely seen it on OS X but I have a feeling I have also seen it on Windows once ... not sure.

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

No branches or pull requests

2 participants