[01:18:38] --> Eli2_ has joined #gemrb
[01:20:13] <-- Eli2 has left IRC (Ping timeout: 265 seconds)
[01:25:20] --> brada has joined #gemrb
[01:27:36] <-- brada has left IRC (Client Quit)
[06:45:30] <-- Lightkey has left IRC (Ping timeout: 265 seconds)
[06:57:33] --> Lightkey has joined #gemrb
[11:39:30] <lynxlynxlynx> ... of those only 4 seem to require extra care: 1 file that we shouldn't touch and the rest are manifestations of 2 known exceptions
[14:49:34] --> deva has joined #gemrb
[14:50:57] <deva> I need help with getting the BG2 demo running on linux. I successfully installed the demo using wine and got gemrb installed from latest git but when I run gemrb from the demo install directory it terminates with a "ImportError: No module named Start" error.
[15:01:31] <lynxlynxlynx> did you change GUIScriptPath in the config for some reason?
[15:07:37] <deva> It complained about not being able to load ..../share/gemrb/override/auto and .../share/gemrb/unhardcoded/auto so I symlinked these to the bg2 directories
[15:07:53] <deva> but other than that it is "vanilla" installs
[15:13:47] <deva> lynxlynxlynx, Here is the complete commandline output: http://pastebin.com/sstk9epf
[15:13:48] <Seniorita> deva@deva ~/.wine/drive_c/Program Files/Black Isle/BGII - SoA Demo $ ~/games/gem - Pastebin.com
[15:16:00] <lynxlynxlynx> no need for any symlinks
[15:17:48] <lynxlynxlynx> you didn't specify any config nor any was found
[15:18:00] <lynxlynxlynx> pretty cool that you even got that far
[15:20:43] <deva> So I should remove the symlinks?
[15:21:33] <deva> lynxlynxlynx, That gives me this: http://pastebin.com/ibkZ5CLs
[15:21:36] <Seniorita> deva@deva ~/.wine/drive_c/Program Files/Black Isle/BGII - SoA Demo $ ~/games/gem - Pastebin.com
[15:21:58] <deva> Is it because gemrb cannot recognize the BG2 demo?
[15:22:28] <deva> With the symlink I get a black screen with a gloved hand cursor
[15:23:24] <lynxlynxlynx> because you need to change the config
[15:24:10] <lynxlynxlynx> GamePath in particular
[15:24:46] <lynxlynxlynx> it already defaults to bg2 mode, so that bit is fine
[15:25:09] <deva> which config? there seem to be so many...
[15:25:44] <deva> The one in the etc folder?
[15:28:50] <deva> lynxlynxlynx, That seemed to do the trick :-) Thank you for your help
[15:29:09] <lynxlynxlynx> wasn't much
[15:29:30] <lynxlynxlynx> be warned that the demo lacks a few resources, so the real bg2 works better
[15:30:10] <deva> Hmm... it crashes all the time... but that is quite a different issue I guess ;)
[15:30:17] <deva> Are you a developer?
[15:45:48] <lynxlynxlynx> yes
[15:45:57] <lynxlynxlynx> it shouldn't be crashing
[15:46:19] <lynxlynxlynx> does it load properly, are you seeing the area?
[15:53:00] --> turtleman_ has joined #gemrb
[15:54:39] <deva> lynxlynxlynx, It crashes when I click the character name in the "new game" entry
[15:54:47] <deva> let me run it in gdb... one sec
[15:57:43] <lynxlynxlynx> interesting
[15:57:55] <lynxlynxlynx> i just generated a character and entered the demo normally
[15:58:01] <deva> gdb wont run with the binary... it it compiled with debug as default?
[15:58:28] <lynxlynxlynx> no, but with most symbols intact
[15:58:34] <lynxlynxlynx> (RelWithDebugInfo)
[15:59:47] <deva> All I can get is the crash dump: http://pastebin.com/JhjT1FwE
[15:59:47] <Seniorita> deva@deva ~/.wine/drive_c/Program Files/Black Isle/BGII - SoA Demo $ ~/games/gem - Pastebin.com
[16:08:37] <lynxlynxlynx> that wasn't run with gdb though
[16:09:09] <deva> no, ... I'm building in Debug mode now...
[16:09:25] <lynxlynxlynx> btw, did you checkout the 0.8.2 tag or built from master?
[16:09:43] <deva> I tried both
[16:10:13] <deva> I will give you a very detailed bug report once I figure how everythign works ;)
[16:10:19] <lynxlynxlynx> the release has none of the text changes in, though we mostly ironed out the rough edges by now
[16:10:27] <deva> ... I'm in no way a cmake expert
[16:10:53] <lynxlynxlynx> crashes have nothing to do with cmake
[16:12:16] <deva> I know... but I can't get gdb run the binary
[16:12:41] <deva> head doesn't seem to crash now...
[16:12:43] <lynxlynxlynx> what happens?
[16:12:47] <lynxlynxlynx> with gdb
[16:13:20] <deva> http://pastebin.com/tZTscFiz
[16:13:21] <Seniorita> Spam Detection For Paste ID: tZTscFiz
[16:13:51] <deva> It crashed again... It seems it is rather random, but always related to button clicks in the character generation dialog
[16:14:35] <lynxlynxlynx> uff, those errors sound severe
[16:15:14] <lynxlynxlynx> it's likely some memory corruption somewhere or you'd always hit it at the same time
[16:17:35] <deva> It is always at a button click, but not always
[16:17:45] <deva> I mean, I can sometimes click a button without the crash
[16:18:17] <deva> So likely freeing of memory in cunjunction with a button click?
[16:21:36] <lynxlynxlynx> i just ran it under valgrind and the textarea code is still leaving a trace
[16:22:34] <lynxlynxlynx> yeah, last commit wasn't perfect
[16:24:35] <deva> So you think that might be the issue?
[16:26:56] <lynxlynxlynx> yes, it causes small memory corruption when windows are unloaded
[16:27:06] <lynxlynxlynx> that happens many times during character generation
[16:27:53] <deva> makes sense. is there a quickfix, so I can verify that?
[16:29:25] <lynxlynxlynx> http://sprunge.us/KXAS?diff
[16:29:31] <lynxlynxlynx> try that
[16:29:48] <lynxlynxlynx> ok, one ) less
[16:30:09] <lynxlynxlynx> memory management is not my forte, so there's no guarantees
[16:30:50] <lynxlynxlynx> i'll recheck with vally
[16:35:45] <lynxlynxlynx> ok, didn't help me
[16:36:32] <deva> still crashes
[16:37:04] <deva> ... and also the parenthesis were out of balance in the patch, but I guess you already figured that out ;)
[16:40:40] <lynxlynxlynx> you can try commenting out 60-62 in gemrb/core/GUI/ScrollBar.cpp
[16:40:55] <lynxlynxlynx> still thinking when it would be needed
[16:42:12] <deva> that seemed to work
[16:42:32] <deva> ... and the game seems to start as it should
[16:43:23] <deva> Now it crashed in the game
[16:43:55] <deva> This time no more than a simple "Segmentation fault"
[16:44:00] <deva> No stack trace or anything
[16:44:18] <lynxlynxlynx> how far did you get in the cutscene?
[16:44:35] <deva> there was a green light in one of the cages just before it crashed
[16:44:53] <deva> I'll try again and see if the same thing happens again
[16:45:17] <lynxlynxlynx> btw, you can press enter during generation; saves a lot of clicking
[16:45:25] <lynxlynxlynx> or just import gembak
[16:46:30] <deva> good tip
[16:46:44] <deva> it crashed just after "you should survive this process"
[16:46:50] <deva> same place as before
[16:48:25] <deva> and again... seems quite consistent
[16:48:58] <deva> It happens just after the green flame starts twitching after he said "you should survive the process"
[16:55:53] <lynxlynxlynx> i'll try it myself, haven't run the demo in ages
[16:57:31] <deva> Do you have any unit tests running?
[16:57:41] <lynxlynxlynx> heh, importing is a sure way to trigger the original problem here
[16:57:41] <deva> Maybe the demo could be used as a baiss for such?
[16:58:24] <lynxlynxlynx> just some for text stuff and basic init; everything else is pretty much too complex to be doable
[17:00:15] <lynxlynxlynx> works for me
[17:00:38] <deva> I guess I have a problematic setup then
[17:02:24] <lynxlynxlynx> do you see any graphical glitches?
[17:07:53] <deva> The "toolbar" flickered a bit before the cutscene started, switched to balck and then faded in
[17:08:33] <deva> but I guess that is how it is supposed to happen?
[17:08:45] <deva> when the crash occurs, nothings seems out of the ordinary
[17:14:32] <lynxlynxlynx> ok
[17:30:46] <deva> It seems to be at the position of some sound being played: http://pastebin.com/aNPG5dhQ
[17:30:46] <Seniorita> [Actions]: PlaySound(eff_p19) [ResourceManager]: Searching for 'eff_p19'... [R - Pastebin.com
[17:31:17] <lynxlynxlynx> i doubt that matters, but you could add AudioDriver = None to your config to test it
[17:31:31] <lynxlynxlynx> *none
[17:33:10] <deva> "[Actions]: PlaySound(eff_p19)" is still in the log, and it still crashes
[17:33:44] <deva> but it seems that the resource is not being searched for...
[17:51:08] <lynxlynxlynx> that's fine
[18:22:01] <deva> lynxlynxlynx, Do you have any idea of why I can seem to run gemrb in gdb?
[18:22:28] <lynxlynxlynx> those library errors are creepy, that's glibc
[18:22:43] <lynxlynxlynx> do you have some wierd mix of installs?
[18:23:27] <deva> Possibly - I'm running on a very old Gentoo box with many of my system libraries in up-to-date versions, but many never touched since initial install
[18:23:49] <deva> gcc is 4.8.3
[18:24:57] <deva> glibc is 2.15
[18:26:13] <deva> SDL is 2
[18:26:32] <deva> But I have also 1.x installed, and I'm not sure which one is used by gemrb
[18:27:38] <lynxlynxlynx> you'd notice if it picked sdl2
[18:27:39] <deva> lynxlynxlynx, Is SDL used by a plugin? The bianry doesn't seem to use that library?
[18:27:42] <lynxlynxlynx> we default to 1
[18:28:15] <deva> http://pastebin.com/0vzvFGZW
[18:28:15] <Seniorita> deva@deva ~/.wine/drive_c/Program Files/Black Isle/BGII - SoA Demo $ ldd ~/games - Pastebin.com
[18:28:35] <lynxlynxlynx> yes, the binary doesn't need to be linked to sdl
[18:29:34] <deva> It is using 1.2: http://pastebin.com/dxvcusF0
[18:29:35] <Seniorita> deva@deva ~/src/gemrb/build/install/lib/gemrb/plugins $ ldd * | grep -i sdl - Pastebin.com
[18:33:53] <lynxlynxlynx> you're on gentoo, so your libs should be fine; not much splitting in their camp
[18:34:40] <lynxlynxlynx> no idea what's wrong
[18:40:38] <deva> Is there some kind of "test game" that I could run in order to see if the problem is related to the demo itself?
[18:44:50] <wjp> Those errors in gdb suggest your gdb is too old
[18:47:37] <deva> wjp, ok, I'll try an update
[18:48:44] <deva> Current version is 7.0, latest i 7.7
[18:54:39] <deva> That seemed to help
[18:55:20] <deva> It crashes just after startup when run through gdb: http://pastebin.com/zpu8XZbE
[18:55:20] <Seniorita> deva@deva ~/.wine/drive_c/Program Files/Black Isle/BGII - SoA Demo $ gdb ~/games - Pastebin.com
[19:02:14] <deva> Setting the Cahce folder in the config to an absolute path seemed to make it run
[19:02:57] <lynxlynxlynx> it was probably just not empty
[19:03:15] <deva> Correct
[19:03:23] <deva> gdb is not to much help in the crash though...
[19:03:27] <wjp> If you get the gdb prompt after a crash, you can do "bt" to get a backtrace
[19:03:33] <deva> http://pastebin.com/YiBx2fPB
[19:03:35] <Seniorita> [Actions]: PlaySound(eff_p19) [ResourceManager]: Found 'spentang.vvc' in 'chiti - Pastebin.com
[19:04:00] <wjp> That'll show where it's crashing
[19:04:39] <deva> the "bt" is included in the paste
[19:05:29] <wjp> ...unless you have a corrupt stack...
[19:06:49] <deva> looks like a stack problem yes
[19:07:25] <deva> ... unless you are trying to access some external sensor that are memorymapped to the address 0xec X-|
[19:19:45] <wjp> valgrind would usually be the next debugging tool to try
[19:20:21] <deva> I'm only know valgrind by name, how do I use that with gemrb?
[19:20:35] <deva> like gdb?
[19:23:43] <deva> or is it more like efence? (which needs to be preloaded or linked directly to the application)
[19:27:01] <wjp> more like gdb
[19:27:17] <wjp> but I'm on hopelessly slow mobile internet here, so I can't walk you through it
[19:27:44] <deva> no biggie... I'll probably figure it out on my own :p
[19:28:42] <lynxlynxlynx> look at admin/val.run
[19:29:16] <lynxlynxlynx> ok, not there
[19:29:18] * deva needs glib upgrade :(
[19:29:31] <deva> ... this is gonna take a while
[19:29:45] <deva> (But if we're lucky also fix the problem...)
[19:29:56] <lynxlynxlynx> valgrind --track-origins=yes --suppressions=../testing/python.supp path/to/gemrb -c path/to/config &> val.log
[19:30:17] <lynxlynxlynx> the suppression file is in the source dir; I don't remember if we install it
[19:31:36] <deva> ok, I'll try it in an hour or so, when glibc is done compiling
[19:46:38] <deva> I gotta leave for the evening... but I'll get back to you (probably tomorrow) once I get valgrind up and running
[19:47:03] <-- deva has left IRC (Quit: Konversation terminated!)
[21:15:32] <-- turtleman_ has left IRC (Ping timeout: 272 seconds)
[21:34:40] <Seniorita> [commit] lynxlynxlynx: added ctrl+e shortcut to reverse the party order (for 10pp) https://github.com/gemrb/gemrb/commit/26be3439676be400c91dcaf694c044e169171d64
[21:54:45] --> turtleman_ has joined #gemrb
[22:36:07] --> deva has joined #gemrb
[22:36:22] <deva> lynxlynxlynx, Good news and bad news
[22:36:57] <deva> The good news is that I got valgrind to work
[22:37:13] <deva> The bad news is that I can no longer reproduce the crash
[22:38:38] <deva> (The latter might be considered good news as well, but I'm of the opinion that the crash is an indication of a stack corruption which is still there even though my glibc upgrade no longer shows it)
[22:39:52] <deva> I am however seeing a correspondance to the "fade-out" effect which begins almost exactly at the same time as the crash happened
[22:45:02] <-- tomprince has left IRC (Ping timeout: 246 seconds)
[22:45:44] <-- gembot_ has left IRC (Ping timeout: 246 seconds)
[22:46:05] <lynxlynxlynx> you had a crash due to a memory corruption; it is natural that it doesn't happen with valgrind
[22:46:37] <lynxlynxlynx> the log will contain details about it, but valgrind makes sure not to break
[22:47:14] <deva> I'm running without valgrind
[22:47:30] <lynxlynxlynx> even better
[22:47:42] <deva> I had to recompile/upgrade my glibc to make valgrind work, and since the glibc upgrade gemrb no longer crashes
[23:05:13] <-- deva has left IRC (Quit: Konversation terminated!)