Rider self closes after running console application

I have created a new console application which starts with the hello world output.

When I run it, the console window displays it pretty quick and then Rider self closes.

If I add a read key it waits, but as soon as I press a key Rider self closes.

If I run the application from the terminal it works as intended but it seems impossible with Rider.

I have tried with both NET and Mono as runtime in the settings instead of Automatic and I haven't changed anything else from the IDE settings.

Any idea on how to fix it?

0
7 comments

Hi alanxptm

Is there any chance that you use Rider EAP? Could you please try updating it to the latest Rider EAP  (EAP 4 or newer) or a stable version and check if it helps? 

If the issue persists, please collect the full log bundle and share it via our Uploads sever, so we could take a closer look at the case. 
Thank you in advance, and have a great day!

0

Hi Alexandra Guk

When I first launched Rider EAP and created the console app it ran normally and Rider was ok, but after relaunching Rider the issue was present with the same project and others (I'm currently using 2022.1.2), right after the execution Rider self closes.

I've uploaded the log with ID: 2022_10_19_25QRW9wWzq1cmnCBM5sweq

Thank you for looking into this =)

0

Hi alanxptm

Sorry for the delay. Could you please check if there are any java_err* files in your user's folder? 

Do you see any error messages before Rider closes? Could you please as a possible workaround add a new line -Drider.backend.gcserver=false to your VM options? Let us know if that helps.

Thanks! 

0

Hello Alexandra Guk

I don't have any java_err* file and the workaround didn't work following the instructions provided.

I should have tried this before, but when launching Rider from a terminal the issue is not present. It is only when launching the IDE directly. Hope that helps in any way.

I appreciate being able to help. Thanks =)

0

Hi alanxptm

Thank you for the details! Could you please also tell me, how you launch Rider directly? Do you use shortcut or ToolBox? 

0

Hi Alexandra Guk

I have tested these cases with EAP4 and then updated to EAP5 and tested again, results were the same.

Launching from Toolbox: No issue

Launching from Terminal: No issue

Launching from shortcut with Toolbox running: Issue present

Launching from shortcut without Toolbox running: Issue present

I have also uploaded a new log in case that helps with ID: 2022_10_28_BBuTrn1T4nfrr6FLDYAUU8

0

Hi! 

Thank you for all the details. 

I've created an issue for this. Our developers will take a look soon. Please feel free to follow it. 

 

1

Please sign in to leave a comment.