Jump to content
The Dark Mod Forums

Another code problem


mohij

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

Link to comment
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.

Link to comment
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.

Link to comment
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.

Link to comment
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.

Link to comment
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
Link to comment
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 ;-)
Link to comment
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.

Link to comment
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

Link to comment
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

Link to comment
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.
Link to comment
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.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 3 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...