Page 1 of 2

beta5: crash on makeTexture3D()

Posted: Sun Jun 27, 2010 6:14 pm
by netzakh
Beta5 crashed every time (Windows XP SP3) after I enter my character name. Adding diagnostic print() calls revealed that the problem was in the line between the two added print()s:

Code: Select all

local n = core.noise.new(3)
print("noise.new()")
_3DNoise = n:makeTexture3D(64, 64, 64, 0, 0, 0)
print("_3DNoise")
end of the resulting stdout.txt:

Code: Select all

bind	EXIT	function: 08ECEFC8
56 frames in 10.231 seconds = 5.47356 FPS
45 ticks  in 10.687 seconds = 4.21072 TPS
[INVENTORY] define slot	1	In inventory
noise.new()
BTW, most of the download archive is occupied by sounds, and I strongly suggest that soundless versions are provided as an option.

Re: beta5: crash on makeTexture3D()

Posted: Sun Jun 27, 2010 11:08 pm
by darkgod
But the musics are great! (yeah I agree ;> )

As for the crash ... hum !

Could you run it under gdb for me please?
http://doku.t-o-m-e.net/tome4:running_tome_with_gdb

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 7:24 pm
by netzakh
I got a SIGSEGV under gdb, traceback hurled 36 entries with only last 19 remaining on DOS screen (the last one is WinMain()). Now I need som instruction how to echo/redirect gdb output to a log...

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 7:25 pm
by darkgod
cant the windows terminal scroll up ?

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 7:34 pm
by Shoob
try this:

Code: Select all

set logging on
before you run tome

going to enter that into the doku...

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 7:36 pm
by netzakh
... Not in XP, apparently; fortunately, gdb's help guided me to trying "backtrace 10":
#0 0x00000000 in ?? ()
#1 0x004327c1 in noise_texture3d (L=0x3e4748) at src/noise.c:280
#2 0x0046110f in luaD_precall (L=0x3e4748, func=0x9ede190, nresults=1)
at src/luajit/ldo.c:326
#3 0x0045c9cf in luaV_execute (L=0x3e4748, nexeccalls=1)
at src/luajit/lvm.c:590
#4 0x0046133e in luaD_call (L=0x3e4748, func=0x9ede070, nResults=1)
at src/luajit/ldo.c:384
#5 0x00456ba9 in lua_call (L=0x3e4748, nargs=1, nresults=1)
at src/luajit/lapi.c:777
#6 0x0046b811 in ll_require (L=0x3e4748) at src/luajit/loadlib.c:504
#7 0x0046110f in luaD_precall (L=0x3e4748, func=0x9ede010, nresults=1)
at src/luajit/ldo.c:326
#8 0x00461327 in luaD_call (L=0x3e4748, func=0x9ede010, nResults=1)
at src/luajit/ldo.c:383
#9 0x00456bfb in f_call (L=0x3e4748, ud=0x22faa0) at src/luajit/lapi.c:795

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 7:44 pm
by Shoob
oh well, set logging on works in windows 7 at least. [EDIT: if you were referring to dg then disregard this post]

what version of gdb do you have? mine is 6.3

try

Code: Select all

help support
and see what set logging options they have?

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 8:02 pm
by netzakh
To shoob:

my reply was about scrolling of command prompt windows, I downloaded the latest gdb version today, so set logging is supported.

BTW, I also added some info as to installing gdb to the doku, as it was not very straightforward.

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 9:09 pm
by darkgod
Weird .. line 280 is a return .. Hum

Can you run glewinfo as stated there please?
http://forum.t-o-m-e.net/viewtopic.php?p=85488#p85488

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 10:37 pm
by netzakh

Code: Select all

GLEW version 1.5.4
Reporting capabilities of pixelformat 2
Running on a GDI Generic from Microsoft Corporation
OpenGL version 1.1.0 is supported

GL_VERSION_1_1:                                                OK 
---------------

GL_VERSION_1_2:                                                MISSING 
---------------
  glCopyTexSubImage3D:                                         MISSING
  glDrawRangeElements:                                         MISSING
  glTexImage3D:                                                MISSING
  glTexSubImage3D:                                             MISSING
(the remaining 170+K skipped)

If this can be corrected by installing some software, let me know.

Otherwise, should I comment out that makeTexture3D() call in load.lua or use a "no-fancy" version as suggested in another thread?

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 10:56 pm
by darkgod
Wohhhaaa now that's an oldie ! :)

Use the nofancy version AND comment it out, I'll make a fix

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 10:58 pm
by Antagonist
Whoa...

You have absolutely no drivers installed. Not integrated or otherwise.

I would advise you find out what graphics card you have, even if its a cheap intel onboard, and getting and installing its drivers. You're just using inbuilt windows generic stuff atm.

EDIT: Seriously, how are you even using anything approaching a decent resolution without drivers? You're basically using day-to-day what most other ppl only see in safe mode.

Re: beta5: crash on makeTexture3D()

Posted: Mon Jun 28, 2010 11:21 pm
by netzakh
Update: I have just installed most recent drivers (after downloading the sources, seeing that ...Texture3D call in noise.c, googling what it means, anyway) so now I have OpenGL 1.3 support and that crash disappeared. I still got a partially-black screen (with menu working on ESC) with some nil-value-index errors in stdout.txt, which I will post today or tomorrow.

I must thank DG, Shoob, and Antagonist for what I learnt about software and hardware today. I am basically an advanced computer user (though I have a computer education, so I am able to read sources if necessary) and I have never come across MinGW, glew and several other things until now.

Re: beta5: crash on makeTexture3D()

Posted: Tue Jun 29, 2010 7:30 am
by darkgod
:)

Can you post your stdout.txt file please?
Also is that on loading a savefile or on a new one ?
Load is known to be broken in beta5

Re: beta5: crash on makeTexture3D()

Posted: Tue Jun 29, 2010 9:12 am
by Antagonist
I dont think OpenGL 1.3 will cut it.

Heh, its still way better than Windows Generic driver, but your game will slow to a crawl the moment you even see water, nevermind anything fancier.

Dont worry tho, I think DG has raised the bar on GPUs before shaders and stuff is activated for beta6.