Jump to content
Stéphane Wierzbicki

Unresponsive IDE and massive memory leaks with RIO

Recommended Posts

Hello @Uwe Raabe,

 

I'm getting an unresponsive IDE and massive memory leaks after editing a property with MMX. 

This is happening on RIO IDE.

 

I've attached a small mp4 video showing you my problem.

I'm basically :

- Opening a Delphi project

- Opening a unit

- Scrolling to the desired property and pressing "CTRL E"

- Edit property dialog is opening. I then press cancel button

 

Actually : less than 1 seconds later IDE become unresponsive. Task manager is showing a BDS.exe process at more than 27% (I do have a quad core CPU) and eating 4Mb memory every seconds

Expected : a working IDE 😉

 

I tryed to disabled all other experts (GExpert, Madshi madexcept...) in vain.

 

Regards,

Edited by swierzbicki

Share this post


Link to post

I wasn't able to reproduce it with these steps on a simple new project. Can you try it again with a new VCL Forms project with a plain Integer property added to the form? I just want to narrow it down to the installation/settings or the actual source file causing this error.

Share this post


Link to post
25 minutes ago, Uwe Raabe said:

Can you try it again with a new VCL Forms project with a plain Integer property added to the form?

This is perfectly working with an empty VCL form project.

 

I guess that the problem comes from my unit. I've attached it. I don't have this problem with Delphi Tokyo.

 

 

SicsBaseConvertor.pas

Edited by swierzbicki

Share this post


Link to post

My first impression is that the Rio IDE is sluggish.  Resizing the frame of the IDE from left border is jumpy as heck (Single 4K display).

Share this post


Link to post

Yes, just look at the video. You will notice that even the desktop will be displayed a few milliseconds... 

 

I really hope that Uwe will fix this MMX issue and that EMB will fix those nasty drawing bottleneck... 

Edited by swierzbicki

Share this post


Link to post
15 minutes ago, swierzbicki said:

I really hope that Uwe will fix this MMX issue

I am sorry, but even with your source unit I am not able to reproduce it here.

Share this post


Link to post

First I would like to use the same settings as in your system. Can you export the MMX registry key for me? The key base is HKEY_CURRENT_USER\Software\Raabe Software\MMX\13.0 (I know about the 13.0 as an open issue in the beta).

 

Then, if I still cannot reproduce it here, I will try to compile a special version with some logging. Unfortunately, as long as I have no clue about what is happening here, that can only be some shots in the dark.

 

I am also a bit baffled that no one else reports a similar behavior. Can you rule out any other non-standard addin or a non-standard Delphi installation?

Share this post


Link to post

I really don't know why I'm getting this. 

Process monitor show me this horrible thing :

 

bds.exe is endlessly parsing all search path for .pas files and .dcu as you can see there (this last 15min ....) 

 

image.thumb.png.db304064dce6b5ca9e3ca894db02f8cc.png

 

And more scary : look the blue selection ( bds is using C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\Borland.Studio.ToolsAPI.tlb )

 

image.thumb.png.dae39ad117ac6329db7d1a487230fed0.png

MMX.reg

Edited by swierzbicki

Share this post


Link to post

did you install delphi for all users or for one user? what if you start it as administrator? There are a lot of access denied entrys.

Edited by Attila Kovacs

Share this post


Link to post
2 minutes ago, Attila Kovacs said:

did you install delphi for all users or for one user? what if you start it as administrator? There are a lot of access denied entrys.

I've used the default install options (like I did for years now).

I do of course have admin rights.

 

All my problems disseapers after renaming C:\Program Files (x86)\Embarcadero\Studio\19 to C:\Program Files (x86)\Embarcadero\Studio\----19.0

 

 

Share this post


Link to post
6 minutes ago, Lars Fosdal said:

I disabled theming, and the UI became quite a bit more responsive.

This is an issue with IDE. It is using Borland.Studio.ToolsAPI.tlb from Delphi Tokyo. If you look at my previous screenshots you will this bds is using C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\Borland.Studio.ToolsAPI.tlb

 

No problem since I renaming the Delphi Tokyo installation folder...

 

Ps : I did reinstall Delphi Tokyo AFTER installing Delphi RIO. Both using Web installer...

Edited by swierzbicki

Share this post


Link to post

Strange. Also, on a fresh windows, Rio installer creates a ...BDS\19.0 registry entry too. It's empty, but this means they have places where the path is still from tokyo.

Edited by Attila Kovacs

Share this post


Link to post

 I've tried tried to re-register all tlb files again with tregsrv 

 

18/11/18  15:55            11.552 Borland.Build.Tasks.Common.tlb
18/11/18  15:55             1.964 Borland.Build.Tasks.Cpp.tlb
18/11/18  15:55             1.832 Borland.Build.Tasks.Delphi.tlb
18/11/18  15:55            59.372 Borland.Studio.Interop.tlb
18/11/18  15:55           196.728 Borland.Studio.ToolsAPI.tlb
19/11/18  00:55             8.972 Embarcadero.Studio.Modeling.tlb
18/11/18  15:55             3.324 stdvcl40.tlb

 

I've also correctly renamed Tokyo folder.

This didn't help neither.

 

Here are screenshot of process monitor having these filters :

Process name is bds.exe

Path contians 19.0

 

So as soon as I start Rio here is what we can get  

image.thumb.png.c8eb254220c28b550e98098f46cbaff0.png

 

bds.exe is using wrong path :

 

c:\program files (x86)\embarcadero\studio\19.0\Bin\etm.exe

 

insteand of

 

c:\program files (x86)\embarcadero\studio\20.0\Bin\etm.exe

Edited by swierzbicki

Share this post


Link to post

Can you please check the registry entries under HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{FDAED0FF-DD92-42C8-BB2C-F1759632FDB8}\InprocServer32?

Especially the version values for Assembly and RuntimeVersion?

Share this post


Link to post
4 minutes ago, Uwe Raabe said:

Can you please check the registry entries under HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{FDAED0FF-DD92-42C8-BB2C-F1759632FDB8}\InprocServer32?

Especially the version values for Assembly and RuntimeVersion?

I don't have this regestry entries

Share this post


Link to post

Well, that is strange! The {FDAED0FF-DD92-42C8-BB2C-F1759632FDB8} is the CLSID value found under HKEY_CLASSES_ROOT\Borland.Studio.ToolsAPI.BorlandIDE. Do you have a different value there?

 

Please check the RootDir entry in HKEY_CURRENT_USER\Software\Embarcadero\BDS\20.0, too.

 

I get the feeling that your installation is completely borked.

Share this post


Link to post
14 minutes ago, Uwe Raabe said:

Well, that is strange! The {FDAED0FF-DD92-42C8-BB2C-F1759632FDB8} is the CLSID value found under HKEY_CLASSES_ROOT\Borland.Studio.ToolsAPI.BorlandIDE. Do you have a different value there?

 

Please check the RootDir entry in HKEY_CURRENT_USER\Software\Embarcadero\BDS\20.0, too.

 

I get the feeling that your installation is completely borked.

image.png.199be5fdd8b635f6db0a2840396e91d7.png

 

image.thumb.png.40f49728e00b864e10437e31982a5d34.png

Share this post


Link to post

So can you find that CLSID {FDAED0FF-DD92-42C8-BB2C-F1759632FDB8} anywhere else if not under HKEY_CLASSES_ROOT\Wow6432Node\CLSID?

Share this post


Link to post
2 hours ago, Uwe Raabe said:

So can you find that CLSID {FDAED0FF-DD92-42C8-BB2C-F1759632FDB8} anywhere else if not under HKEY_CLASSES_ROOT\Wow6432Node\CLSID?

I finally found it :

 

image.thumb.png.6bceea84a7c160580a970ae12fc23448.png

Share this post


Link to post

Hi @swierzbicki,

 

Did you install with the ISO installer, or the GetIt installer?

 

I'm not certain from the name "swierzbicki" who's behind the account :) Were you on the beta and did you install any beta builds on this same machine?

 

Cheers,

 

David

 

Share this post


Link to post
14 minutes ago, swierzbicki said:

I finally found it :

Fine! There should be several subkeys for each Delphi version. Here is how it looks on my system:

image.thumb.png.14f1b32dce85b99d31745328f129b8db.png

 

Please make sure that the entries in InprocServer32 match the corresponding values found in the 26.0.0.0 subkey.

image.thumb.png.39ebbc2e400515072e280ea0b02b4dcd.png

Share this post


Link to post
22 minutes ago, David Millington said:

Hi @swierzbicki,

 

Did you install with the ISO installer, or the GetIt installer?

 

I'm not certain from the name "swierzbicki" who's behind the account 🙂 Were you on the beta and did you install any beta builds on this same machine?

 

Cheers,

 

David

 

Hi David,

 

Thank you for jumping in.

 

I only installed from the GetIt installer.

Well, swierzbicki stand for Stephane WIERZBICKI (you should find me in your records). I was on the beta and I did install all beta builds on this very same machine.

 

Regads,

 

Ps : after installing Delphi RIO with GetIt installer :

I did uninstall Delphi Tokyo (previously installed with ISO) and remove all BDS\19.0 keys (HKCU and HKLM)

- I did install Delphi Tokyo again with GetIt installer

Edited by swierzbicki

Share this post


Link to post
1 hour ago, Uwe Raabe said:

Fine! There should be several subkeys for each Delphi version. Here is how it looks on my system:

image.thumb.png.14f1b32dce85b99d31745328f129b8db.png

 

Please make sure that the entries in InprocServer32 match the corresponding values found in the 26.0.0.0 subkey.

image.thumb.png.39ebbc2e400515072e280ea0b02b4dcd.png

Uwe, does it makes sense if you export me those keys?

 

As you see I don't have even Tokyo keys... 

 

Regards 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×