Jump to content
The Dark Mod Forums
Sign in to follow this  
mohij

Another code problem

Recommended Posts

So just wanted to post what I am stuck with at the moment, perhaps somebody knows how to solve the problem.

There is an infinite loop that keeps calling until Sys_Print segfaults, because the string buf got too big.

This is the backtace I have:

#0  Sys_Print (level=3, 
	  buf=0x835bb80 "include/modulesystem.h:197\nassertion failure: SingletonModuleRef::getTable: type=\"registry\" version=\"1\" - module-reference used without being initialised\n", '-' <repeats 16 times>, "\n", '-' <repeats 16 times>, "\n", length=188)
	  at radiant/console.cpp:168
  #1  0x08068784 in SysPrintErrorStream::write (this=0x831e130, 
	  buffer=0x835bb80 "include/modulesystem.h:197\nassertion failure: SingletonModuleRef::getTable: type=\"registry\" version=\"1\" - module-reference used without being initialised\n", '-' <repeats 16 times>, "\n", '-' <repeats 16 times>, "\n", 
	  length=188) at radiant/console.cpp:264
#2  0x08060db3 in ostream_write<TextOutputStream> (ostream=@0x831e130, 
	  string=0x835bb80 "include/modulesystem.h:197\nassertion failure: SingletonModuleRef::getTable: type=\"registry\" version=\"1\" - module-reference used without being initialised\n", '-' <repeats 16 times>, "\n", '-' <repeats 16 times>, "\n")
	  at libs/stream/textstream.h:173
  #3  0x0806805c in operator<< <char*> (ostream=@0x831e130, t=@0xbfc6829c) at include/itextstream.h:89
  #4  0x0808a5d4 in PopupDebugMessageHandler::handleMessage (this=0x831ee50) at radiant/main.cpp:199
  #5  0x080626c3 in SingletonModuleRef<Registry>::getTable (this=0x831e064) at include/modulesystem.h:197
  #6  0x080626e4 in GlobalModule<Registry>::getTable () at include/modulesystem.h:229
  #7  0x080626f1 in GlobalRegistry () at include/iregistry.h:103
  #8  0x08065f65 in Sys_LogFile (enable=true) at radiant/console.cpp:61
  #9  0x0806638d in Sys_Print (level=3, buf=0x8280930 "SingletonModuleRef::initialise: type=", length=37)
	  at radiant/console.cpp:174
  #10 0x08068784 in SysPrintErrorStream::write (this=0x831e130, buffer=0x8280930 "SingletonModuleRef::initialise: type=", 
	  length=37) at radiant/console.cpp:264
 #11 0x08060db3 in ostream_write<TextOutputStream> (ostream=@0x831e130, 
	 string=0x8280930 "SingletonModuleRef::initialise: type=") at libs/stream/textstream.h:173
 #12 0x08083f4c in operator<< <char [38]> (ostream=@0x831e130, t=@0x8280930) at include/itextstream.h:89
 #13 0x0808a251 in SingletonModuleRef<Registry>::initialise (this=0x831e064, name=0x8280c7d "*") at include/modulesystem.h:190
 #14 0x0808a2f1 in GlobalModuleRef (this=0xbfc68957, name=0x8280c7d "*") at include/modulesystem.h:245
 #15 0x0808989d in main (argc=Cannot access memory at address 0x1

Greetings

Share this post


Link to post
Share on other sites

I never used the debug build in the last six months, so please try it again by using scons build="release" (is faster anyway, at least in Windows). :)

Share this post


Link to post
Share on other sites

Well, now it also segfaults with BUILD="release", quite stupid I guess. And according to gdb it is the same error (eventhough I can't get much useful information out of it now). So still the same problem.

Share this post


Link to post
Share on other sites

Hm, I assume you have the complete SVN checkout on your end with all the XML files?

 

Can you check if the latest 0.9.0 release version segfaults as well? If it does, there might be another conflict on your system (install the release into any other folder, it won't interfere with your local repository).

 

An infinite loop at startup is something that never occurred to me, are all the DLLs (.so) files in the modules/ folder? I could imagine that a missing module might cause the modulesystem to barf.

Share this post


Link to post
Share on other sites

Hey, cool, you found the problem, I ran the program from build/debug / build/release and not from install. Now it works, thanks! And I spent two days staring into gdb....

Share this post


Link to post
Share on other sites

Glad I could help. :) You will probably need a working Doom 3 installation in order to make use of all features (creating lights, assigning textures and such).

Share this post


Link to post
Share on other sites

Yes I know, my Doom 3 should be on the way soon, importing takes time. But I found another bug, so I have something to do until Doom 3 arrives (Radiant crashes when adding a light without a brush selected). Will take a look at it tomorrow.

Share this post


Link to post
Share on other sites
Yes I know, my Doom 3 should be on the way soon, importing takes time. But I found another bug, so I have something to do until Doom 3 arrives (Radiant crashes when adding a light without a brush selected). Will take a look at it tomorrow.

 

That's likely because Doom 3 is not yet installed. Dark Radiant doesn't include light shaders.

Share this post


Link to post
Share on other sites

This probably is related to having no Doom 3 installed on your end. DarkRadiant is relying on some .def files of the game. It probably can be fixed by placing them in a dummy folder, but all materials and light textures would be missing as well.

 

Importing the game? Where are you from? Isn't there some local store with sold-out stuff or isn't amazon or anything else having a copy to order?

 

edit: New Horizon beat me to it.

Share this post


Link to post
Share on other sites

with a name like mohij I assume he's from somewhere less commercialised than all us westerners, but that's just a guess


shadowdark50.gif keep50.gif

Share this post


Link to post
Share on other sites

I opened an issue for this on the bugtracker.

Share this post


Link to post
Share on other sites
Importing the game? Where are you from? Isn't there some local store with sold-out stuff or isn't amazon or anything else having a copy to order?
I'm from Germany, I just ordered on amazon.com (US) because here in Germany we can only get censored versions of Doom 3. So I simply ordered the US version to prevent any problems arising from a modified version of Doom 3 and additionally I just like games in english as the rest of the software I use is english too.
with a name like mohij I assume he's from somewhere less commercialised than all us westerners, but that's just a guess
No, mohij is not my real name, just as Komag is probably not yours ;-)

Share this post


Link to post
Share on other sites

I agree about the English version, this is probably better.

 

This means we're at least in the same time-zone, as I'm from Austria. Not that it would make much difference, as writing in English doesn't seem to be a hurdle for you. :) But sometimes it's an advantage if you can be online at the same time as your partners.

Share this post


Link to post
Share on other sites
I'm from Germany, I just ordered on amazon.com (US) because here in Germany we can only get censored versions of Doom 3. So I simply ordered the US version to prevent any problems arising from a modified version of Doom 3 and additionally I just like games in english as the rest of the software I use is english too.No, mohij is not my real name, just as Komag is probably not yours ;-)

 

I bought the german version nevertheless, as a tribute to Id, but I downloaded the proper version instead. I don't feel bad about it, because I still baught the original anyway. :) The most annoying thing is that in Austria you also get the censored version, even though we don't have such censorship going on, but nobod is cerating two versions just for that. :)

 

As for having a different version, that shouldn't matter. The mod will work with the german version as well.


Gerhard

Share this post


Link to post
Share on other sites
How can you have a censored Doom 3 anyway? Do they replace all of the monsters with pink fairies and unicorns or something?

 

Most likely they have changed the colour of the blood. Actually D3 is not really censored as other software is. It is restricted to 18 years though. If a store doesn't offer it you can still order it. I haven't looked at the german version, but I'm not sure if they really changed anything. Since it is rated as "adult only", it shouldn't matter.

 

In Germany there is also a real censoreship level, but this is IMO rarely invoked now. Software has to go through a rating, and only extreme cases will be restricted, so that they are not even allowed to have advertisments for them. THis affects mostly software that uses Nazi symbols. So Wolfenstein 3D and Return to castle Wolfenstein are not allowed to be sold here in it's unmodified form. Doesn't make sense anyway, because the point of these games is to fight AGAINST Nazis, not help them, but that's German law for you. <_<


Gerhard

Share this post


Link to post
Share on other sites
Most likely they have changed the colour of the blood.

"It's okay, kids! Killing people is fine as long as they have green blood!" :rolleyes:


My games | Public Service Announcement: TDM is not set in the Thief universe. The city in which it takes place is not the City from Thief. The player character is not called Garrett. Any person who contradicts these facts will be subjected to disapproving stares.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...