Comments (5)
For now, I think disabling the warning is the easiest thing to do (this is pretty easy using a warning filter). In the past I've mentioned potentially using the asyncio framework in Python to replace this usage of os.fork()
if we switch to TCP for communicating with the Python process, maybe worth considering if it avoids potential deadlocks? I'm not even completely sure why this fork gets used, but ripping out the usage might be kinda overkill in this case.
from prairielearn.
Where are you seeing this error, are you running things locally? I didn't think that the PL servers were on 3.12 yet.
from prairielearn.
I was able to trace this back to pyarrow
, which spins up a thread for jemalloc_bg_thd
. How I was able to do this:
- Run a PL container
- Pop another shell into it
- Run
top | grep python3
to identify the process PID - Run
top -H -p <PID>
to see all the threads, which shows the following:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2015 root 20 0 1682688 304124 87808 S 0.0 1.9 0:01.92 python3
2046 root 20 0 1682688 304124 87808 S 0.0 1.9 0:00.00 jemalloc_bg_thd
As Eliot points out, this isn't yet a problem, as we don't support Python 3.12. However, it will be a problem as soon as we decide to support that version. Probably the right thing to do is to disable this specific deprecation warning?
In principal pyarrow
allows us to change the memory pool implementation that's used. I tried pa.set_memory_pool(pa.system_memory_pool())
, but that didn't stop the jemalloc
thread.
from prairielearn.
fork()
is used to ensure a clean execution environment every time we execute code. We will not be getting rid of it.
from prairielearn.
Where are you seeing this error, are you running things locally? I didn't think that the PL servers were on 3.12 yet.
Right, I am using the native development setup for PL. I use archlinux, so my packages are rolling. I can just ignore the warnings in Python but I wasn't sure if error: Unexpected STDERR data
meant a hard stop somewhere.
from prairielearn.
Related Issues (20)
- Validate sync status before performing JSON edits
- Allow aliases for sharing names HOT 1
- Question authorship tracking
- Requirements for storing sharing status in JSON files
- pl-richtext-editor should have a word/character count as students type HOT 2
- pl-richtext-editor element does not mark submissions as invalid if a previous submission was valid HOT 10
- Enable keyboard accessibility for pl-rich-text-editor HOT 1
- Non-existant function referenced in `sync_topics.sql` HOT 1
- `pl-richtext-editor` swallows extra line breaks HOT 9
- Arc vector object in pl-drawing has incorrect button and title
- Stop dataframe digits converting to Scientific Notation HOT 5
- pl-checkbox doesn't respect max-correct or max-incorrect (in some? cases) HOT 1
- File processes do not handle URI decoding correctly
- Review consistency of file name restrictions in instructor file operations
- Bug: handling of line breaks in rubric item settings
- yarn install failed HOT 2
- bug: Sync code for shared questions doesn't check if question has been deleted
- bug on crash when cannot found course path and saml still try to work when disable. HOT 2
- Download all logs from assessment in CSV format as a ZIP
- node-gyp failures in some builds may warrant adding the dependency manually HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prairielearn.