View Issue Details

IDProjectCategoryView StatusLast Update
0000883OpenMPTGeneralpublic2016-10-20 16:16
ReporterDrillimation Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionnot fixable 
PlatformWindowsOSWindowsOS Version7
Product VersionOpenMPT 1.26.04.00 / libopenmpt 0.2-beta20 (upgrade first) 
Summary0000883: OpenMPT crash caused my file to become corrupted
Description

I was working on my .it file, and OpenMPT crashed. I tried to open it back up, and it ended up completely blank and corrupted.

Steps To Reproduce

This usually happens if OpenMPT is installed on an external hard drive. If the external hard drive is unplugged while OpenMPT is open, and whenever a function is clicked on, the program crashes.

TagsNo tags attached.
Has the bug occurred in previous versions?No.
Tested code revision (in case you know it)

Activities

Saga Musix

Saga Musix

2016-10-05 15:06

administrator   ~0002690

I will need more details, because this doesn't make sense to me.

  • Windows should load the entire executable into memory or at least into the pagefile, so no matter if you remove the hard drive or not, it should continue working.
  • Where do you save the IT file to? To the same unplugged hard drive? If so, OpenMPT should simply say that it cannot save the file. Since the drive is unplugged, the file cannot be corrupted, of course.
Saga Musix

Saga Musix

2016-10-05 15:09

administrator   ~0002691

Also, if OpenMPT created a crash dump in %TEMP%\OpenMPT Crash Files, please compress the .dmp file and upload it here.

manx

manx

2016-10-07 17:08

administrator   ~0002693

Last edited: 2016-10-07 17:10

If you run OpenMPT from a disk that is getting unplugged, there is nothing at all that OpenMPT can do. Not even write a proper crash dump or save the currently open file, because the code to do that might not actually be loaded yet.
Do not unplug the disk while using it.

Saga Musix

Saga Musix

2016-10-10 12:54

administrator   ~0002694

Last edited: 2016-10-10 12:55

I would have expected that Windows keeps the executable image in memory or swap file at all times, but if this is not the case, there is indeed nothing we can do about it. You will have to ensure that OpenMPT is run from a permanently connected drive and enable the creation of backups (*.bak) in the Autosave options to prevent your files from being damaged (this is always a good idea, not just in your situation).
If you absolutely need OpenMPT to be stored on an external drive, you can try a simple batch script like this to automatically copy the executable to a safe location (assuming it is a portable install):

mkdir "%TEMP%\OpenMPT"
copy mptrack.exe "%TEMP%\OpenMPT\"
copy PluginBridge32.exe "%TEMP%\OpenMPT\"
copy PluginBridge64.exe "%TEMP%\OpenMPT\"
copy unmo3.dll "%TEMP%\OpenMPT\"
copy OpenMPT_SoundTouch_f32.dll "%TEMP%\OpenMPT\"
copy mptrack.ini "%TEMP%\OpenMPT\"
copy Keybindings.mkb "%TEMP%\OpenMPT\"
copy SongSettings.ini "%TEMP%\OpenMPT\"
copy plugin.cache "%TEMP%\OpenMPT\"
"%TEMP%\OpenMPT\mptrack.exe"
Saga Musix

Saga Musix

2016-10-20 16:16

administrator   ~0002704

Closing as there is nothing we can do about this issues.

Issue History

Date Modified Username Field Change
2016-10-04 20:47 Drillimation New Issue
2016-10-04 20:47 Drillimation Tag Attached: module
2016-10-05 15:06 Saga Musix Note Added: 0002690
2016-10-05 15:09 Saga Musix Tag Detached: module
2016-10-05 15:09 Saga Musix Note Added: 0002691
2016-10-05 15:11 Saga Musix Priority urgent => normal
2016-10-07 17:08 manx Note Added: 0002693
2016-10-07 17:10 manx Note Edited: 0002693
2016-10-10 12:54 Saga Musix Note Added: 0002694
2016-10-10 12:55 Saga Musix Note Edited: 0002694
2016-10-20 16:16 Saga Musix Status new => closed
2016-10-20 16:16 Saga Musix Resolution open => not fixable
2016-10-20 16:16 Saga Musix Note Added: 0002704