How to troubleshoot "Unable to initialize resources - possible disk problem"

Questions about Wine on Linux
Locked
RoyBlue
Level 1
Level 1
Posts: 5
Joined: Sun Dec 04, 2022 12:53 pm

How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by RoyBlue »

Hi.
I have Heroes of Might and Magic 3 on a CD, and I'm having problem running it.
It seems to be supported:

https://appdb.winehq.org/objectManager. ... on&iId=574

To make things easier, I ran gddrescue to create a iso image of it, and then I mounted the image, and installed the game. That worked fine.
But when trying to run the game with either

Code: Select all

wine start HEROES3.EXE  
or

Code: Select all

wine c:\\Orginal_Heroes3\\HEROES3.EXE 
I only get a message box with the message
"Unexpected Program Termination"
"Unable to intialize resources - possible disk problem."
No console output, and then I just have to close the message box, and nothing else happens.

I managed to run strace on it but that only left me with 23k rows of confusion.

What should be my next step?
I use Ubuntu 22.04 LTS and wine-6.0.3 (Ubuntu 6.0.3~repack-1)
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by jkfloris »

This can be a problem if "Heroes of Might and Magic III: Horn of the Abyss" is installed.
Quote:
Hi chaps!

I am not sure if i am asking this in the right topic, but i just downloaded HotA and installed it as in the description (for Heroes 3 complete), and the game wont start for me. I got an error msg saying: "Unable to initialize resources - possible disk problem". I am using windows 7. Anyone met with this problem before?

Thank you for your help guys.


Not sure what could be the problem? Did you have a modified version of Heroes somehow (HD mode or alike that could be interfering with HotA)?
Make sure to open it through HotA.exe not the old Heroes3.exe icon and alternatively try re-installing Heroes Complete and HotA again.
What version of Heroes of Might and Magic 3 did you install? Did you install any expansions or modifications?
RoyBlue
Level 1
Level 1
Posts: 5
Joined: Sun Dec 04, 2022 12:53 pm

Re: How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by RoyBlue »

The only label on the CD-ROM case is: The restoration of Erathia. It is copyright 1999, if that helps to identify.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by jkfloris »

I can't reproduce the problem with the version of Heroes of Might and Magic 3 from the Internet Archive.

Maybe you will get some more information about what went wrong if you use the WINEDEBUG variable.

Code: Select all

WINEDEBUG=fixme+all wine HEROES3.EXE
RoyBlue
Level 1
Level 1
Posts: 5
Joined: Sun Dec 04, 2022 12:53 pm

Re: How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by RoyBlue »

I got this result

Code: Select all

0034:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0034:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0068:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0068:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0070:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0070:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0060:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0060:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
002c:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00f8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
00f8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0024:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
And then it ended.
RoyBlue
Level 1
Level 1
Posts: 5
Joined: Sun Dec 04, 2022 12:53 pm

Re: How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by RoyBlue »

I also tried to run later version of wine (7) and now I got

Code: Select all

WINEDEBUG=fixme+all wine c:\\Orginal_Heroes3\\HEROES3.EXE
0160:fixme:imm:ImeSetActiveContext (0x635398, 1): stub
0160:fixme:imm:ImmReleaseContext (00030048, 00635398): stub
0170:fixme:imm:ImeSetActiveContext (0x25db40, 0): stub
0170:fixme:imm:ImmReleaseContext (0000000000030060, 000000000025DB40): stub
And the same error messagebox "Unable to init...." as before.
RoyBlue
Level 1
Level 1
Posts: 5
Joined: Sun Dec 04, 2022 12:53 pm

Re: How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by RoyBlue »

To anyone reading this in the future.
I gave up on that version of Heroes3 and turned to a version I have on a DVD with both Heroes3 and Heroes4.
That worked. So if you have the same problem as I did, give up and find other version! That is my advice.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: How to troubleshoot "Unable to initialize resources - possible disk problem"

Post by jkfloris »

Maybe the original CD-ROM has some damage or the copy has some error.
Locked