PIO esp32 project, infinite RAM consumption on build

Hi!
I am trying to compile a project that was compiled previously successfully but now does not work anymore. At the time it compiled in about 2 minutes with sane RAM usage.

Now The project runs this command:

zweieuro   14761   14678 99 13:43 ?        00:05:37 /home/zweieuro/.platformio/packages/tool-cmake/bin/cmake -D ESP_PLATFORM=1 -D BUILD_PROPERTIES_FILE=/home/zweieuro/Documents/work/proj/.pio/build/selectionDev/build_properties.temp.cmake -D COMPONENT_PROPERTIES_FILE=/home/zweieuro/Documents/work/proj/.pio/build/selectionDev/component_properties.temp.cmake -D COMPONENT_REQUIRES_FILE=/home/zweieuro/Documents/work/proj/.pio/build/selectionDev/component_requires.temp.cmake -P /home/zweieuro/.platformio/packages/framework-espidf/tools/cmake/scripts/component_get_requirements.cmake

indefinitely eating up all of my ram (32GB max) and then just crashes. What’s going on here? I am using the same esp idf compiler and version since I fixed them inside .ini.

ini:

[platformio]
default_envs = selectionDev

[env]
platform = espressif32@6.3.0;  ESP-IDF v5.0.2 <-- todo get this to v5.1.1 (espressif version, 6.3.0 is the pio port)
board = esp32dev
framework = espidf
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board_build.partitions = partition_table.csv
board_build.flash_mode = qio
build_flags = 
	-D BOARD_HAS_PSRAM
	-D CONFIG_SPIRAM_CACHE_WORKAROUND
	-D SOFTWARE_VERSION=10
	-D HARDWARE_VERSION=3
upload_port = /dev/ttyUSB*
monitor_port = /dev/ttyUSB*


[env:selectionDev]
build_type = debug
build_flags = 
	${env.build_flags}
	-D SIO_BACKEND='"-"'
	-D DEBUG_SOCKETIOCLIENT

[env:selectionProd]
build_type = debug ;Bug under review: https://github.com/espressif/esp-idf/issues/2561 
build_flags = 
	${env.build_flags}
	-D SIO_BACKEND='"-"'
	-D DEBUG_SOCKETIOCLIENT

What can cause an infinite ram usage?
I have tried deleting ~/.platformio, ./pio (in the project), and restarting but nothing helps.
I can’t compile my project anymore ?

Any help would be greatly appreciated!

Nevermind, i added “ConnectedHomeIp” as a test to a branch of my project which caused some kind of infinite compile loop. removing it fixed it so this is not a pio error