You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't completely finished debugging this yet, but I found a case that consistently causes get_sparselabelmask() to crash.
First, an example of a "bad" request, which results in a reasonable error: If you ask for the sparse mask of a label that doesn't exist at all in the labelarray (at any scale), you get a 404 error.
libdvid._dvid_python.DVIDException: (404, 'DVID Error (404): DVIDException for /node/cc47dc5d1d6645ec9dfa7e9f06cf7898/labels_test_mask_utils/sparsevol/1152921504606846976?format=blocks&scale=6\n\n')
So far, so good. But what if the label DOES exist, just not at the scale you're requesting? (That is, it got downsampled out of existence at your requested scale.) In that case, something goes off-the-rails. In my case, it seems to have corrupted the Python heap, but I'm not sure.
Fatal Python error: Floating point exception
Current thread 0x00007fff9a16a3c0 (most recent call first):
File "/Users/bergs/Documents/workspace/DVIDSparkServices/unit_tests/dvid/test_mask_utils.py", line 38 in setUpClass
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/suite.py", line 163 in _handleClassSetUp
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/suite.py", line 114 in run
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/suite.py", line 84 in __call__
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/suite.py", line 122 in run
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/suite.py", line 84 in __call__
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/runner.py", line 176 in run
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/main.py", line 256 in runTests
File "/miniforge/envs/flyem-forge/lib/python3.6/unittest/main.py", line 95 in __init__
File "/Users/bergs/Documents/workspace/DVIDSparkServices/unit_tests/dvid/test_mask_utils.py", line 55 in <module>
The text was updated successfully, but these errors were encountered:
I haven't completely finished debugging this yet, but I found a case that consistently causes
get_sparselabelmask()
to crash.First, an example of a "bad" request, which results in a reasonable error: If you ask for the sparse mask of a label that doesn't exist at all in the labelarray (at any scale), you get a
404
error.So far, so good. But what if the label DOES exist, just not at the scale you're requesting? (That is, it got downsampled out of existence at your requested scale.) In that case, something goes off-the-rails. In my case, it seems to have corrupted the Python heap, but I'm not sure.
The text was updated successfully, but these errors were encountered: