IRC logs for #openttd on OFTC at 2019-06-23
⏴ go to previous day
00:35:13 *** snail_UES_ has joined #openttd
02:33:41 *** Thedarkb has joined #openttd
06:02:23 *** Wormnest has joined #openttd
08:44:44 *** sla_ro|master has joined #openttd
09:18:41 *** gelignite has joined #openttd
10:05:57 *** Progman has joined #openttd
10:08:43 *** HerzogDeXtEr has joined #openttd
12:34:59 *** Thedarkb has joined #openttd
14:36:33 *** andythenorth has joined #openttd
14:44:41 <andythenorth> did anyone make a lunchbot yet?
14:59:05 *** ChanServ sets mode: +v tokai
15:17:05 *** OsteHovel has joined #openttd
15:47:37 *** Antheus has joined #openttd
17:00:34 *** Thedarkb has joined #openttd
17:00:44 *** Wormnest has joined #openttd
17:24:55 *** Progman has joined #openttd
17:51:51 <andythenorth> LordAro: did you register that domain? o_O
17:53:35 <LordAro> andythenorth: not mine :p
18:09:37 *** Mahjong2 has joined #openttd
18:12:41 *** quiznilo has joined #openttd
19:08:06 *** Thedarkb has joined #openttd
19:44:53 *** snail_UES_ has joined #openttd
19:46:18 *** frosch123 has joined #openttd
19:47:22 <frosch123> anyone wants to do an interview with some college student?
19:47:54 <frosch123> not sure how many got that mail, since it was to frosch@, not info@
19:48:20 <frosch123> andythenorth: about doing open source, and how that affects your career
19:48:38 <frosch123> apparently it is for some Technical Writing class, so not sure how that adds up
19:48:44 <frosch123> but, well, college :p
19:51:54 <Eddi|zuHause> do you need something that other people would call a "carreer"?
19:53:01 <frosch123> you only need to impress a teenager
20:06:42 *** ToBeFree has joined #openttd
21:07:26 <snail_UES_> any chance we can get depots with closed doors, which open when a train enters or leaves?
21:09:36 <frosch123> you can likely expose the pbs reservation, like for stations
21:18:47 <snail_UES_> right, so it would be possible
21:26:07 *** andythenorth is now known as Guest5777
21:26:09 *** andythenorth has joined #openttd
21:43:47 <andythenorth> maybe I should play OpenTTD
21:47:09 <andythenorth> I have lost a few newgrf dev/test games to that
21:55:38 <Eddi|zuHause> andythenorth: you could start by running a debugger, and creating a backtrace?
21:56:53 <andythenorth> could I just remove the "don't generate crashlog" guard?
21:57:25 * andythenorth reading about gdb
21:58:02 <Eddi|zuHause> last time you used lldb
21:58:26 <andythenorth> how do you remember this stuff? I can't even get my kids' names right :P
22:01:35 <DorpsGek_II> [OpenTTD/OpenTTD] andythenorth commented on issue #7618: Assertion failure loading savegame with missing grf https://git.io/fjwDc
22:02:03 <nielsm> that looks like it might be the wrong thread you're looking at
22:02:14 <nielsm> unless the stack is smashed
22:02:19 <andythenorth> saveload uses a different thread?
22:02:40 <nielsm> there's usually a few threads around regardless
22:03:03 <nielsm> I think load is always on the main thread
22:04:23 <andythenorth> I am just going by googling here :P
22:04:29 <andythenorth> no idea what I'm doing
22:05:53 <andythenorth> thread list at the end of the paste
22:07:48 <andythenorth> around frames 20-22 looks interesting?
22:08:22 <Eddi|zuHause> yes, everything below error()
22:08:52 <Eddi|zuHause> the rest is just OS noise
22:10:14 <Eddi|zuHause> so possibly something like "up 20" works, and then "l"
22:15:01 <Eddi|zuHause> no, just one "up", not "up 20"
22:15:24 <Eddi|zuHause> (well, now it would be "down 19" :p
22:16:04 <Eddi|zuHause> so, what does "l" say?
22:16:28 <andythenorth> maybe it's a different command in lldb?
22:16:51 <Eddi|zuHause> maybe, or maybe it just forgot the link to the source files
22:17:03 <Eddi|zuHause> because of directory issues and whatnot
22:17:16 <andythenorth> explicit 'list' is also just printing nothing
22:17:57 *** snail_UES_ has joined #openttd
22:18:09 <Eddi|zuHause> does "p t" say anything?
22:18:55 <andythenorth> error: use of undeclared identifier 't'
22:19:03 <andythenorth> (lldb) source info
22:19:03 <andythenorth> error: No debug info for the selected frame.
22:19:15 * andythenorth reading stack overflow :P
22:19:28 <Eddi|zuHause> andythenorth: you probably need to direct it to the src directory
22:19:44 <Eddi|zuHause> andythenorth: or recompile it with debug symbols
22:19:58 <andythenorth> ouch it's trapped my sound
22:20:07 <andythenorth> I've got a looped beep and no mute option :P
22:20:16 <LordAro> i disable sound when using gdb :p
22:20:44 <LordAro> -s null, or whatever the command flag is
22:21:46 <andythenorth> 'disassemble' seems to do stuff here
22:22:20 <LordAro> yeah, shows you the raw machine code :p
22:22:28 <LordAro> not hugely useful, we're not at that level yet
22:22:37 <andythenorth> what are we trying to get to?
22:22:51 <Eddi|zuHause> get to the matching source code lines
22:22:52 <LordAro> frame #20: 0x0000000100212dca openttd`error(char const*, ...) + 202
22:22:53 <LordAro> frame #21: 0x000000010012468c openttd`RoadVehicle::GetMaxTrackSpeed() const + 284
22:25:08 <Eddi|zuHause> that function consists of one line: "return GetRoadTypeInfo(GetRoadType(this->tile, GetRoadTramType(this->roadtype)))->max_speed;"
22:25:22 <Eddi|zuHause> try "p this->roadtype"?
22:25:24 <LordAro> something's been inlined then
22:25:31 <LordAro> try one of the 3 functions :p
22:26:11 <andythenorth> (lldb) p this->roadtype
22:26:11 <andythenorth> error: invalid use of 'this' outside of a non-static member function
22:26:31 <LordAro> after switching to frame 21?
22:26:35 <LordAro> (and the correct thread)
22:26:35 <Eddi|zuHause> at which frame are you?
22:27:15 <Eddi|zuHause> probably too much stuff optimized away
22:29:11 <Eddi|zuHause> it might be interesting where exactly this is: "frame #23: 0x00000001002bc060 openttd`AfterLoadVehicles(bool) + 2848"
22:29:40 <LordAro> nearly impossible with a release build, really
22:29:54 <LordAro> ./configure --enable-debug(=2)
22:29:57 <Eddi|zuHause> because it might be accessing data that is in an invalid state of conversion
22:30:44 <andythenorth> ./configure --enable-debug(=2)
22:30:45 <andythenorth> -bash: syntax error near unexpected token `('
22:31:07 <andythenorth> the save is on the issue if you want to try btw
22:31:15 <Eddi|zuHause> that's what happens when you copy-paste stuff without understanding what it means :p
22:31:29 <LordAro> without the parens :p
22:38:43 <andythenorth> what do I paste next? :P
22:40:31 <LordAro> did you do --enable-debug, or --enable-debug=2 ?
22:41:07 <LordAro> because it looks like it's got the same inlining as before
22:41:15 <LordAro> (i'd look myself, but currently Windows)
22:41:16 <andythenorth> history says ./configure --enable-debug=2
22:42:05 <andythenorth> can come back to this another time?
22:42:39 <LordAro> according to the configure script, level 2 should enable -fno-inline
22:42:54 <LordAro> what does the stack trace look like this time?
22:43:12 <LordAro> is there anything above GetMaxTrackSpeed (and below error )
22:44:29 <andythenorth> stack trace changed, I'll paste
22:46:54 <LordAro> what does frame 4 look like?
22:48:01 <LordAro> and naturally roadtype itself has been optimised out
22:48:33 <LordAro> the fun bit is working out why that's happened
22:49:58 <andythenorth> well at one level, the grf isn't present :P
22:50:04 <andythenorth> so that won't help :P
22:52:30 <andythenorth> but it's crashing before I can swap out the grf :P
22:52:37 <LordAro> but the roadtype of the ..road shouldn't be beyond the maximum roadtype id either
23:14:08 *** andythenorth has left #openttd
continue to next day ⏵