Pixi shell requires edits to .devcontainer.json files to avoid crashing
Opened this issue · 4 comments
I'm not sure this is an issue, feature request, or request for better docs in README. I've opened as a discussion: prefix-dev/pixi#2088
Quick fix would be mention of how to use pixi-based images in .devcontainer.json files.
Reproducible example of things not working as expected:
root@86feefe62143:/workspaces/geocompr# cp /pixi.toml .
root@86feefe62143:/workspaces/geocompr# pixi shell
⠂ updating lock-file [00:00:04] [────────────────────────────────────────] 0/2
. "/tmp/pixi_env_LUn.sh"
root@86feefe62143:/workspaces/geocompr# . "/tmp/pixi_env_LUn.sh"
(my_project) root@86feefe62143:/workspaces/geocompr#
(my_project) root@86feefe62143:/workspaces/geocompr# R
R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-conda-linux-gnu
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_COLLATE failed, using "C"
3: Setting LC_TIME failed, using "C"
4: Setting LC_MESSAGES failed, using "C"
5: Setting LC_MONETARY failed, using "C"
6: Setting LC_PAPER failed, using "C"
7: Setting LC_MEASUREMENT failed, using "C"
*** caught segfault ***
address (nil), cause 'memory not mapped'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Segmentation fault (core dumped)
Source (you can try this in the terminal that pops up): https://github.com/codespaces/new?hide_repo_select=true&ref=1112-test-with-ghcriogeocompxdocker-pixi-r&repo=84222786&machine=basicLinux32gb&devcontainer_path=.devcontainer.json&location=WestEurope
Name updated with more details on the issue here: prefix-dev/pixi#2088
Interestingly Python isn't affected by this issue. Reproducible example pinned to specific versions below can be found here: https://github.com/codespaces/new?hide_repo_select=true&ref=11-demonstrate-issue-with-locales-when-using-pixi-docker-image&repo=858425135&skip_quickstart=true&machine=basicLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&geo=EuropeWest