ModPlug Central

OpenMPT Development (Archive) => Bug Reports => Bug Report Archive => Topic started by: LPChip on January 20, 2010, 22:30:17

Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on January 20, 2010, 22:30:17
Full Version:
OpenMPT v1.17.3.02

Has the bug occured in previous versions? If yes, please specify version(s): (This option is optional, and doesn't need research. But in case you know...)
I have seen this in .54 too I think

Description of the bug:
When I close OpenMPT it sometimes doesn't quit, and the process is still in memory. I know when this happens because I have a loader that first creates a P:\ share, then starts OpenMPT from there, and when OpenMPT is closed, it removes the P:\ share and then the batchfile terminates. If OpenMPT somehow doesn't close correctly (and an mptrack.exe process is still there, the batchfile doesn't terminate either. If I launch another OpenMPT instance, I have 2 mptrack.exe processes.

How often does it happen?:
Hard to say. Not always, but frequently enough. If you want to test it, download my portable batchfile that is in the download section, and start OpenMPT using that everytime you use it. It happens about 1 out of 5 times I think.

How to reproduce (step by step description):
OpenMPT, play songs (I've had it without actually editing) and close OpenMPT using the
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 20, 2010, 22:44:53
I've never encountered this problem, so it could be a plugin that's stuck or something.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Snu on January 21, 2010, 07:42:37
what os are you using? maybe that has something to do with it.
i havnt ever seen mpt hang on exit, tho ill keep an eye out for it.
how often does this happen?
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on January 21, 2010, 08:46:48
Quote from: "Jojo"I've never encountered this problem, so it could be a plugin that's stuck or something.

Could be. I'm using Xlutop Chainer, and it seems buggy in the latest builds.

To describe a few of this buggyness:
- When I use the multi-channel mode, it sometimes gets to a point that one of the channels suddenly stops producing sound for about 2 minutes and then it catches on again. This could very well be a bug in Chainer though, but I don't recall having this in earlier builds prior to .50

- When working, Chainer can sometimes throw in an exception (dispatch). Sometimes plugins in it causes this and I can no longer use the song. I blame the plugins for that though, but I've had once or twice now that with my normal plugin set, I got a dispatch error but After clicking it away, I can work normally like nothing happened.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on January 21, 2010, 08:47:36
Quote from: "Snu"what os are you using? maybe that has something to do with it.
i havnt ever seen mpt hang on exit, tho ill keep an eye out for it.
how often does this happen?

Windows 7 Enterprise, but I've experienced it too with Windows XP 32bit SP3.

Frequency: approx. 1 out of 5 times.
Title: Modplug Tracker Not Exiting
Post by: Really Weird Person on January 21, 2010, 16:10:37
Quote from: "LPChip"When I close OpenMPT it sometimes doesn't quit, and the process is still in memory.

I have seen that happen, though, as you stated, LPChip, it is a rare occurrence. Psst, hey, LPChip, perhaps the developers have Mac OS or Linux installed, so when Modplug Tracker was programmed, it was done in such a way that clicking (or tapping) the X simply closes the window instead of exiting the program itself. :lol:
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 22, 2010, 02:00:41
I have this problem several months ago. This happens to me even without a VST plugin, and i dont reported before because i always think thath is the development version (i'm talking since v1.17.03.02 to the newest)
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on January 22, 2010, 16:22:01
Quote from: "djmakas"I have this problem several months ago. This happens to me even without a VST plugin, and i dont reported before because i always think thath is the development version (i'm talking since v1.17.03.02 to the newest)

What OS are you using? Could be something Vista/7 related...
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 22, 2010, 16:28:55
FYI, I am using Win7 and it is not happening here. Some minimal testcase would really help a lot here..
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 22, 2010, 20:44:39
I'm currently use Windows XP SP3 with the latest updates, .NetFX, my computer does not support at all Win Vista/7.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 22, 2010, 20:56:18
Why would it not support Windows 7?
Title: Modplug Tracker Not Exiting
Post by: Really Weird Person on January 22, 2010, 22:47:27
That is a good question. Most computers do support Windows 7 (even if they do not necessarily support Windows Vista). I would have to guess that if the computer does indeed not support Windows 7, it is an older machine. My recommendation to djmakas is to run the  Windows 7 upgrade advisor (http://www.microsoft.com/windows/windows-7/get/upgrade-advisor.aspx). This will help you know whether or not your computer can run Windows 7.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 23, 2010, 01:17:25
My computer runs slowly Windows 7, I have installed in a separate hard disk, personally I prefer Windows XP. The problem are some graphic issues, (I only have a i865 chipset) intergrated graphics which Win 7 does not support. My PC has only a half GiB of RAM DDR266. In my city it's hard to found another GiB of this memory taking off that this RAM is too expensive.
I would be grateful if someone could tell me how you can configure Windows 7 to have it as fast as possible with the following hardware:

ASRock 775i65G
80GB HDD SATA
Intel 531
512MB RAM DDR266
CMI8731 PCI Sounddevice
Title: Windows XP and Windows 7
Post by: Really Weird Person on January 23, 2010, 06:44:27
Yep, that is definitely an older machine (at least by today's standards, which do not involve the older Pentium line (Pentium 4 and below). Most newer machines have DDR2 RAM and gaming systems are generally equipped with DDR3 RAM. If a computer has a Pentium processor, it is likely a Pentium Dual-core processor. The most likely reason why the video is not working to its fullest is because the graphics processing unit (GPU) (which I would guess is onboard graphics based on the fact that a graphics card is not named) does not support Windows 7. I would recommend replacing the machine unless you are really "attached to" Windows XP. On many computers, Windows 7 may run as fast as Windows XP, but it is more enhanced (in some aspects) than Windows Vista. Actually, depending on what you do, you can purchase a computer with Windows 7 Professional and use Windows XP Mode, which will emulate the Windows XP environment. Windows XP Mode can be downloaded from http://www.microsoft.com/windows/virtual-pc/download.aspx. Do note however that Windows XP Mode requires at least the Professional edition of Windows 7 and requires that virtualization technology is supported by the processor (That does exclude the Intel Atom.) and that it is enabled. Virtualization technology is enabled in the system BIOS.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 23, 2010, 12:07:20
djmakas, as you speak of graphic issues, have you tried turning off Aero?
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 23, 2010, 12:09:15
By default Aero-stile is turned off   :D
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 23, 2010, 12:13:35
Ok... hmm, strange then. But then again, why should one believe M$ that Win7 runs just as well as WinXP on any machine. :P
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 23, 2010, 12:29:01
Is to test the functionality of OpenMPT under Windows 7 (under XP works well) and provide bug reports. It is also to check if this bug occurs in this Windows (I am running the Win 7 Ultimate 30-day trial)
Title: Windows XP and Windows 7
Post by: Really Weird Person on January 23, 2010, 15:58:36
From the way it is described, I am not sure that the Aero interface is supported.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 23, 2010, 16:00:02
Quote from: "djmakas"By default Aero-stile is turned off   :D
...
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 23, 2010, 22:49:39
I have some tests with Win 7 on my computer. This not supported my graphics. When the installation has done, it sets up the Windows 7 Basic theme. Graphic acceleration is weak, and they cannot run a simply old game like Half-Life even render in software mode.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 23, 2010, 22:53:35
Well, you should be aware that software rendering takes up a biiiig amount of CPU time, that's not a good idea. :P
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on January 24, 2010, 11:51:09
Quote from: "djmakas"I have some tests with Win 7 on my computer. This not supported my graphics. When the installation has done, it sets up the Windows 7 Basic theme. Graphic acceleration is weak, and they cannot run a simply old game like Half-Life even render in software mode.

Have you considered buying a better graphics card? Nowadays a simple 3d hardware accelerator card is cheap (unless you aim for the much better cards of course).

I think you can have one for 20 to 50 dollar already. Do check if you need AGP or PCI-Express (cus most likely you'll need AGP)

If of course your computer has an expansion slot at all..
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 25, 2010, 21:31:15
Yeah, it has an AGP 8x slot, I'm looking for a decent video card, I possibly buy it within 2 weeks.
Title: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on January 29, 2010, 21:01:52
Just a reply to let you know that I also have this problem with the 1.18.0.00 build.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on November 06, 2010, 11:45:00
I'm not sure if we should repost this bug in the issue tracker, because it very well might be a Windows related issue. Any thoughts on this?
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on November 08, 2010, 03:30:33
I have tried within the newest versions of OpenMPT. It hangs in a 90 percent, using IT/MPTM module in combinations of Farbrausch V2 VSTi (single) and Angular Momentum VST's. Still testing, I think that it is related to the VST's IMO.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on November 08, 2010, 09:26:16
LPChip told me that he has the same issue with other programs as well. Can you confirm that no other programs have the same issues?
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on November 08, 2010, 11:24:25
I certainly have this with Miranda IM too. I sometimes close miranda, but the container window remains open. Other occasions it closes as it supposes to be.

Perhaps its a bug in one of the dependencies, like MDI or so.

The weird thing about the issue with Miranda is: I always use the same plugins, but doesn't always close completely, so it can't only be related to what is going on. Its almost as if a service hangs. And at work, I even see this with programs like MS Word, Outlook, excel (also others, but these occur more frequently)
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on November 08, 2010, 20:59:07
Here (http://bugs.openmpt.org/view.php?id=37) (~0.5MiB) is a test module (mptm) wich has some vst's. When you close the song, OpenMPT hangs.

Plugins used:
DX Echo (2x)
Synth1 VSTi (2x)
SuperWave P8 (1x)
Farbrausch V2 (single) [1x]

EDIT: test case download redirects to issue tracker.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on November 08, 2010, 21:20:33
Thanks for the test case! I can now sometimes reproduce the problem and moved it to the Issue Tracker: http://bugs.openmpt.org/view.php?id=37
I hope you don't mind that I attached the test file there as well (for future reference - nice clip btw ;)).
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Really Weird Person on November 09, 2010, 04:00:50
Quote from: LPChipI certainly have this with Miranda IM too. I sometimes close miranda, but the container window remains open. Other occasions it closes as it supposes to be.

I am guessing that you are referring to the conversation window, not the contact list, because the contact list stays open for you (though the windows are independent of each other, so you can close either of them with out the other closing). If they are both closed, the icon remains in the notificaion area. Something that I find kind of odd though is how it has a tendency to sign the user out by itself.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on November 09, 2010, 04:41:22
Quote from: Jojo on November 08, 2010, 21:20:33
[...] I hope you don't mind that I attached the test file there as well (for future reference - nice clip btw ;)).

Haha, thanks!  ;D

PS: Does this bug will be fixed soon? (With hope of ;))
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on November 09, 2010, 07:55:07
I have no idea, and by that I also mean "I have no idea how to fix it".
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Really Weird Person on November 09, 2010, 20:59:03
I suppose that something you could try is "Googling" it (i.e., doing a Web search, though it does not necessarily have to be with Google, although that is probably the most commonly used search engine on the Web).
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on November 10, 2010, 08:34:57
Quote from: Really Weird Person on November 09, 2010, 20:59:03
I suppose that something you could try is "Googling" it (i.e., doing a Web search, though it does not necessarily have to be with Google, although that is probably the most commonly used search engine on the Web).

I have already googled for this problem before I made the bug request. The only thing I see is stuff like: yeah, this happens to me too. Or this is windows related, I switched to linux. Not really helpfull.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Really Weird Person on November 10, 2010, 23:05:27
If it is indeed Windows related, then switching to Linux wouldn't help, because you would still be emulating Windows to run Modplug Tracker anyway (since there is no version of Modplug Tracker for Linux that I am aware of).
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on November 11, 2010, 06:18:30
Can you please stop talking nonsense? I have confirmed that this issue can happen with certain combinations of VST plugins, so there's no need to ponder about "googling" or "switching to Linux" (as using Wine in fact CAN help). The problem, as I was able to reproduce it, is related to the audio thread not being terminated properly, and theoretically this could just happen with other applications as well.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on November 14, 2010, 22:36:48
I noticed that if after opening a song with the same plugins, but diferent settings (a combination that does not crash OpenMPT) and close the "buggy" song OpenMPT did not hangs. Something like:

1. Create a "not buggy" song with the same plugins, play and close.
2. Open the test (see here (http://forum.openmpt.org/index.php?topic=3691.msg35025#msg35025)) song and play.
3. Open the previous created song and play.
4. Close the test song.
5. Play the "bug free" song and close.
6. OpenMPT did not hang.

Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on December 23, 2010, 23:29:43
I've reported that I have this issue with Miranda IM too. When I recently changed a setting to make the window from borderless to default modal for the messaging window, the problem went away.

Now I do realize that this could just be a bug in the code of this particular plugin and that the plugin is not crashing anymore on exit, but perhaps there's a problem in the window handling that causes this. So for the sake of completeness, I report this finding.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on December 29, 2010, 17:16:00
Okay, I thought the problem went away, but it happened again in MirandaIM with this setting, so disregard my previous post.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 04, 2011, 22:22:20
Related to the plugins settings, using a "not buggy" song. The orignal module of Transition Zone 2, has nearly the same plugins, and does not hang OpenMPT. I will post soon another test case (in a couple hours) to investigate more about this. Are strange things, so I am a little confused. Well, its the use of lots of VST's maybe, I don't know.  ;D

EDIT: typo err.  ::)
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 09, 2011, 18:49:22
Sorry "couple of hours"? hahaha  ;D (i forgot  8))

This new test module is "bug free" compare with the test case, has the same plugins but some more slots.

Open the test case and play for a while, and then load this new module et voilĂ ! Magically this don't hangs OpenMPT

test27b.7z
md5:faf115ccc7aea70d5044ab50ae0f474b
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: jmkz on January 18, 2011, 10:03:37
Jojo, I think that this and this (http://forum.openmpt.org/index.php?topic=3673) topics has some relations, as the near situations. Do you think same?
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on January 18, 2011, 13:22:56
After a few tests with those files from the other thread, I was able to make OpenMPT hang on exit at the very same location in the code, so I'd say yes, they're related.
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Really Weird Person on January 19, 2011, 00:18:51
Quote from: jmkzSorry "couple of hours"? hahaha  ;D (i forgot 8))
That is only the cakewalk. For the tightrope walk, try one that lasts for a couple of months! Just a note: If you are walking on a tightrope, I am not that I would recommend attempting to jump (recalls Treaterous Tightrope from the Mario Party series (the exact game is not remembered, but it is somewhere after Mario Party 2) (The mind is thinking Mario Party 4, but it has been busy not playing that series for quite some time, so it is at a loss as to which game that mini-game is in)). Nope, I guess I was mistaken. It was not Treaterous Tightrope that I was thinking of. I do not recall the name of the game then. Treaterous Tightrope is apparently in Mario Party 8. Daisy! zzz

Hmmm, I think that I got a tad bit carried away at the end there. Oops
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: Saga Musix on March 28, 2014, 02:17:59
LPChip, Do you still experience this or is it safe to close this report?
Title: Re: 1.17.03.02 OpenMPT process remains after exit.
Post by: LPChip on March 28, 2014, 12:56:31
Good question. I used to notice this because I had this script to make it portable, but ever since you pointed out I could make OpenMPT portable using its settings, I stopped using the script. So I'm not aware if it hangs or not.

If it is up only for my sake, close it. I'd have to investigate to see if it still remains open, but given that this was for an old version, chances are it no longer happens.