Title: Segmentation Fault When Adding SofaPython3 as Required Plugin · Issue #490 · sofa-framework/SofaPython3 · GitHub
Open Graph Title: Segmentation Fault When Adding SofaPython3 as Required Plugin · Issue #490 · sofa-framework/SofaPython3
X Title: Segmentation Fault When Adding SofaPython3 as Required Plugin · Issue #490 · sofa-framework/SofaPython3
Description: Problem Adding SofaPython3 as a RequiredPlugin causes a segmentation fault when running Python directly. Description I am writing a Python script for a scene I created, but I consistently encounter a segmentation fault at the finishing s...
Open Graph Description: Problem Adding SofaPython3 as a RequiredPlugin causes a segmentation fault when running Python directly. Description I am writing a Python script for a scene I created, but I consistently encounter...
X Description: Problem Adding SofaPython3 as a RequiredPlugin causes a segmentation fault when running Python directly. Description I am writing a Python script for a scene I created, but I consistently encounter...
Opengraph URL: https://github.com/sofa-framework/SofaPython3/issues/490
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segmentation Fault When Adding SofaPython3 as Required Plugin","articleBody":"### Problem\nAdding `SofaPython3` as a `RequiredPlugin` causes a segmentation fault when running Python directly.\n\n**Description**\nI am writing a Python script for a scene I created, but I consistently encounter a segmentation fault at the finishing stage.\n\nWe identified that the issue occurs when including the `SofaPython3` plugin as a `RequiredPlugin`.\n\n - `runSofa` seems to pre-load plugins, including `SofaPython3`, and adding it again in `RequiredPlugin` does not cause issues.\n\n - However, when running a standalone Python script that uses Sofa, explicitly adding `SofaPython3` as a `RequiredPlugin` leads to a segmentation fault.\n\n**Steps to reproduce**\nExample script: `test.py`\n```python\nimport Sofa\nimport Sofa.Core\n\nroot = Sofa.Core.Node('rootNode')\nroot.addObject(\n 'RequiredPlugin', name='SofaPython3 Sofa.Component.AnimationLoop'\n)\n```\nRunning the script: `python test.py` results in a segmentation fault.\n\nRemoving `SofaPython3` from the `RequiredPlugin` list prevents the crash.\n\n**Expected behavior**\nListing `SofaPython3` as a `RequiredPlugin` should be valid and not cause a crash, as it is an intuitive way to declare dependencies.\nAt least, a warning should be given beforehand to indicate potential conflicts or redundant plugin loading.\n\n\n**Environment**\n\n - OS: Ubuntu 24.04\n\n - Python Version: Python 3.12.3\n\n - SOFA Version: 24.12\n\n - SofaPython3 Version: 24.12","author":{"url":"https://github.com/antennae","@type":"Person","name":"antennae"},"datePublished":"2025-03-27T12:13:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/490/SofaPython3/issues/490"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5dd342fe-deb4-6afd-4713-8d50df878aaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 960A:3DF548:C6CC6C:112306B:697A76CA |
| html-safe-nonce | d9b529f29e876ca0bbc6de98ce7e02041d45df78ddd6d8cbb6d9cc08381106dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjBBOjNERjU0ODpDNkNDNkM6MTEyMzA2Qjo2OTdBNzZDQSIsInZpc2l0b3JfaWQiOiIzODk4MjMwODA0ODgyMDI4MjM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0af835fd4e5d43149d4e60ee71c8d2af4f249cab5646ef330cbccca51a23df9a |
| hovercard-subject-tag | issue:2952762106 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sofa-framework/SofaPython3/490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df2970b98b36ad610ca7b05e0f01a51e5ce1c27f589493508a7412530fa9941a/sofa-framework/SofaPython3/issues/490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df2970b98b36ad610ca7b05e0f01a51e5ce1c27f589493508a7412530fa9941a/sofa-framework/SofaPython3/issues/490 |
| og:image:alt | Problem Adding SofaPython3 as a RequiredPlugin causes a segmentation fault when running Python directly. Description I am writing a Python script for a scene I created, but I consistently encounter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antennae |
| hostname | github.com |
| expected-hostname | github.com |
| None | a9d1eabfb8cf0cb510bcf598032681675ad29b7ee4cb3bfb9a0a088a12803628 |
| turbo-cache-control | no-preview |
| go-import | github.com/sofa-framework/SofaPython3 git https://github.com/sofa-framework/SofaPython3.git |
| octolytics-dimension-user_id | 11028508 |
| octolytics-dimension-user_login | sofa-framework |
| octolytics-dimension-repository_id | 260159147 |
| octolytics-dimension-repository_nwo | sofa-framework/SofaPython3 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 260159147 |
| octolytics-dimension-repository_network_root_nwo | sofa-framework/SofaPython3 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31bacebc3305d80609c1b175449c3d314bd1a855 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width