Skip to content

"Can't create shared memory error" for Python/Matlab on Windows #1

@pkwok14

Description

@pkwok14

Hi, this looks like an interesting library and have tried to get it to run on Windows (10 Pro) for Python and Matlab but consistently get the same "Can't create shared memory error".

Python 3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]
---------------------------------------------------------------------------
SharedMemoryLibraryError                  Traceback (most recent call last)
File shared_memory\test.py:12, in <module>
      9 d = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
     11 # Share
---> 12 set_shared_memory_data(d)
     14 # Receive
     15 data = get_shared_memory_data()

File shared_memory\python\shared_memory.py:458, in set_shared_memory_data(data)
    456     _check_library_error(_c_library_set_shared_memory_data_signed_16(data, temp_dims, temp_rank))
    457 elif data_type == np.int32:
--> 458     _check_library_error(_c_library_set_shared_memory_data_signed_32(data, temp_dims, temp_rank))
    459 elif data_type == np.int64:
    460     _check_library_error(_c_library_set_shared_memory_data_signed_64(data, temp_dims, temp_rank))

File shared_memory\python\shared_memory.py:243, in _check_library_error(value)
    241     return value
    242 else:
--> 243     raise SharedMemoryLibraryError(value)

SharedMemoryLibraryError: Can't create shared memory

I have also successfully recompiled the library and the test suite seems to run fine. Is there a recommended way how to debug this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions