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

[pyclustering.nnet.sync] Crash in case of DYNAMIC structure #674

Open
annoviko opened this issue Jun 9, 2021 · 0 comments
Open

[pyclustering.nnet.sync] Crash in case of DYNAMIC structure #674

annoviko opened this issue Jun 9, 2021 · 0 comments
Assignees
Labels
Bug Tasks related to found bugs

Comments

@annoviko
Copy link
Owner

annoviko commented Jun 9, 2021

Introduction
When user-custom structure is needed, then crash happens in case of ccore=True.

Example:

amount_neurons = 8
network = sync_network(amount_neurons, type_conn=conn_type.DYNAMIC, ccore=True)

# build circle structure
for i in range(1, len(network)):
    network.set_connection(i - 1, i)
    network.set_connection(i, i - 1)

network.set_connection(0, amount_neurons - 1)
network.set_connection(amount_neurons - 1, 0)

# simulate
output_dynamic = network.simulate(1000, 1)

sync_visualizer.show_output_dynamic(output_dynamic)
sync_visualizer.show_order_parameter(output_dynamic)

Output:

Traceback (most recent call last):
  File "D:/workspace/pyclustering/pyclustering/cluster/examples/z_example_no_commit.py", line 4, in <module>
    network = sync_network(amount_neurons, type_conn=conn_type.DYNAMIC, ccore=True)
  File "D:\workspace\pyclustering\pyclustering\nnet\sync.py", line 737, in __init__
    self._ccore_network_pointer = wrapper.sync_create_network(num_osc, weight, frequency, type_conn, initial_phases);
  File "D:\workspace\pyclustering\pyclustering\core\sync_wrapper.py", line 20, in sync_create_network
    pointer_network = ccore.sync_create_network(c_uint(num_osc), c_double(weight), c_double(frequency), c_uint(type_conn), c_uint(initial_phases))
OSError: [WinError -529697949] Windows Error 0xe06d7363
@annoviko annoviko added the Bug Tasks related to found bugs label Jun 9, 2021
@annoviko annoviko self-assigned this Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Tasks related to found bugs
Projects
None yet
Development

No branches or pull requests

1 participant