With 0.4.1 was all ok, but with 0.4.2 when i start the miner in get -Auto-detect AMD OpenCL platform 0 and it closes the miner
Hmm. We did rewrite a few things to support mixed Linux rigs with multiple opencl platforms.
Would you mind telling me your os+driver+gpus and your full (anonymized) command line?
I am on Windows 10, 6 x rx570 8gb, driver 19.1.1 and the command line: teamredminer.exe -a cnr -o stratum+tcp://europe.cryptonight-hub.miningpoolhub.com:20580 -u -p x --watchdog_script=watchdog.bat
I saw similar behavior (though it was on linux, and was a hang rather than a close) w/ 0.4.2 right after the platform detect. Seemed to be that it didn't like the oc/uv of one of my GPUs - even though it had been ok w/ previous versions. Try including the -d param to test each of your GPUs individually.