View Issue Details

IDProjectCategoryView StatusLast Update
0000318OpenMPTPlugins / VSTpublic2012-12-12 23:14
Reporterjmkz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Platformx86OSWindowsOS VersionXP
Product VersionOpenMPT 1.20.04.* (old testing) 
Summary0000318: DCKiller Exception in ProcessVSTEvents[...]
Description

Related to issue 317, when selecting presets, I got some errors:

"Access violation at address XXXXXXXX in module 'DCKiller.dll'. Write of address 00000000."
after that, a new dialog comes:
Exception in ProcessVSTEvents() (Plugin=DCKiller , numEvents:64) >> mptrack1.dmp

After clicking in 'OK' button I got this other:
"Invalid pointer operation"

The cycle is repeated and when I finally can click on close button, appeared this:
"Exception in Dispatch(15) (Plugin="DCKiller")! >> mptrack2.dmp
Clicked 'OK' and then:
"Exception in Dispatch(1) (Plugin="DCKiller")! >> mptrack3.dmp

After a lot of trying, I finally can make OpenMPT create his own dump.

Steps To Reproduce

Play and walk through DCKiller presets.

Additional Information

Testing module: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/317/Module2.mptm
Dumps: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/318_dumps.7z
own OpenMPT dump: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/318_crash-audio.dmp
DCKiller: http://tobybear.de/p_utilbag.html

TagsNo tags attached.
Has the bug occurred in previous versions?Yes, current stable (but more controlled?)
Tested code revision (in case you know it)

Activities

Saga Musix

Saga Musix

2012-11-30 13:07

administrator   ~0000978

I cannot reproduce the bug, but it definitely sounds like something is broken in the plugin, not OpenMPT (it wouldn't be the first time with Tobybear plugins). It sounds like the plugin does not provide enough memory to process VST events, but that is only a wild guess. For that to confirm you can try if the same appears if you remove all notes from the patterns. Also, the dumps are of no use since they don't match my current binary (did you compile OpenMPT yourself?), so no debug information can be accessed.

jmkz

jmkz

2012-12-01 01:13

reporter   ~0000980

Last edited: 2012-12-01 01:14

It's strange, I didn't compiled myself, I've downloaded from http://sagagames.de/stuff/mptrack.exe
If useful, this is the exe I have used: http://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/mptrack.7z

Saga Musix

Saga Musix

2012-12-01 15:23

administrator   ~0000984

I forgot that I applied some changes to my executable in the meantime, so it was not compatible anymore. Please try again with OpenMPT 1.20.04.06 and create new dump files for that.

jmkz

jmkz

2012-12-02 05:16

reporter   ~0000986

Last edited: 2012-12-02 05:20

This dump is for r1442 https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/318_mptrack4.7z

This dump was created while playing the example module. This is because after 8 or 10 error dialogs, OpenMPT just puff off (short time to create dump). It's also created with the same Sysinternals Process Explorer.

I'm now trying to get more helpful dumps while I install VS.

jmkz

jmkz

2012-12-02 05:32

reporter   ~0000987

You can try with this too: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/318_dumps_2.7z

Saga Musix

Saga Musix

2012-12-02 13:59

administrator   ~0000988

None of these dumps are helpful, since they have not been collected when the plugin crashed. There's no information to collect when the module plays, because obviously everything is fine at that point.
Still, since the crash happens in the plugin, I doubt that it's OpenMPT's fault, and I'm sure the problem can be reproduced in similar ways when using a different host. My best guess would be that the plugin is not prepared properly for receiving MIDI events. Can you check and see if the problem persists if you apply the effect as a global effect instead of applying it to specific instruments?

jmkz

jmkz

2012-12-03 08:07

reporter   ~0000989

I have compiled OpenmPT in debug mode, and finally got results. This bug also happen when plugin is used as master and applied to instruments.
Own-build of r1444 as debug.

mptrack.exe, mptrack.pdb and Soundtouch DLL: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/DebugEXE.7z

1st Dump: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/mptrack_vs.dmp.7z

2nd Dump: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/mptrack_vs-2.7z

The rest of the Debug build files: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/318_DebugFiles.7z

Another tested module: https://dl.dropbox.com/u/35217013/mptrack/bugtracker/318/DCKillerAsMaster.mptm

Notice that the dumps were generated as different sessions, meaning that in the first test I got this two bugs but I didn't created a second dump in the first try. Then as I want to get bug again, I've runned again until get this exception dialog, and saved as the second dump. Hope this will useful now.

Saga Musix

Saga Musix

2012-12-03 14:38

administrator   ~0000991

I can still not reproduce the problem on my own, but mptrack_vs-2.dmp shows that this is most definitely a problem with the plugin. Are you sure that you are running the latest version of the plugin? If you are, you should contact the plugin author and tell him that DCKiller most likely doesn't process the effProcessEvents opcode correctly - it possibly doesn't respect the number of events that have been passed.

Another thing you could try is assigning the plugin to the instruments again, and setting set MIDI channel to "1" - if the plugin crashes as soon as a note is being played, my suspicion will be confirmed.

Saga Musix

Saga Musix

2012-12-12 23:14

administrator   ~0000998

I'll close this is as it's most likely a plugin issue. If you find out more and can show that it's definitely an issue with OpenMPT, feel free to re-open.

Issue History

Date Modified Username Field Change
2012-11-30 07:57 jmkz New Issue
2012-11-30 07:59 jmkz Description Updated
2012-11-30 13:07 Saga Musix Note Added: 0000978
2012-12-01 01:13 jmkz Note Added: 0000980
2012-12-01 01:14 jmkz Note Edited: 0000980
2012-12-01 15:23 Saga Musix Note Added: 0000984
2012-12-02 05:16 jmkz Note Added: 0000986
2012-12-02 05:20 jmkz Note Edited: 0000986
2012-12-02 05:32 jmkz Note Added: 0000987
2012-12-02 13:59 Saga Musix Note Added: 0000988
2012-12-03 08:07 jmkz Note Added: 0000989
2012-12-03 14:38 Saga Musix Note Added: 0000991
2012-12-12 23:14 Saga Musix Note Added: 0000998
2012-12-12 23:14 Saga Musix Status new => closed
2012-12-12 23:14 Saga Musix Resolution open => no change required
2016-11-20 17:48 Saga Musix Category VST => Plugins (VST)
2016-11-20 17:48 Saga Musix Category Plugins (VST) => Plugins / VST