Skip to content

Regression

OmeroPy.test.integration.tablestest.test_tables.TestTableIntegrity.testAllColumnsAndMetadata (from pytest)

Failing for the past 1 build (Since #412 )
Took 2.4 sec.

Error Message

omero.InternalException: exception ::omero::InternalException
{
    serverStackTrace = Traceback (most recent call last):
  File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 71, in exc_handler
    rv = func(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^
  File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 31, in handler
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/tables.py", line 285, in addData
    self.storage.append(cols)
  File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 96, in with_lock
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 85, in flush_after
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 514, in append
    col.append(self.__mea)  # Potential corruption !!!
    ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/columns.py", line 543, in append
    masks.append(numpy.fromstring(x, count=len(x),
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: The binary mode of fromstring is removed, use frombuffer instead

    serverExceptionClass = 
    message = Internal exception
}

Stacktrace

self = <test_tables.TestTableIntegrity object at 0x7fdffcb70590>

    def testAllColumnsAndMetadata(self):
        """
        Check the integrity of an created OMERO table created within this test.
        This test mainly checks if the created table is as expected by checking
        column types and values.
        """
    
>       table = self._testCreateAllColumnsAndMetadata()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

test/integration/tablestest/test_tables.py:201: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/integration/tablestest/test_tables.py:139: in _testCreateAllColumnsAndMetadata
    table.addData(cols)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 9f08557a-dfb7-4862-90a8-3e6d44602406/Table-35e00ca4-7450-42c1-85e5-7e2ad43fae81 -t -e 1.1:tcp -h 172.18.0.11 -p 36999 -t 60000
cols = [object #0 (::omero::grid::FileColumn)
{
    name = filecol
    description = file col
    values = 
    {
        [0]...
    name = boolcol
    description = bool col
    values = 
    {
        [0] = True
        [1] = False
    }
}, ...]
_ctx = None

    def addData(self, cols, _ctx=None):
>       return _M_omero.grid.Table._op_addData.invoke(self, ((cols, ), _ctx))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       omero.InternalException: exception ::omero::InternalException
E       {
E           serverStackTrace = Traceback (most recent call last):
E         File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 71, in exc_handler
E           rv = func(*args, **kwargs)
E                ^^^^^^^^^^^^^^^^^^^^^
E         File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 31, in handler
E           return func(*args, **kwargs)
E                  ^^^^^^^^^^^^^^^^^^^^^
E         File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/tables.py", line 285, in addData
E           self.storage.append(cols)
E         File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/util/decorators.py", line 96, in with_lock
E           return func(*args, **kwargs)
E                  ^^^^^^^^^^^^^^^^^^^^^
E         File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 85, in flush_after
E           return func(*args, **kwargs)
E                  ^^^^^^^^^^^^^^^^^^^^^
E         File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/hdfstorageV2.py", line 514, in append
E           col.append(self.__mea)  # Potential corruption !!!
E           ^^^^^^^^^^^^^^^^^^^^^^
E         File "/home/omero/workspace/OMERO-test-integration/.venv3/lib64/python3.11/site-packages/omero/columns.py", line 543, in append
E           masks.append(numpy.fromstring(x, count=len(x),
E                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       ValueError: The binary mode of fromstring is removed, use frombuffer instead
E       
E           serverExceptionClass = 
E           message = Internal exception
E       }

../../../../.venv3/lib64/python3.11/site-packages/omero_Tables_ice.py:1273: InternalException