“PlatformIO: Rebuilding IntelliSense Index” begins on VSCode startup, quickly consumes all RAM (up to 32 GB), and causes the computer to crash. Unfortunately this does not produce any logs since the computer hard-crashes.
Likewise, if the Rebuild python task is ended via task manager and a build is attempted (compiling Marlin firmware), the build process will cause the same issue.
I’m guessing the issue is related to the 6.0.0 core since I haven’t had any issues in the past with the same code, but downgrading to 5.2.5 with
pip install -U "platformio==5.2.5"
returns the following error:
Obsolete PIO Core v5.2.5 is used (previous was 6.0.0) Please remove multiple PIO Cores from a system:
I noticed other users compiling marlin code have had similar issues as well, but since the “Rebuilding IntelliSense Index” process has the same issue I’m guessing its unrelated to the code I’m compiling. I’ve also tried reinstalling python. Is there a solution I’m missing, or something I’m doing wrong to downgrade to 5.2.5?
maybe you need to remove the PIO Core v6.0
CC @ivankravets
Does this occurr with any project or a specific one? Can you share that project if possible?
1 Like
Do you use Marlin project? Similar issue
opened 05:58AM - 17 May 22 UTC
closed 01:54PM - 17 May 22 UTC
help wanted
What kind of issue is this?
I tried to compile Marlin from my personal fork h… ttps://github.com/larroy/Marlin/tree/pedro_bugfix which was working fine in platformIO for lpc1769
After a few days, with no changes to the code (tried several revisions back which I had previously compiled) scons.py keeps ballooning and using all the memory available. This happened in Windows 10 and also Linux. I tried uninstalling Platform IO several times, cleaning up data and home directories, switching to PIO in Linux...
This is the process which is eating all the memory:
```
piotr@panther:0: ~/d/Marlin [(HEAD detached at d6f21475a1)]> ps aux | grep scons
piotr 15942 99.8 23.6 20527848 15540704 pts/3 R+ 22:54 1:16 /home/piotr/.platformio/penv/bin/python /home/piotr/.platformio/packages/tool-scons/scons.py -Q --warn=no-no-parallel-support --jobs 32 --sconstruct /home/piotr/.platformio/penv/lib/python3.9/site-packages/platformio/builder/main.py PIOVERBOSE=0 ISATTY=1 PIOENV=TFBDMTc2OQ== PROJECT_CONFIG=L2hvbWUvcGlvdHIvZGV2ZWwvTWFybGluL3BsYXRmb3JtaW8uaW5p PROGRAM_ARGS=W10= PLATFORM_MANIFEST=L2hvbWUvcGlvdHIvLnBsYXRmb3JtaW8vcGxhdGZvcm1zL254cGxwYy1hcmR1aW5vLWxwYzE3NngvcGxhdGZvcm0uanNvbg== BUILD_SCRIPT=L2hvbWUvcGlvdHIvLnBsYXRmb3JtaW8vcGxhdGZvcm1zL254cGxwYy1hcmR1aW5vLWxwYzE3NngvYnVpbGRlci9tYWluLnB5
piotr 16356 0.0 0.0 8552 2440 pts/1 S+ 22:55 0:00 grep --color=auto scons
```
In windows is also Python but I don't know how to see the commandline.
- [ ] **Question**.
This issue tracker is not the place for questions. If you want to ask how to do something,
or to understand why something isn't working the way you expect it to,
use [Community Forums](https://community.platformio.org) or [Premium Support](https://platformio.org/support)
- [ ] **PlatformIO IDE**.
All issues related to PlatformIO IDE should be reported to appropriate repository:
[PlatformIO IDE for Atom](https://github.com/platformio/platformio-atom-ide/issues) or
[PlatformIO IDE for VSCode](https://github.com/platformio/platformio-vscode-ide/issues)
- [ ] **Development Platform or Board**.
All issues (building, uploading, adding new boards, etc.) related to PlatformIO development platforms
should be reported to appropriate repository related to your hardware
https://github.com/topics/platformio-platform
- [ ] **Feature Request**.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
- [ ] **PlatformIO Core**.
If you’ve found a bug, please provide an information below.
*You can erase any parts of this template not applicable to your Issue.*
------------------------------------------------------------------
### Configuration
**Operating system**: Windows 10, Linux Ubuntu 21.10
**PlatformIO Version** (`platformio --version`): v2.4.3
```
piotr@panther:0: ~> .platformio/penv/bin/platformio --version
PlatformIO Core, version 6.0.0
```
### Description of problem
See above
#### Steps to Reproduce
1. Open project
2. Go to PIO tab,
3. Build for LPC1769
### Actual Results
Out of memory.
### Expected Results
Successful build
### If problems with PlatformIO Build System:
**The content of `platformio.ini`:**
See https://github.com/larroy/Marlin/blob/pedro_bugfix/platformio.ini
**Source file to reproduce issue:**
See linked branch above.
### Additional info
Could you try to re-run pio upgrade --dev
. Does it work now?
Upgrading to core version 6.0.1 fixed the issue, thank you for the fast response!
1 Like