{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/782","repository_url":"https://api.github.com/repos/open-cogsci/OpenSesame","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/782/comments","events_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/782/events","html_url":"https://github.com/open-cogsci/OpenSesame/issues/782","id":1480366290,"node_id":"I_kwDOABQWXM5YPJjS","number":782,"title":"'spawn' multiprocessing method crashes, need to manually revert commit","user":{"login":"dev-jam","id":3869306,"node_id":"MDQ6VXNlcjM4NjkzMDY=","avatar_url":"https://avatars.githubusercontent.com/u/3869306?v=4","gravatar_id":"","url":"https://api.github.com/users/dev-jam","html_url":"https://github.com/dev-jam","followers_url":"https://api.github.com/users/dev-jam/followers","following_url":"https://api.github.com/users/dev-jam/following{/other_user}","gists_url":"https://api.github.com/users/dev-jam/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-jam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-jam/subscriptions","organizations_url":"https://api.github.com/users/dev-jam/orgs","repos_url":"https://api.github.com/users/dev-jam/repos","events_url":"https://api.github.com/users/dev-jam/events{/privacy}","received_events_url":"https://api.github.com/users/dev-jam/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":425538403,"node_id":"MDU6TGFiZWw0MjU1Mzg0MDM=","url":"https://api.github.com/repos/open-cogsci/OpenSesame/labels/Bug","name":"Bug","color":"FF9800","default":false,"description":null}],"state":"open","locked":false,"assignees":[{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":null,"comments":2,"created_at":"2022-12-06T22:38:46Z","updated_at":"2022-12-07T20:40:45Z","closed_at":null,"assignee":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"The new spawn method for multiprocessing makes opensesame on debian bullseye (python 3.9) and bookworm (python 3.10) unusable on my machines.\r\nThe main window crashes but it keeps the experiment running for some time. This happens both with psychopy and expyriment as backend.\r\n\r\nWhen I comment out the new method in the following commit, everything works fine again:\r\n\r\n```\r\n\t# Appears more stable when running experiments on Linux, where fork is the \r\n\t# default multiprocessing method.\r\n\t#multiprocessing.set_start_method('spawn')\r\n\t# solves a library conflict for Linux with Nvidia drivers\r\n\t# See https://forum.qt.io/topic/81328/ubuntu-qopenglshaderprogram-shader-program-is-not-linked/2\r\n```\r\n \r\ncommit: https://github.com/open-cogsci/OpenSesame/commit/b42a91feeb341fe5d35e5b20ed21a9a463a327f7\r\n\r\n\r\nSome relevant debug info:\r\n\r\n  ```\r\nINFO:traitlets:KernelRestarter: restarting kernel (1/5), keep random ports\r\n  WARNING:traitlets:kernel restarted\r\n  WARNING:traitlets:kernel died: 3.0001235008239746\r\n  Bad file descriptor (src/epoll.cpp:145)\r\n  Aborted (core dumped)\r\n  \r\n  /usr/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 9 leaked semaphore objects to clean up at shutdown\r\n    warnings.warn('resource_tracker: There appear to be %d '\r\n\r\n```\r\n\r\nThe last error seems like a bug in python 3.10\r\n\r\nMachines I tested were nvidia and intel gpu machines.","closed_by":null,"reactions":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/782/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/782/timeline","performed_via_github_app":null,"state_reason":null,"pinned_comment":null}