Page 1 of 1

[kovarex+cube] Strange undescriptive error

Posted: Fri Jul 04, 2014 11:41 am
by Reygan
boost::filesystem::file_size:
Error message with this text only. What is this mean?

I running factorio 1.10.2 with this mod
Game crashing on loading screen.

Re: Strange undescriptive error

Posted: Fri Jul 04, 2014 3:17 pm
by ssilk
Hm. No clue, what that is, but google says:

http://www.boost.org/doc/libs/1_49_0/li ... orial.html
The current directory exists, but file_size() works on regular files, not directories, so again, an exception is thrown.
Should I move this to not a bug?

Re: Strange undescriptive error

Posted: Sun Jul 06, 2014 11:56 am
by Reygan
ssilk wrote:Hm. No clue, what that is, but google says:

http://www.boost.org/doc/libs/1_49_0/li ... orial.html
I already searched with google. But i still not understand, what causes this error.

Re: Strange undescriptive error

Posted: Sun Jul 06, 2014 1:51 pm
by Rahjital
I have had it happen a few times when I mistyped a path to a file, replacing the incorrect path with a correct one fixed the issue. The mod is huge, though, and searching for the mistake is going to be a ton of work because of this strange reported error.

Now, whether it's a bug or not depends or if it's a failure of the error reporting system or if it's meant to do this. Either way, it belongs either to Bug Reports or Known Issues.

Re: Strange undescriptive error

Posted: Mon Jul 07, 2014 9:12 am
by cube
The error itself is simple: You are linking to a file __base__/sound/creeper-death-1.wav, which doesn't exist in the current base mod (we converted all sounds to ogg). The weird thing is why you don't see the whole message, because for me it is reported perfectly. Could post your log file, please? It is next to your saves and mods directories, called factorio-current.log .

Re: Strange undescriptive error

Posted: Mon Jul 07, 2014 6:17 pm
by Reygan
cube wrote:The error itself is simple: You are linking to a file __base__/sound/creeper-death-1.wav, which doesn't exist in the current base mod (we converted all sounds to ogg). The weird thing is why you don't see the whole message, because for me it is reported perfectly. Could post your log file, please? It is next to your saves and mods directories, called factorio-current.log .
Of course. Here it is:
factorio-current.log

Code: Select all

00:09:09 Info None: 2014:07:08; Factorio 0.10.2 (Build 10388, win64)
00:09:09 Info Mods: Loading mod core 0.0.0 
00:09:09 Info Mods: Loading mod base 0.10.2 
00:09:10 Info Mods: Loading mod reygan 1.0.4 
00:09:12 Info Atlas: Initial atlas bitmap size is 8192
00:09:12 Info Atlas: Created atlas bitmap 8192x8170
00:09:12 Info Atlas: Created atlas bitmap 8192x3761
Also
factorio-previous.log

Code: Select all

00:06:44 Info None: 2014:07:08; Factorio 0.10.2 (Build 10388, win64)
00:06:45 Info Mods: Loading mod core 0.0.0 
00:06:45 Info Mods: Loading mod base 0.10.2 
00:06:46 Info Mods: Loading mod reygan 1.0.4 
00:06:47 Info Atlas: Initial atlas bitmap size is 8192
00:06:47 Info Atlas: Created atlas bitmap 8192x8191
00:06:47 Info Atlas: Created atlas bitmap 8192x3739
As you see, nothing special.
Hmm. It will be great, if you'll make error messages some more descriptive :)
PS
I have changed paths of sound files and file extensions. Error message appears anyway.
Also i have reuploaded archive. Link is same.
And how can i turn logging more detailed?

Re: [cube] Strange undescriptive error

Posted: Tue Jul 08, 2014 9:26 am
by cube
Now it is deconstruct-bricks.wav.
I recommend mass replace of __base__/(.*)\.wav to __base__/\1.ogg in all the mods lua files :-)

Anyway, I have fixed the error handling, so in 0.10.3 you will see the error at least in logs. Kovarex has to try to figure out why the message box doesn't show the whole error (I'm not on windows).

Re: [kovarex+cube] Strange undescriptive error

Posted: Tue Jul 08, 2014 10:24 am
by kovarex
Hello, I tried the mod and I got the full error message including the path of the file that is missing.

What system do you use? (I tested it on win7 64 bit)

Re: [kovarex+cube] Strange undescriptive error

Posted: Tue Jul 08, 2014 12:53 pm
by Reygan
cube wrote:Now it is deconstruct-bricks.wav.
I recommend mass replace of __base__/(.*)\.wav to __base__/\1.ogg in all the mods lua files :-)

Anyway, I have fixed the error handling, so in 0.10.3 you will see the error at least in logs. Kovarex has to try to figure out why the message box doesn't show the whole error (I'm not on windows).
Thank you for help, everything is working now!
kovarex wrote:Hello, I tried the mod and I got the full error message including the path of the file that is missing.

What system do you use? (I tested it on win7 64 bit)
I am on windows 7 x64, factorio 0.10.2
As cube wrote, it was wrong filenames. But how i can understand that from this message :)
Image

Re: [kovarex+cube] Strange undescriptive error

Posted: Tue Jul 08, 2014 1:01 pm
by kovarex
Reygan wrote:
kovarex wrote:Hello, I tried the mod and I got the full error message including the path of the file that is missing.

What system do you use? (I tested it on win7 64 bit)
I am on windows 7 x64, factorio 0.10.2
As cube wrote, it was wrong filenames. But how i can understand that from this message :)
Image
That is really strange I have no idea why the message is not complete on your computer, while it is complete on my computer, when we use the same factorio version and system.
(I tried both the 64 bit installer and zip package)

Re: [kovarex+cube] Strange undescriptive error

Posted: Tue Jul 08, 2014 3:27 pm
by Rahjital
I can confirm getting this error message on WinXP 32-bit, so it doesn't appear to be limited to a single architecture either.

Re: [kovarex+cube] Strange undescriptive error

Posted: Wed Jul 09, 2014 8:19 am
by kovarex
Anyway, we made a fix, that the error is shown in the log correctly in 0.10.3, so you should get it there, if the message in the log will be undescriptive as well, let us know and we can investigate it further. For now I'm moving it to resolved for next release.

Re: [kovarex+cube] Strange undescriptive error

Posted: Wed Jul 09, 2014 8:52 am
by Reygan
kovarex wrote: That is really strange I have no idea why the message is not complete on your computer, while it is complete on my computer, when we use the same factorio version and system.
(I tried both the 64 bit installer and zip package)
Rahjital wrote:I can confirm getting this error message on WinXP 32-bit, so it doesn't appear to be limited to a single architecture either.
I have tried all 0.10.2 versions (zip\install, x86\x64)
At the first i did wrong path to graphic file. Near the 10% load, game shows me that message
Image
But, when path to sound file is wrong, the first message appears. (and near 89%)
And if there is wrong path to sound file in projectile tables, in prototypes of type "unit" - nothing appears, game loads normally.
May be that information will help you to fix that.