Error code 0

5 replies [Last post]
Hedgewars Tricks
Hedgewars Tricks's picture
User offline. Last seen 9 weeks 5 days ago. Offline
Joined: 2019-01-03
Posts: 39

This has happened twice now, so I thought might as well bring it up:
I've been testing the Hedgewars 1.0 single player random battle mode, and once I've finished, I'd immediately start a new battle. However, after a couple of battles, I am no longer able to fight because a message shows up saying "unable to run Hedgewars 1.0" error code 0
I'm not entirely sure what triggers it. Any thoughts?
Thanks in advance

Yum

Wuzzy
Wuzzy's picture
User offline. Last seen 28 weeks 2 days ago. Offline
Joined: 2012-06-20
Posts: 1304

That's funny. Error code 0 means “no error”. Haha. This is obviously not the case here. Big Grin

Can you please do the following when this happened again?:

1) Post screenshot of exact error message.
2) Post the last 50 lines or so from game0.log.
3) Post the name of your operating system (e.g. Windows 7 or Ubuntu 19.04).

You find the file “game0.log” in your user directory under “Logs”. This is just a text file, by the way. It tells us what happened before the game crashed, so it's very important to us. Smile

Also, does the error persist once it happens or is it only sometimes? What happens after a full restart of Hedgewars?

Thanks for your help. Thanks for your time to playtest Hedgewars. It really means a lot to me.

Hi, I am a Hedgewars developer. Smile

Hedgewars Tricks
Hedgewars Tricks's picture
User offline. Last seen 9 weeks 5 days ago. Offline
Joined: 2019-01-03
Posts: 39

Alright, let's see...
1) I couldn't figure out how to add a screenshot, so here's the exact message: Unable to run engine at C:/Users/Hedgewarstricks/OneDrive/Documents/Hedgewars 1.0/Hedgewars-1.0.0-Alpha/hwengine
Error code: 0

2)Here are the last 50 or so lines:
0: [Con] Loading /Themes/Crystal_v1/SDDroplet.png [flags: 5] ok (16x64)
0: [Con] Loading /Graphics/Timebox.png [flags: 7] ok (50x162)
0: [Con] Loading /Graphics/slider.png [flags: 7] ok (3x17)
0: [Con] Loading /Graphics/botlevels.png [flags: 7] ok (22x15)
0: [Con] Loading /Graphics/Hedgehog/amCleaver.png [flags: 7] ok (128x128)
0: [Con] Loading /Graphics/cleaver.png [flags: 7] ok (64x64)
0: [Con] Loading /Graphics/star.png [flags: 7] ok (12x12)
0: [Con] Loading /Graphics/icetexture.png [flags: 7] ok (128x128)
0: [Con] Loading /Graphics/Hedgehog/amIceGun.png [flags: 7] ok (64x64)
0: [Con] Loading /Graphics/Hedgehog/amFrozenHog.png [flags: 7] ok (64x64)
0: [Con] Loading /Themes/Crystal_v1/amRubber.png [flags: 5] ok (320x320)
0: [Con] Loading /Graphics/boing.png [flags: 7] ok (101x97)
0: [Con] Loading /Themes/Crystal_v1/custom1.png [flags: 5] failed
0: [Con] Loading /Graphics/custom1.png [flags: 7] ok (2x2)
0: [Con] Loading /Themes/Crystal_v1/custom2.png [flags: 5] failed
0: [Con] Loading /Graphics/custom2.png [flags: 7] ok (2x2)
0: [Con] Loading /Themes/Crystal_v1/custom3.png [flags: 5] failed
0: [Con] Loading /Graphics/custom3.png [flags: 7] ok (2x2)
0: [Con] Loading /Themes/Crystal_v1/custom4.png [flags: 5] failed
0: [Con] Loading /Graphics/custom4.png [flags: 7] ok (2x2)
0: [Con] Loading /Themes/Crystal_v1/custom5.png [flags: 5] failed
0: [Con] Loading /Graphics/custom5.png [flags: 7] ok (2x2)
0: [Con] Loading /Themes/Crystal_v1/custom6.png [flags: 5] failed
0: [Con] Loading /Graphics/custom6.png [flags: 7] ok (2x2)
0: [Con] Loading /Themes/Crystal_v1/custom7.png [flags: 5] failed
0: [Con] Loading /Graphics/custom7.png [flags: 7] ok (2x2)
0: [Con] Loading /Themes/Crystal_v1/custom8.png [flags: 5] failed
0: [Con] Loading /Graphics/custom8.png [flags: 7] ok (2x2)
0: [Con] Loading /Graphics/FrozenAirMine.png [flags: 7] ok (64x256)
0: [Con] Loading /Graphics/AirMine.png [flags: 7] ok (128x256)
0: [Con] Loading /Graphics/Hedgehog/amAirMine.png [flags: 7] ok (128x128)
0: [Con] Loading /Themes/Crystal_v1/FlakeL.png [flags: 5] failed
0: [Con] Loading /Themes/Crystal_v1/SDFlakeL.png [flags: 5] failed
0: [Con] Loading /Graphics/SuddenDeath/SDFlakeL.png [flags: 5] failed
0: [Con] Loading /Themes/Crystal_v1/CloudsL.png [flags: 5] failed
0: [Con] Loading /Graphics/CloudsL.png [flags: 5] failed
0: [Con] Loading /Themes/Crystal_v1/SDCloudsL.png [flags: 5] failed
0: [Con] Loading /Graphics/SDCloudsL.png [flags: 5] failed
0: [Con] Loading /Graphics/Duck.png [flags: 7] ok (32x32)
0: [Con] Loading /Graphics/Hedgehog/amDuck.png [flags: 7] ok (64x64)
0: [Con] Loading /Graphics/Hedgehog/amMinigun.png [flags: 7] ok (64x128)
0: [Con] Loading /Graphics/sliderInverted.png [flags: 7] ok (3x17)
0: [Con] Loading /Graphics/FingerBack.png [flags: 7] ok (64x384)
0: [Con] Loading /Graphics/FingerBackInv.png [flags: 7] ok (64x384)
0: [Con] Loading /Graphics/TargetpBack.png [flags: 7] ok (32x32)
0: [Con] Loading /Graphics/TargetpBackInv.png [flags: 7] ok (32x32)
0: [Con] Loading /Graphics/HealthHUD.png [flags: 7] ok (18x18)
0: [Con] Loading /Graphics/HealthPoisonHUD.png [flags: 7] ok (18x18)
0: [Con] Loading /Graphics/VampHUD.png [flags: 7] ok (24x18)
0: [Con] Loading /Graphics/KarmaHUD.png [flags: 7] ok (18x18)
0: [Con] Loading /Graphics/MedicHUD.png [flags: 7] ok (18x18)
0: [Con] Loading /Graphics/MedicPoisonHUD.png [flags: 7] ok (18x18)
0: [Con] Loading /Graphics/HaloHUD.png [flags: 7] ok (22x11)
0: [Con] Loading /Graphics/InvulnHUD.png [flags: 7] ok (18x18)
0: [Con] Loading /Graphics/amPiano.png [flags: 7] ok (42x42)
0: [Con] Loading /Graphics/Hedgehog/amLandGun.png [flags: 7] ok (128x128)
0: [Con] Loading /Graphics/Hedgehog/amShoryuken.png [flags: 7] ok (64x256)
0: [Con] Loading /Graphics/Flags/cpu.png [flags: 0] ok (22x15)
0: [Con] Loading /Graphics/Hats/StrawHat.png [flags: 0] ok (32x32)
0: Hat => StrawHat
0: Got Hat
0: [Con] Loading /Graphics/Hats/StrawHatEyes.png [flags: 0] ok (32x32)
0: Hat => StrawHatEyes
0: Got Hat
0: [Con] Loading /Graphics/Hats/StrawHatFacial.png [flags: 0] ok (32x32)
0: Hat => StrawHatFacial
0: Got Hat
0: [Con] Loading /Graphics/Hats/StrawHatEyes.png [flags: 0] ok (32x32)
0: Hat => StrawHatEyes
0: Got Hat
0: [Con] Loading /Graphics/Flags/el_salvador.png [flags: 0] ok (22x15)
0: [Con] Loading /Graphics/Hats/cyborg1.png [flags: 0] ok (64x512)
0: Hat => cyborg1
0: Got Hat
0: Hat => cyborg1
0: Got Hat
0: Hat => cyborg1
0: Got Hat
0: Hat => cyborg1
0: Got Hat
0: [Con] Loading /Graphics/missions.png [flags: 2] ok (32x384)
0: [Con] Loading /Graphics/Hedgehog.png [flags: 7] ok (256x256)
0: [Cmd] sendlanddigest
0: CheckLandDigest: M-1364459782|-664007047 digest :
0: Assigned Gear coordinates (1921,1842)
0: Assigned Gear coordinates (2621,1891)
0: Assigned Gear coordinates (1889,1109)
0: Assigned Gear coordinates (2397,1820)
0: Assigned Gear coordinates (1050,1924)
0: Assigned Gear coordinates (1209,1545)
0: Assigned Gear coordinates (738,1658)
0: Assigned Gear coordinates (961,1588)
0: AddGear: #9 (0,0), d(Shocking,Shocking) type = gtATStartGame
0: AddGear: #10 (0,0), d(Shocking,Shocking) type = gtMine
0: Assigned Gear coordinates (1438,1847)
0: AddGear: #11 (0,0), d(Shocking,Shocking) type = gtMine
0: Assigned Gear coordinates (1518,1282)
0: AddGear: #12 (0,0), d(Shocking,Shocking) type = gtMine
0: Assigned Gear coordinates (1116,1678)
0: AddGear: #13 (0,0), d(Shocking,Shocking) type = gtMine
0: Assigned Gear coordinates (2125,1916)
0: AddGear: #14 (0,0), d(Shocking,Shocking) type = gtExplosives
0: Assigned Gear coordinates (1423,1390)
0: AddGear: #15 (0,0), d(Shocking,Shocking) type = gtExplosives
0: Assigned Gear coordinates (1348,1574)
0: AddGear: #16 (1384,761), d(-86..655605264_-1006909872,-16..737601093_-112699472) type = gtGenericFaller
0: AddGear: #17 (1914,1506), d(18..005380116_431807472,32..275821026_977457688) type = gtGenericFaller
0: AddGear: #18 (1895,2025), d(26..922027919_-1751475672,-33..311806455_992913312) type = gtGenericFaller
0: AddGear: #19 (3455,1151), d(19..002359125_860006696,-80..374443322_-1557164736) type = gtGenericFaller
0: AddGear: #20 (1545,1160), d(-18..726144257_-1835607064,-50..604788705_1548244960) type = gtGenericFaller
0: AddGear: #21 (1004,804), d(70..079227410_-395468816,9..956675823_2128876056) type = gtGenericFaller
0: AddGear: #22 (3133,1029), d(-67..152005765_1353776168,-55..375237297_-1986320456) type = gtGenericFaller
0: AddGear: #23 (3306,1929), d(69..408054150_361123176,77..858315665_-490349688) type = gtGenericFaller
0: AddGear: #24 (2014,1780), d(20..139316409_-1658150976,-10..932883542_830167160) type = gtGenericFaller
0: AddGear: #25 (1415,1080), d(-82..733130935_1603367528,-47..492890506_-1076795328) type = gtGenericFaller
0: AddGear: #26 (2678,1313), d(-42..555001318_-620622208,51..290861144_55442064) type = gtGenericFaller
0: AddGear: #27 (1763,1662), d(77..053983457_452682448,87..699773944_-987939568) type = gtGenericFaller
0: AddGear: #28 (2145,1239), d(18..525400634_-1492329064,24..045355848_-1269010000) type = gtGenericFaller
0: AddGear: #29 (1180,1474), d(-26..455476507_6251224,49..380650900_1022481776) type = gtGenericFaller
0: AddGear: #30 (999,1242), d(26..231049410_-1618751952,2..824588075_20721448) type = gtGenericFaller
0: AddGear: #31 (3415,2000), d(61..059753231_-403832912,71..273205652_546837664) type = gtGenericFaller
0: AddGear: #32 (1941,1786), d(47..214085333_-1626037968,66..771703239_-98052712) type = gtGenericFaller
0: AddGear: #33 (1721,1741), d(-14..966327957_2133021616,64..066857967_-1689271640) type = gtGenericFaller
0: AddGear: #34 (1315,1418), d(-35..010682877_863581720,-24..984978090_-865445320) type = gtGenericFaller
0: [Con] Freeing progress textures...
688: [IPC out] +
1288: [Cmd] zoomout
1338: [Cmd] zoomout
1371: [Cmd] zoomout
1471: [Cmd] zoomout
1688: [IPC out] +
1999: Delete: #9 (0,0), d(Shocking,Shocking) type = gtATStartGame
2688: [IPC out] +
2922: FreeActionsList called
2922: [Cmd] /nextturn
2922: [IPC out] N
2922: Next turn: time 2922
2922: Wind = -0..050837501_880828
2938: [Con] Loading /Sounds/voices/Default/Hmm.ogg
2938: [Con] ok
3271: [Cmd] quit
3404: [Cmd] confirm
3404: [IPC out] Q
3404: [Con] Freeing resources...
3404: FreeActionsList called
halt at 3404 ticks. TurnTimeLeft = 44518

Oh, the Hedgewars text smilies are all these: 0 _ 0 (you probably knew that already, but anyway...)

3) A windows 10 pro

Okay, so once the error comes up, I can't fight on any mode at all. Even after I restarted my computer, it didn't work. However, if I uninstall, reinstall, and unzip the file, it will work, for a while again.

As for helping? Of course. I love this game, making playtesting really enjoyable and fun. And you can bet that I will continue to help Big Grin

Yum

Wuzzy
Wuzzy's picture
User offline. Last seen 28 weeks 2 days ago. Offline
Joined: 2012-06-20
Posts: 1304

Ah, thanks.

I have looked up the error message again and I was wrong. For this particular error message, the error code means the following:

Quote:
The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.

https://doc.qt.io/qt-5/qprocess.html#ProcessError-enum

I also noticed you appear to have Hedgewars installed in OneDrive. That's a problem. OneDrive is somewhere on the Internet … In other words, whenever your Internet connection has a hiccup, you can't access the files there. That would explain why starting Hedgewars only fails sometimes, but not all of the time.

Try installing Hedgewars on your own harddrive instead. Hedgewars only takes about 200 MiB of storage space.

Personally, I don't think it's a good idea to install your applications on some remote computer you don't control (which is what OneDrive basically is). I don't know if OneDrive was even built for this.

Hi, I am a Hedgewars developer. Smile

Hedgewars Tricks
Hedgewars Tricks's picture
User offline. Last seen 9 weeks 5 days ago. Offline
Joined: 2019-01-03
Posts: 39

Hmm, alright, I'll try moving from OneDrive and telling you how it goes Smile
Oh, when I reinstalled hedgewars 1.0, I tried a random battle and got a 3v3. This means that the random team works Big Grin

Yum

Wuzzy
Wuzzy's picture
User offline. Last seen 28 weeks 2 days ago. Offline
Joined: 2012-06-20
Posts: 1304

Nice to hear. Please report back when you stumble upon any new bugs. Thanks. Smile

Hi, I am a Hedgewars developer. Smile

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]