beta5: crash on makeTexture3D()

Where bugs go to lie down and rest

Moderator: Moderator

Message
Author
netzakh
Wayist
Posts: 19
Joined: Sun Jun 27, 2010 6:02 pm

beta5: crash on makeTexture3D()

#1 Post 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.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: beta5: crash on makeTexture3D()

#2 Post 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
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

netzakh
Wayist
Posts: 19
Joined: Sun Jun 27, 2010 6:02 pm

Re: beta5: crash on makeTexture3D()

#3 Post 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...

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: beta5: crash on makeTexture3D()

#4 Post by darkgod »

cant the windows terminal scroll up ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

Re: beta5: crash on makeTexture3D()

#5 Post by Shoob »

try this:

Code: Select all

set logging on
before you run tome

going to enter that into the doku...
Oliphant am I, and I never lie.

netzakh
Wayist
Posts: 19
Joined: Sun Jun 27, 2010 6:02 pm

Re: beta5: crash on makeTexture3D()

#6 Post 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
East or West, ToME is best. - Netzakh

Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

Re: beta5: crash on makeTexture3D()

#7 Post 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?
Oliphant am I, and I never lie.

netzakh
Wayist
Posts: 19
Joined: Sun Jun 27, 2010 6:02 pm

Re: beta5: crash on makeTexture3D()

#8 Post 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.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: beta5: crash on makeTexture3D()

#9 Post 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
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

netzakh
Wayist
Posts: 19
Joined: Sun Jun 27, 2010 6:02 pm

Re: beta5: crash on makeTexture3D()

#10 Post 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?

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: beta5: crash on makeTexture3D()

#11 Post by darkgod »

Wohhhaaa now that's an oldie ! :)

Use the nofancy version AND comment it out, I'll make a fix
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Antagonist
Higher
Posts: 71
Joined: Sun May 23, 2010 9:55 am

Re: beta5: crash on makeTexture3D()

#12 Post 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.

netzakh
Wayist
Posts: 19
Joined: Sun Jun 27, 2010 6:02 pm

Re: beta5: crash on makeTexture3D()

#13 Post 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.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: beta5: crash on makeTexture3D()

#14 Post 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
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Antagonist
Higher
Posts: 71
Joined: Sun May 23, 2010 9:55 am

Re: beta5: crash on makeTexture3D()

#15 Post 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.

Post Reply