Author Topic: Rev 1154 , runtime segfault  (Read 9260 times)

Offline Recon

  • Lieutenant
  • ***
  • Posts: 60
  • Karma: +1/-0
    • View Profile
Rev 1154 , runtime segfault
« on: April 18, 2007, 07:00:09 am »
Hi all,
   well , I'v decided it time I got out of my sandbox and started trying to get to grips with precursors svn. the problems is that the last 3 times I tried to get it compiled and working I have failed. this was not a problem while I was working in my sandbox but now that I want to start working with precursors code base it's a real roadblock.

   I know that everyone is busy with exams and stuff, but it would be so much easier if I could start looking at precursors with a working codebase so I could get the hang of how it's put together.

   Now i'm not sure what is the actual cause of this error but I would guess that since  the last update of precursors svn, cel has changed. Since i dont know what version of CS and cel were in use when precursors svn was last updated I'm stuck with trying to debug a large piece of code that I am totally unfamiliar with.
 
  So, I suggest we start keeping track of the REV# of CS and CEL that where in use when precursors is updated. I think this would be a good improvement as it would help keep the development more accessible by allowing development to continue even if an update to CS or CEL breaks Precursors, development could continue on with the last usable svn's of CEL and CS while the new problem is fixed.   

 going to try revert CS and CEL back to the 13th April versions and see if that will help. but as I am not sure what versions whitelynx was using when he commited his last update that could just be a waste of time.

would welcome some feedback.
 



Precursors Revision: 1154
CS Revision: 26783
CEL Revision: 2703

Precursors and cel compile without errers
CS cant compile cs_cegui.o ( ingnore for the moment ) but no other errors

Error
Code: [Select]
mec@mec-desktop:~/development$ cd precursors/
mec@mec-desktop:~/development/precursors$ gdb precursors
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /home/mec/development/precursors/precursors
[Thread debugging using libthread_db enabled]
[New Thread -1213936736 (LWP 10075)]
preClient version 0.3.4 Build 1154 by G33X Nexus Entertainment.
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named blcelc
Error running text 'import blcelc'

crystalspace.pluginmgr.loadplugin:
  failed to initialize plugin 'cel.behaviourlayer.python'

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version (direct renderer)
  Visual ID: 0x00000023, 24bit TrueColor
  R8:G8:B8:A8,
  level 0, double buffered

crystalspace.canvas.openglcommon.driverdb:
  Applied: Broken ATI point sprites (NV)

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce 6600 LE/AGP/SSE2 (vendor: NVIDIA Corporation)
  version 2.1.0 NVIDIA 97.46
  Using windowed mode at resolution 1024x768.
  Pixel format: Color: 24 Alpha: 8 Depth: 24 Stencil: 8 AccumColor: 48
  AccumAlpha: 16 MultiSamples: 0
  Multisample: disabled

crystalspace.graphics3d.opengl:
  Using VBO with 64 MB of VBO memory

gne.Precursors:
  Joystick support enabled. Loading joystick plugin.

crystalspace.device.joystick.linux:
  No operable joystick found


crystalspace.pluginmgr.loadplugin:
  failed to initialize plugin 'crystalspace.device.joystick.linux'

gne.Precursors:
  Attempt to load plugin 'crystalspace.device.joystick.linux' failed

crystalspace.pluginmgr.loadplugin:
  could not load plugin 'precursors.pcfactory.servicemanager'

crystalspace.cel.physicallayer:
  CEL 'precursors.pcfactory.servicemanager' property class factory plugin
  missing!
Warning: Cannot convert string "vlines2" to type Pixmap
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
gne.Precursors:  Error loading precursors.pcfactory.servicemanager factory!

crystalspace.pluginmgr.loadplugin:
  could not load plugin 'precursors.pcfactory.consumerproducer'

crystalspace.cel.physicallayer:
  CEL 'precursors.pcfactory.consumerproducer' property class factory plugin
  missing!
Warning: Cannot convert string "vlines2" to type Pixmap
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
gne.Precursors:  Error loading precursors.pcfactory.consumerproducer factory!
start BehaviorLaver
end construct BehaviorLaver
Warning: Cannot convert string "vlines2" to type Pixmap
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
gne.Precursors:  Couldn't find python behaviour layer!
end init content manager
[New Thread -1270080592 (LWP 10085)]
  Application initialized successfully.
Loading window 'Root'.
Loading window 'Main'.
Adding level 'flightsim'.
Adding level '/precursors/levels/Jamfile'.

crystalspace.bugplug:
  BugPlug loaded...

precursors.addon.window.main:
  Hold on, the hamster is working...
Loading window 'Progress'.
Loading window 'Hud'.

precursors.addon.contentmanager:
  Loading the server.

cel.networklayer.server:
  Starting server on port 60600.
[New Thread -1298941008 (LWP 10088)]

precursors.addon.contentmanager:
  Starting the server.
  Creating level entity...
Startload level
  Loading level '/precursors/levels/flightsim'...

precursors.behaviourlayer.c++.level:
  Start loading level.

crystalspace.graphics3d.shader.fixed:
  Multitexture units: moderate 4

precursors.behaviourlayer.c++.level:
  Loading region 'space2'.
Start Level::LOadEntitiesInReagon:space2
  Loading entities in sector 'Scene', region 'ent_level_space2'.
  Start loading level.
Not Deleted 0xb39456a8 '(null)' ref=1
Not Deleted 0xb341ccf8 'flare_center' ref=1
Not Deleted 0xb341cf78 'flare_spark1' ref=1
Not Deleted 0xb341d278 'flare_spark2' ref=1
Not Deleted 0xb341d488 'flare_spark3' ref=1
Not Deleted 0xb341d708 'flare_spark4' ref=1
Not Deleted 0xb341d988 'flare_spark5' ref=1
Not Deleted 0xb3454718 'Scene' ref=1
Not Deleted 0xb341fd30 'Lamp.011' ref=1
Not Deleted 0xb3420f08 'Lamp.010' ref=1
Not Deleted 0xb3421320 'Lamp.009' ref=1
Not Deleted 0xb3436358 'Lamp.008' ref=1
Not Deleted 0xb3436cf0 'Lamp.007' ref=1
Not Deleted 0xb34376d8 'Lamp.006' ref=1
Not Deleted 0xb34380c0 'Lamp.005' ref=1
Not Deleted 0xb1f0b030 'Lamp.004' ref=1
Not Deleted 0xb1f0b8e8 'Lamp.003' ref=1
Not Deleted 0xb1f0c258 'flare_center' ref=1
Not Deleted 0xb1f0c7d0 'flare_spark1' ref=2
Not Deleted 0xb1f0cd48 'flare_spark2' ref=2
Not Deleted 0xb1f0d2c0 'flare_spark3' ref=4
Not Deleted 0xb1f0d838 'flare_spark4' ref=3
Not Deleted 0xb1f0ddb0 'flare_spark5' ref=3
Not Deleted 0xb1f0e270 'Lamp.002' ref=1
Not Deleted 0xb1f0ec58 'Lamp.001' ref=1
Not Deleted 0xb1f0f640 'Lamp' ref=1
  Loading region 'space2'.
Start Level::LOadEntitiesInReagon:space2
END Level::LOadEntitiesInReagon
  Stop loading level.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1213936736 (LWP 10075)]
0xb62c6f4f in celEntity::NotifySiblingPropertyClasses (this=0xaf8c83c0) at plugins/stdphyslayer/entity.cpp:77
77          pc->PropertyClassesHaveChanged ();
(gdb) print pc
$1 = (class iCelPropertyClass *) 0x8fc58fc
(gdb) bt
#0  0xb62c6f4f in celEntity::NotifySiblingPropertyClasses (this=0xaf8c83c0)
    at plugins/stdphyslayer/entity.cpp:77
#1  0xb62a8814 in celPropertyClassList::Add (this=0x8f039b8, obj=0x8fc58fc)
    at plugins/stdphyslayer/propclas.cpp:60
#2  0xb62aee72 in celPlLayer::CreatePropertyClass (this=0x827a748, entity=0xaf8c842c,
    propname=0xaf8c3791 "pcnetworkentity") at plugins/stdphyslayer/pl.cpp:825
#3  0xb6247a76 in celAddOnCelEntity::Load (this=0x836f248, node=0xaf8c7d24, mesh=0x0)
    at plugins/addons/celentity/celentity.cpp:539
#4  0x0816bf9f in Precursors::ContentManager::CreateEntity (this=0xb4a3bf30,
    entityname=0xb394566c "Archigos1", params=0x8f89498, activateRegion=true)
    at src/Common/ContentManager/ContentManager.cpp:1009
#5  0xb321adbd in Precursors::Networking::celServerNetworkLayer::CreateEntity (this=0xb4beb6b0, creator=0x0,
    eventID=0, entityName=0xb394566c "Archigos1", params=0x8f89498)
    at plugins/network/celServerNetworkLayer/celServerNetworkLayer.cpp:754
#6  0xb32190d7 in Precursors::Networking::celServerNetworkLayer::CreateEntity (this=0xb4beb6b0, creator=0x0,
    eventID=0, entityName=0xb394566c "Archigos1", sector=0xb3454750, region=0x8eef5b0, params=0x8f89450)
    at plugins/network/celServerNetworkLayer/celServerNetworkLayer.cpp:733
#7  0x0816c496 in Precursors::ContentManager::CreateEntitiesFromMap (this=0xb4a3bf30, sector=0xb3454750,
    region=0x8eef5b0) at src/Common/ContentManager/ContentManager.cpp:1070
#8  0x0815f57d in Precursors::BehaviourLayer::Level::LoadEntitiesInRegion (this=0xb4bec270,
    celRegion=0x8eef5b0) at src/Common/BehaviourLayer/Level.cpp:127
#9  0x0815f749 in Precursors::BehaviourLayer::Level::SendMessage (this=0xb4bec270, msg_id=11, pc=0xb4bec784,
    ret=@0xbfa85e9c, params=0x8e8bae0, arg=0xbfa85e84 "H????^??!\235v?0???????L")
    at src/Common/BehaviourLayer/Level.cpp:153
#10 0x08160e5f in Precursors::BehaviourLayer::Base::SendMessageV (this=0xb4bec270,
    msg_id=0xb47ac40c "pczonemanager_addregion", pc=0xb4bec784, ret=@0xbfa85e9c, params=0x8e8bae0,
    arg=0xbfa85e84 "H????^??!\235v?0???????L") at src/Common/BehaviourLayer/Base.cpp:77
#11 0x08160df7 in Precursors::BehaviourLayer::Base::SendMessage (this=0xb4bec270,
    msg_id=0xb47ac40c "pczonemanager_addregion", pc=0xb4bec784, ret=@0xbfa85e9c, params=0x8e8bae0)
    at src/Common/BehaviourLayer/Base.cpp:68
#12 0xb47307fe in celPcZoneManager::SendZoneMessage (this=0xb4bec770, region=0x8eef5b0,
    msgid=0xb47ac40c "pczonemanager_addregion") at plugins/propclass/zone/zone.cpp:859
#13 0xb47312c6 in celRegion::Load (this=0x8eef5b0, allow_entity_addon=true)
    at plugins/propclass/zone/zone.cpp:292
#14 0xb4733b0c in celPcZoneManager::ActivateRegion (this=0xb4bec770, region=0x0, allow_entity_addon=true)
    at plugins/propclass/zone/zone.cpp:1202
#15 0xb4738f67 in celPcZoneManager::Load (this=0xb4bec770, path=0xbfa86160 "/precursors/levels/flightsim",
    file=0x81b046b "level.xml") at plugins/propclass/zone/zone.cpp:1022
#16 0xb4749d8a in celPcZoneManager::PcZoneManager::Load (this=0xb4bec9d0,
---Type <return> to continue, or q <return> to quit---
    path=0xbfa86160 "/precursors/levels/flightsim", file=0x81b046b "level.xml") at zone.h:423
#17 0x0816cb2c in Precursors::ContentManager::LoadLevel (this=0xb4a3bf30,
    levelName=0xbfa86160 "/precursors/levels/flightsim") at src/Common/ContentManager/ContentManager.cpp:639
#18 0x0816aee6 in Precursors::ContentManager::StartLevel (this=0xb4a3bf30)
    at src/Common/ContentManager/ContentManager.cpp:503
#19 0x0816b645 in Precursors::ContentManager::StartServer (this=0xb4a3bf30, dedicated=false)
    at src/Common/ContentManager/ContentManager.cpp:329
#20 0x08165262 in Precursors::ContentManager::StartServer (this=0xb4a3bf30, listenPort=60600,
    levelDir=0x8465f88 "flightsim", dedicated=false) at src/Common/ContentManager/ContentManager.cpp:382
#21 0x0818cc70 in preWindowMain::Action (this=0xb4bf86c0, windowName=@0xbfa894dc)
    at src/Common/WindowManager/windows/main.cpp:469
#22 0x08191ec5 in preGUIWindow::OnClicked (this=0xb4bf86c0, args=@0xbfa89670)
    at src/Common/util/preGUIWindow.cpp:204
#23 0x0818040f in CEGUI::MemberFunctionSlot<preGUIWindow>::operator() (this=0x8a906f0, args=@0xbfa89670)
    at CEGUIMemberFunctionSlot.h:55
#24 0xb7db5b18 in CEGUI::Event::operator() (this=0xb8, args=@0xbfa89670) at CEGUISubscriberSlot.h:82
#25 0xb7db6f41 in CEGUI::EventSet::fireEvent_impl (this=0x84dbd64, name=@0xb8, args=@0xb8)
    at CEGUIEventSet.cpp:228
#26 0xb7db6f91 in CEGUI::EventSet::fireEvent (this=0xb8, name=@0xb7f28840, args=@0xbfa89670,
    eventNamespace=@0xaf8c9f00) at CEGUIEventSet.cpp:170
#27 0xb7dfb594 in CEGUI::Window::onMouseClicked (this=0xb8, e=@0xb8) at CEGUIWindow.cpp:2933
#28 0xb7df2906 in CEGUI::System::injectMouseButtonUp (this=0x8466140, button=CEGUI::LeftButton)
    at CEGUISystem.cpp:854
#29 0xb608ac48 in csCEGUIEventHandler::OnMouseUp (this=0x84513c0, event=@0xb4c1ff94)
    at plugins/gui/cegui/ceguievthandler.cpp:136
#30 0xb609e9fe in csBaseEventHandler::HandleEvent (this=0x84513c0, event=@0xb4c1ff94)
    at libs/csutil/csbaseeventh.cpp:146
#31 0xb609edb1 in csBaseEventHandler::EventHandlerImpl::HandleEvent (this=0xb4a3c5b0, event=@0xb4c1ff94)
    at csbaseeventh.h:87
#32 0x080f6184 in csEventTree::Dispatch (this=0x8b90c50, e=@0xb4c1ff94) at libs/csutil/cssubscription.cpp:576
#33 0x080dd41e in csEventQueue::Dispatch (this=0xb7a388d0, e=@0xb4c1ff94) at libs/csutil/cseventq.cpp:315
#34 0x080dd52b in csEventQueue::Process (this=0xb7a388d0) at libs/csutil/cseventq.cpp:286

#35 0x080aac1f in csDefaultRunLoop (r=0xb7a38774) at libs/csutil/generic/runloop.cpp:91
#36 0x08099955 in csApplicationFramework::Run () at csapplicationframework.h:330
#37 0x08099074 in Precursors::preClient::Application (this=0xbfa8a260) at src/Client/preClient.cpp:560
#38 0x080ae1c8 in csApplicationFramework::Start () at libs/cstool/csapplicationframework.cpp:71
#39 0x080ae39a in csApplicationFramework::Main (this=0xbfa8a260, argc=1, argv=0xbfa8a3d4)
    at libs/cstool/csapplicationframework.cpp:131
#40 0x080946d0 in csApplicationRunner<Precursors::preClient>::Run (argc=1, argv=0xbfa8a3d4)
---Type <return> to continue, or q <return> to quit---
    at csapplicationframework.h:441
#41 0x0809407d in main (argc=1, argv=0xbfa8a3d4) at src/Client/main.cpp:55
(gdb)






Offline whitelynx

  • GNE Founder
  • Head Code Monkey
  • Commodore
  • *****
  • Posts: 304
  • Karma: +4/-0
  • Internet Idiocy Pundit
    • View Profile
Re: Rev 1154 , runtime segfault
« Reply #1 on: April 19, 2007, 10:30:22 am »
Well, there seem to be a few problems here... First, of course, is that you can't build the CEGUI plugin... that's rather important since our main menu and HUD both use that. Second, it's saying it can't find the service manager plugin, which is a bit strange; I don't have the service manager built as a separate plugin here either, and last I knew my copy worked fine. I'm now in the process of distcleaning and rebuilding CS, CEL, and Precursors, since I recently removed my Python 2.5 install in favor of 2.4. I'll let you know how it goes.
"Without music, life is a mistake, a trial, an exile."
 - Nietzsche

Offline Rosencrantz

  • Gray Haired
  • Lieutenant Commander
  • ****
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Rev 1154 , runtime segfault
« Reply #2 on: April 19, 2007, 07:42:02 pm »
I'll try to look into this as well when I get back to work (but I may not have time until Saturday).

Offline Recon

  • Lieutenant
  • ***
  • Posts: 60
  • Karma: +1/-0
    • View Profile
Re: Rev 1154 , runtime segfault
« Reply #3 on: April 30, 2007, 05:47:20 am »
seems there is a problem with ce_gui in the svn, it has not been regenerated or somthing.
I posted it as a bug and it should get fixed soon. Will try precursors again after that. now got to fix my plugins as latested svn just bonked them again.


Offline Rosencrantz

  • Gray Haired
  • Lieutenant Commander
  • ****
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: Rev 1154 , runtime segfault
« Reply #4 on: May 03, 2007, 05:16:55 am »
Sorry, life's been alot crazy for me recently, I probably won't be caught up with anything until June or so.


Offline contingencyplan

  • Villain
  • Ivory-Tower Theorist
  • Admiral
  • *****
  • Posts: 977
  • Karma: +1/-0
  • Must I sin once, and repent forever?
    • View Profile
    • My Blog
Re: Rev 1154 , runtime segfault
« Reply #5 on: May 04, 2007, 12:57:18 pm »
Sorry, life's been alot crazy for me recently, I probably won't be caught up with anything until June or so.


Understandable. Hope everything works out!
We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true. 
    ~Robert Wilensky

It is not bigotry to be certain we are right; but it is bigotry to be unable to imagine how we might possibly have gone wrong.
    ~GK Chesterton

Men never do evil so completely and cheerfully as when they do it from a religious conviction.
    ~Blaise Pascal