SofaRun v2.0 bug report thread

Page 1/42
| 2 | 3 | 4 | 5 | 6

Par Louthrax

Prophet (2505)

Portrait de Louthrax

03-09-2015, 02:18

Please post all bugs or issues you might have with the SofaRun v2.0 or SofaRunIt v1.0, there will surely be some ;-)

You can get them from my new MSX game room.

SofaRunIt is the companion tool used by SofaRun to launch disk images. It's based on NearDark RunIt tool and included in the SofaRun package, but is also available as a separate download for those who don't want to use SofaRun.

!login ou Inscrivez-vous pour poster

Par Omega

Master (234)

Portrait de Omega

04-09-2015, 17:42

Hi Louthrax,

Thanks for making this, have been looking for a good tool to run .dsk off of CFIDE for ages Smile
Ofcourse I immediately downloaded and tested, a couple of things Wink

1) How do I select a different drive letter from the game browser?

2) If ran on a MSX2+ with 256k ram/dos2 whenever I select a .dsk image and start it, the resulting SofaRunIt output is:
[1] name.dsk R
[2] +^| W
Then I press space and it goes to basic and whatever access to disk i make its "Bad file number". Even if it's just an empty.dsk. In this situation there is 160kb of free ram. BTW: My msxdos 2.20 does not have the command memory.. I do have a 3rd party mem.com wich does the same.
If I try this on a 4mb mapper all is ok. Maybe an out of memory error message would be nice Smile

Cheers,

Par Omega

Master (234)

Portrait de Omega

04-09-2015, 18:03

Oh, sofarunit also does this when my 4MB mapper is not in a primary slot. So if I insert it in a slotexpander (2-0..2-3) it has the same behaviour as with only 160kB.
Oh and btw, the internal mapper in this MSX is also in a subslot (3-2).

Par Louthrax

Prophet (2505)

Portrait de Louthrax

04-09-2015, 18:12

Hi Omega,

Extra drives have to be enabled in the SR.INI file in order to be displayed (that's at the beginning of the file). I've found no clean way to check which drives are enabled or not, so that has to be done manually.

So you confirm that you can launch disks on a CFIDE with 4mb mapper ? That's already great new because I did not test SofaRunIt on this device !

The issue you have does not seem related to the amount of memory, but more to the slot layout. You just need 49152 RAM bytes free, so a 256KB MSX machine has more than enough memory.

Could you try to launch your disk image manually. Just go into MSX-DOS and type "SRI mydisk.dsk" ? By the way, which disk are you trying to launch ?

Par Omega

Master (234)

Portrait de Omega

04-09-2015, 19:20

It's happening with any .dsk file that uses a basic loader, an empty.dsk, or for example sexy-ac.zip. It seems not to happen with a sector loader based game for example Aleste 2. My msx is an expanded NMS8250, maybe you can reproduce using an emulator?

Btw, my CFIDE is actually a Sunrise ATA-IDE + a cf adapter.

If I run sri directly as you described the same thing happens...

Par Louthrax

Prophet (2505)

Portrait de Louthrax

04-09-2015, 23:27

Ok, this needs to be debugged Smile !

So the non-working configuration is :

  • NMS8250 expanded to MSX2+.
  • Internal RAM expanded to 256KB.
  • Sunrise CFIDE + CF adapter.

Let me know if you have anything else plugged in your MSX (RAM slots ?).
And if you plug an extra 4MB cartridge expansion in another slot, with the same configuration, then MSX-BASIC games/disks are working ?

That's quite weird because "simple" memory layouts (with just internal RAM) should be the safest ones.

I'll try to reproduce that on openMSX (I do not have Philips machines with only 256MB memory !) and see what happens. Please tell me if there's something wrong in my assumptions above.

Par Louthrax

Prophet (2505)

Portrait de Louthrax

05-09-2015, 14:05

I managed to reproduce the exact same behavior you described with openMSX using the Nextor kernel, not the default Sunrise one. So upgrading to Nextor will not fix that issue.

Par Omega

Master (234)

Portrait de Omega

05-09-2015, 14:43

Correct about the hardware cofiguration. BTW My Sunrise bios is version 2.50.

I'm pretty sure it seems a memory management bug. I have two external mappers, one 1MB one 4MB. I did some more testing:

  • RAM in slot 3.2: doesn't work (primary mapper in a subslot)
  • RAM in slot 3.2 + 1M or 4M RAM in slot 1 or 2: works (so primary mapper is in a primary slot)
  • RAM in slot 3.2 + 4M ram in expander slot 2.[0-3]: doesn't work (primary mapper in subslot)
  • RAM in slot 3.2 + 4M ram in slot 3.1: doesn't work (primary mapper in subslot)

I'm not 100% familiar with DOS2 memory management calls, but there should be a call to select blocks from the primary mapper so you don't have to worry about slot layouts at all Smile

BTW: I didn't know there is a Nextor bios I could flash in the sunrise ide Smile

Par Louthrax

Prophet (2505)

Portrait de Louthrax

05-09-2015, 15:15

Thanks a lot for the details, debug is in progress Smile

Omega wrote:

I'm not 100% familiar with DOS2 memory management calls, but there should be a call to select blocks from the primary mapper so you don't have to worry about slot layouts at all Smile

I do that at allocation time. It looks like the problem happens when the SofaRunIt "virtual disk" driver saves / restore the slots configuration before doing its calls (something like the subsolts table backup in RAM is not updated).
Also, the bug does not happen with a MFR SCC+ SD card on the same memory configuration / hardware (with the same Nextor kernel).

Omega wrote:

BTW: I didn't know there is a Nextor bios I could flash in the sunrise ide Smile

Nextor is great, but could you maybe not update to it right now ? I'd like to check how the fix for this bug will work on a base SunriseIDE ROM.

Par Omega

Master (234)

Portrait de Omega

05-09-2015, 15:26

Louthrax wrote:

Nextor is great, but could you maybe not update to it right now ? I'd like to check how the fix for this bug will work on a base SunriseIDE ROM.

No worries, I won't Wink

Par Louthrax

Prophet (2505)

Portrait de Louthrax

05-09-2015, 18:48

Should be fixed (along with another memory corruption issue when no MegaFlashROM was detected) !
Version 2.1 has been put online, you can grab it at the same place.

Page 1/42
| 2 | 3 | 4 | 5 | 6