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

Pixi shell requires edits to .devcontainer.json files to avoid crashing #42

Open
Robinlovelace opened this issue Sep 19, 2024 · 4 comments

Comments

@Robinlovelace
Copy link

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.

@Robinlovelace
Copy link
Author

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

@Robinlovelace
Copy link
Author

And demo of how to reproduce this:

image

@Robinlovelace Robinlovelace changed the title Pixi shell not available in devcontainer Pixi shell requires edits to .devcontainer.json files to avoid crashing Sep 20, 2024
@Robinlovelace
Copy link
Author

Name updated with more details on the issue here: prefix-dev/pixi#2088

Robinlovelace added a commit to Robinlovelace/cross_language_projects that referenced this issue Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant