Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Bug reports => Topic started by: ellick on 04 12 2020, 19:26:10

Title: Miranda crashing every time something is pasted into a message window
Post by: ellick on 04 12 2020, 19:26:10
This started happening just today, December 4 2020.   After being notified of a lot of updates, I let miranda auto update and now the program crashes every time I paste text into a contact's message window.  It's happening on both Facebook and ICQ protocols.
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 05 12 2020, 13:29:44
ellick,
is crash log available? (if you have a CrashDumper plugin, of course. if you haven't, you can grab it here: https://wiki.miranda-ng.org/index.php?title=Crash_reports/en#Install_CrashDumper)
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 06 12 2020, 01:16:35
I installed the crashdumper plugin and enabled the developers release with debug symbols option.  I had been using only stable releases before this.  I can replicate the crash every time with either.   Unfortunately the crashlog file that's generated says it's 0 bytes.    I thought I could open it in notepad and at least see something but it's blank.

This is the 32bit version of Miranda NG on windows 10.  I had a backup of the previous version before these updates.  I reverted to that and pasting text into message windows works fine again.
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 06 12 2020, 12:41:45
ellick,
empty crash log means that crash is too hard, like stack overflow etc.
what you can try to do is to compact that profile (main menu -> Database -> Compact), it might help
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 06 12 2020, 13:55:17
i ran the compact of the database.  It was instant but the crash log is still 0bytes when I replicate the crash by pasting some text into a message window.   
I wish i could give more info.  I did notice the miranda32.exe file was updated along with a lot of other things.   If i revert to my backup of Miranda, NG  the problem disappears.  The backup is v0.95.12.1 build #23277     
The problem build is v0.95.13 build #23507 but it's now the alpha, developers build since I tried upgrading to that.  It was a stable build that caused the problem.
Pasting text into message windows is something I do a lot so I noticed it almost instantly. 
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 06 12 2020, 15:16:14
ellick,
What about new stable build, v0.95.12.1 build #23280? Does it fail?

Also, attach your VersionInfo, please, I strongly suspect that some application might install its own hook to Miranda's window
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 06 12 2020, 16:32:07

Since this is a portable install, I save the whole folder to back it up. 

v.0.95.12.1 build 23277   works fine.   No problem pasting text to any message windows.

As soon as I let the plugin updater auto-update to
v0.95.12.1 build 23280  it crashes every time I paste text to a message window.

version info for the 23280 build file attached:
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 06 12 2020, 16:55:41
ellick,

well, I advice you to remove all these old files first:

Unloadable Plugins (7):
¤ AutoLoadAvatars.dll v.0.0.0.0 [24 Oct 2004 3:05:16] - <unknown>
¤ changeinfo.dll v.0.0.0.0 [16 Jun 2005 13:39:02] - <unknown>
¤ contactvisibility.dll v.0.0.0.0 [15 May 2003 14:34:38] - <unknown>
¤ help.dll v.0.0.0.0 [19 Dec 2006 23:02:26] - <unknown>
¤ ImgLib.dll v.0.0.0.0 [22 Oct 2004 6:11:28] - <unknown>
¤ loadavatars.dll v.0.0.0.0 [19 Dec 2006 23:02:34] - <unknown>
¤ PNGImg.dll v.0.0.0.0 [19 Jul 2004 12:29:00] - <unknown>

I don't know if they could affect Miranda.

Second, you cut out the section of loaded dlls. You can skip all modules from C:\Windows\System32 (or whatever they are located), but I need list of all another modules which are loaded inside your Miranda
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 06 12 2020, 17:55:24
Sorry, i didn't realize "store to file" from the version menu would cut anything.  I chose the "show with DLLs" option this time.

I will remove those files you suggest also.  My miranda folder is VERY fold so I was sure a lot of things are probably out of date.  i think I originally chose to upgrade to NG from within the old version.  I only keep it because I have it customized to my liking and there's no way I'd remember how to do it all again.  :D

Thank you for your help with this. Since no one else is mentioning this bug It may be something particular to me

edit:
I deleted all the dll files you listed above but build 23280 still crashes when pasting text.
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 06 12 2020, 18:07:45
ellick,
My miranda folder is VERY old so I was sure a lot of things are probably out of date.
Yes, cause only me have been making commits into it since 2004 :) so people sometimes update from ancient versions of Miranda, even from ANSI ones for Windows 98.

I deleted all the dll files you listed above but build 23280 still crashes when pasting text.
Okay, then I have to ask you if you have any experience with debugging? :) Do you have Visual Studio or Windows Debugging Tools from Windows SDK at least?
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 06 12 2020, 18:16:55
I do not have any experience with debugging.  :/   but my miranda folder definitely qualifies as ancient.  I was using it in windows 98 but long ago converted away from ANSI  :D

I just tried a test by unchecking every dll in the plugins list to see if any old plugins might be an issue

so the only ones still checked are these which can't be unchecked
dbchecker.dll
dbx_mdbx.dll
dbx_mmap.dll

I left facebook.dll checked so I could still message someone
I then tried the same test with only icq.dll checked

even like this it crashes as soon as I try to paste any text into a message window.

Would it help to run the update on my backup folder again and only allow the main miranda32.exe file to update?  to rule that out?

edit:
I tried the above.  I ran the update on the build 23277 but this time only let the main core miranda32.exe file update.   It still crashes
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 06 12 2020, 18:32:57
Would it help to run the update on my backup folder again and only allow the main miranda32.exe file to update?
In fact, nope, because Miranda32.exe is just a stub for loading Miranda's core... it does nothing

Okay, let's try to settle this case without debugger first. Do the following:
- make a copy of your profile;
- launch Miranda with that copy;
- remove all accounts from a copy;
- compact database to be sure that it doesn't contain passwords etc (main menu - Database - Compact);
- zip this database and send it to me (put it on Google drive/OneDrive/DropBox/whatever and send me a link in a private message).
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 06 12 2020, 19:56:48
Thanks for your help, ghazan.  I think i'm going to just delete the whole thing and start over finally.  It's been too long on this profile, I guess.

 I can't even get the database to compact without errors and no matter what I do, the 64bit version won't run at all.  It keeps telling me it needs visual C++ libraries then offers a download to install.  I go to install that and it tells me it can't because it's already there.  on and on.    Just too many problems with it
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 06 12 2020, 20:14:22
Ok!
v0.95.12.1 build 23280  64bit works fine starting from scratch but boy, oh boy do I hate the default look of this now.      :'(  Time to get customzing 
Thanks again for your help, ghazan.
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 07 12 2020, 17:59:04
ghazan,  I thought I'd let you know how this turned out.   I think my problem is from the newest scriver plugin.   I installed a fresh installation of Miranda NG 64bit and while customizing it I realized I had been using scriver.  I prefer the blinking icon message notification to the popups and tray notification of tabsrmm. 

Anyway, I installed scriver, stable version and all seemed fine.   Pasting test into message windows worked.   I noticed I was missing one customization option which is "close message window on send".   That's been there for years in my old install but the new scriver 64bit didnt have it.  I installed the developers version of scriver, 64bit and the option was there again.   Soon after installing it, I started having the crashes when pasting text again.   I went back to the stable version of scriver and the problem disappeared.

My old miranda 32bit install and the latest developers release of scriver 64bit looks like the picture on the left.   The stable 64bit options are on the right.

(https://i.imgur.com/H9tmZGR.jpg)
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 07 12 2020, 18:38:44
ellick,
Thanks again for your help, ghazan.
you are always welcome

My old miranda 32bit install and the latest developers release of scriver 64bit looks like the picture on the left.   The stable 64bit options are on the right.
Mmm... but these options don't belong neither to Scriver nor to tabSRMM, they are gotten from StdMsg (former SRMM+Chat)
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 07 12 2020, 19:03:31
ellick, you are always welcome Mmm... but these options don't belong neither to Scriver nor to tabSRMM, they are gotten from StdMsg (former SRMM+Chat)



This is odd then. Scriver and history++ are the only plugins I added from the base 64bit install.   Those options shown change depending on which version of the scriver plugin I use.


I just tried disabling the scriver plugin completely and you're right, i get the options showing in the left picture and again the crashing starts if I paste text to a message window.    When I re-enable the scriver plugin, the problem stops. 
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 08 12 2020, 07:11:48
This is odd then. Scriver and history++ are the only plugins I added from the base 64bit install. 
That's ok, but if you uncheck Scriver in Options - Plugins, the default SRMM plugin will be loaded instead of Scriver, because Miranda always needs a message editor, even if no "third-party" plugins are chosen.
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 08 12 2020, 15:23:09
That's ok, but if you uncheck Scriver in Options - Plugins, the default SRMM plugin will be loaded instead of Scriver, because Miranda always needs a message editor, even if no "third-party" plugins are chosen.

Wouldn't that mean that it's the default SRMM editor that's somehow causing my crashing problem?   When I did a clean install of the 64bit portable, TabSRMM was already checked in the plugins list.  I didn't see any crashes when pasting text.   While trying to customize the interface back to how I had it before, I thought I was using scriver since that plugin was in my old install folder.   I must have been using the default SRMM.

As it is now, if I disable both TabSRMM and Scriver in the plugins, It starts to crash again when pasting any text into message windows.  If I use either TabSRMM or Scriver, it's fine.
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ghazan on 08 12 2020, 18:26:56
Wouldn't that mean that it's the default SRMM editor that's somehow causing my crashing problem?
Yes, perhaps. I'll try to reproduce the problem
PS: no, as for me pasting into StdMsg works ok
Title: Re: Miranda crashing every time something is pasted into a message window
Post by: ellick on 09 12 2020, 00:48:11
Yes, perhaps. I'll try to reproduce the problem
PS: no, as for me pasting into StdMsg works ok

I have no idea what it could be then.   Since this is a new install with a new profile it must be some setting or combination of settings causing a problem.   With scriver or tabSRMM it works fine so I guess i'll just have to use those.