Author Topic: Segmentation fault in CVS version  (Read 1397 times)

green_lion

  • Traveller
  • *
  • Posts: 14
    • View Profile
Segmentation fault in CVS version
« on: January 15, 2006, 06:39:43 pm »
I have compiled PS from CVS, date 2006-01-06, cs/cel from 2006-01-04.

And pssetup and psclient throw SEGV at startup.

Should I try newer versions or something was wrong with build?

pssetup backtrace:
Code: [Select]

#0  0x08081686 in pawsSetupWindow::LoadSettings (this=0x88d7588) at src/setup/pawssetupwindow.cpp:434
#1  0x08084a0e in pawsSetupWindow::PostSetup (this=0x88d7588) at src/setup/pawssetupwindow.cpp:231
#2  0x08106be2 in pawsWidget::Load (this=0x88d7588, node=0x88e76d4) at src/common/paws/pawswidget.cpp:593
#3  0x0811b189 in PawsManager::LoadWidget (this=0x833daf8, widgetNode=@0xbfed29d8) at src/common/paws/pawsmanager.cpp:708
#4  0x0811b448 in PawsManager::LoadWidget (this=0x833daf8, widgetFile=0x81a2381 \"data/config/setupwindow.xml\")
    at src/common/paws/pawsmanager.cpp:643
#5  0x080793a0 in psSetupApp::LoadWidgets (this=0x833dcf8) at src/setup/pssetup.cpp:188
#6  0x0807a289 in psSetupApp::Init (this=0x833dcf8) at src/setup/pssetup.cpp:152
#7  0x0807a84f in main (argc=1, argv=0xbfed2d74) at src/setup/pssetup.cpp:288


psclient:
Code: [Select]

#0  0x00f0bc66 in typeinfo for scfImplementation1 () from /home/alex/Develop/planeshift/CS/engine.so
#1  0x00fa22bc in csLoader::ParseSector (this=0x8cd25e0, ldr_context=0x95140d8, node=0x8e1b1f8, ssource=0x0)
    at plugins/csparser/csloader.cpp:5180
#2  0x00fa3069 in csLoader::LoadMap (this=0x8cd25e0, ldr_context=0x95140d8, worldnode=0x9514148, ssource=0x0)
    at plugins/csparser/csloader.cpp:1170
#3  0x00fa369c in csLoader::LoadMap (this=0x8cd25e0, world_node=0x9514148, clearEngine=false, region=0x945bdf8,
    curRegOnly=false, checkdupes=false, ssource=0x0) at plugins/csparser/csloader.cpp:789
#4  0x00f9429b in csLoader::LoadMapFile (this=0x8cd25e0, file=0x8430d2c \"world\", clearEngine=false, region=0x945bdf8,
    curRegOnly=false, checkdupes=false, ssource=0x0) at plugins/csparser/csloader.cpp:766
#5  0x0837fc70 in pawsObjectView::LoadMap (this=0x94e9900, map=0xbf843030 \"/planeshift/world/podium\",
    sector=0xbf842ff4 \"room\") at src/common/paws/pawsobjectview.cpp:103
#6  0x08381535 in pawsObjectView::Setup (this=0x94e9900, node=0x93be094) at src/common/paws/pawsobjectview.cpp:75
#7  0x08368037 in pawsWidget::Load (this=0x94e9900, node=0x93be094) at src/common/paws/pawswidget.cpp:584
#8  0x0837484e in pawsWidget::LoadChildren (this=0x915a018, node=0x8f8fc3c) at src/common/paws/pawswidget.cpp:667
#9  0x0836809a in pawsWidget::Load (this=0x915a018, node=0x8f8fc3c) at src/common/paws/pawswidget.cpp:590
#10 0x083860a9 in PawsManager::LoadWidget (this=0x8e14238, widgetNode=@0xbf843318) at src/common/paws/pawsmanager.cpp:708
#11 0x08386368 in PawsManager::LoadWidget (this=0x8e14238, widgetFile=0x8404e71 \"data/gui/charpick.xml\")
    at src/common/paws/pawsmanager.cpp:643
#12 0x0814ca9e in psEngine::Initialize (this=0x8e0eb70, level=1) at src/client/psengine.cpp:505
#13 0x0829d8b9 in pawsSplashWindow::Draw (this=0x8e8c220) at src/client/gui/pawssplashwindow.cpp:60
#14 0x0836d3d9 in pawsWidget::DrawChildren (this=0x8e4b6a8) at src/common/paws/pawswidget.cpp:1102
#15 0x08292069 in psMainWidget::DrawChildren (this=0x8e4b6a8) at src/client/gui/psmainwidget.cpp:497
#16 0x083851e8 in PawsManager::Draw (this=0x8e14238) at src/common/paws/pawsmanager.cpp:566
#17 0x08153115 in psEngine::HandleEvent (this=0x8e0eb70, ev=@0xb65060d4) at src/client/psengine.cpp:700
#18 0x0815bcda in psEngine::EventHandler::HandleEvent (this=0xb6500510, ev=@0xb65060d4) at src/client/psengine.h:226
#19 0x0824b058 in csEventTree::Dispatch (this=0x8e0f930, e=@0xb65060d4) at libs/csutil/cssubscription.cpp:559
#20 0x0824b126 in csEventTree::Notify (this=0x8e0f930) at libs/csutil/cssubscription.cpp:529
#21 0x0820d516 in csEventQueue::Notify (this=0x8cb61b8, name=@0x8cb6e84) at libs/csutil/cseventq.cpp:271
#22 0x082103b0 in csEventQueue::iTypedFrameEventDispatcher::HandleEvent (this=0x8cb6e7c, e=@0x8cd1784)
    at ./include/csutil/cseventq.h:260
#23 0x0824b058 in csEventTree::Dispatch (this=0x8c80e40, e=@0x8cd1784) at libs/csutil/cssubscription.cpp:559
#24 0x0824b126 in csEventTree::Notify (this=0x8c80e40) at libs/csutil/cssubscription.cpp:529
#25 0x0820d516 in csEventQueue::Notify (this=0x8cb61b8, name=@0x8cb6250) at libs/csutil/cseventq.cpp:271
#26 0x0820d5f3 in csEventQueue::Process (this=0x8cb61b8) at libs/csutil/cseventq.cpp:287
#27 0x081b3f6b in csDefaultRunLoop (r=0x8c7d7ec) at libs/csutil/generic/runloop.cpp:90
#28 0x0814f8ed in main (argc=1, argv=0xbf843c74) at src/client/psengine.cpp:1950

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
pssetup
« Reply #1 on: January 15, 2006, 06:44:34 pm »
Your data/config/setupwindow.xml got overwritten by an older version when you updated. There is a new parameter added to the setup and the older setupwindow.xml file does not have it. Restore it from CVS and at least pssetup should work.
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #2 on: January 15, 2006, 08:09:33 pm »
Yes, if you update src update data/gui to the same date.  They may just be XML files, but the code depends on them.  With the setup, I added a scrollbar to control font size, and without the new XML file the scrollbar doesn\'t exist.  It tries to access it and crashes.  (the client checks XML carefully, the setup only has the one and doesn\'t bother)

::  PlaneShift Team Programmer  ::

green_lion

  • Traveller
  • *
  • Posts: 14
    • View Profile
(No subject)
« Reply #3 on: January 15, 2006, 08:49:40 pm »
Ok, pssetup seems to work. But psclient not. Even walktest from CS doesn\'t work.

Walktest also throws segv when loading, at the same place:
Code: [Select]

#0  0x010a2c6f in typeinfo for scfImplementation1 () from /home/alex/Develop/planeshift/CS/engine.so
#1  0x08a37d84 in ?? ()
#2  0xbfcbdb38 in ?? ()
#3  0x003b6298 in csLoader::ParseSector (this=0x8533f70, ldr_context=0x883e5e8, node=0x87555d8, ssource=0x0)
    at plugins/csparser/csloader.cpp:5180
#4  0x003b7069 in csLoader::LoadMap (this=0x8533f70, ldr_context=0x883e5e8, worldnode=0x883e5b0, ssource=0x0)
    at plugins/csparser/csloader.cpp:1170
#5  0x003b769c in csLoader::LoadMap (this=0x8533f70, world_node=0x883e5b0, clearEngine=false, region=0x0,
    curRegOnly=true, checkdupes=false, ssource=0x0) at plugins/csparser/csloader.cpp:789
#6  0x003a829b in csLoader::LoadMapFile (this=0x8533f70, file=0x815ca9c \"world\", clearEngine=false, region=0x0,
    curRegOnly=true, checkdupes=false, ssource=0x0) at plugins/csparser/csloader.cpp:766
#7  0x08071f3d in WalkTest::Initialize (this=0x84d1078, argc=1, argv=0xbfcbe1e4,
    iConfigName=0x815d388 \"/config/walktest.cfg\") at apps/walktest/walktest.cpp:1292
#8  0x08072c19 in main (argc=1, argv=0xbfcbe1e4) at apps/walktest/walktest.cpp:1482

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #4 on: January 15, 2006, 09:21:45 pm »
Update to HEAD for everything and try again.

::  PlaneShift Team Programmer  ::

green_lion

  • Traveller
  • *
  • Posts: 14
    • View Profile
(No subject)
« Reply #5 on: January 16, 2006, 12:14:26 pm »
I had compiler issue described here.
The default compiler in FC4 is 4.0.0. I have updated my system to 4.0.2, and build HEAD version of PS.
It runs, but when loading world it says \"The sector you have entered couldn\'t be loaded.\" Or, with some manipulations, loads without gui and hangs.

It complaing about not found images, for ex.,
GUI image \'Standard Button\' not found
Widget: QuestButton (Parent: ControlWindow) Could Not load image: (null)

What can I do next?

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
(No subject)
« Reply #6 on: January 16, 2006, 08:36:49 pm »
Obvious question:  Do you have all the newest XML files in data/gui and up-to-date art from the updater?  (or Xordan\'s update patch, or where ever you need to get it from; does the updater work at all on Linux yet?)

Secondly, I said HEAD of everything.  I meant HEAD of Cal3d, CS, CEL and PS.  (though, Cal3d isn\'t updated very often)

When it comes to compiler issues, that\'s Xordan\'s domain.  Most of us are using either GCC 3.4.x or MSVC.  (or have both)  He\'d be the one to tell you if GCC 4.0.x hates us.

::  PlaneShift Team Programmer  ::

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
(No subject)
« Reply #7 on: January 16, 2006, 09:05:24 pm »
gcc 4.0.0 and 4.0.1 are bugged to hell and hate us. 4.0.2 worked painfully when I tried it a few months back, but it did compile psclient... I can\'t say whether it produces totally correct code though. As a rule people should stay away from the 4.x series for a while unless they\'re expecting that things they attempt to compile might not compile, or to not run correct.

See if you can downgrade to the 3.4.x series if you can\'t get it working with 4.0.2. Your issue sounds to me like you haven\'t got the correct data xmls. Also make sure that you set your skin in pssetup.

green_lion

  • Traveller
  • *
  • Posts: 14
    • View Profile
(No subject)
« Reply #8 on: January 19, 2006, 09:39:36 am »
Thanks, it is working now, with 4.0.2 compiler. I have no skin selected.

But one issue is remaining. It is \"sticky\" shift problem. When I press and release shift, application continue behave as at stay pressed, for ex., my char continue running, etc, until window switched to another and then back to PS (I don\'t want use fullscreen). I have default keyboard/mouse settings in system (no accessability) and in PS, and also have normal keyboard with shift working in other applications. Is this issue known/may be fixed somewhere?
Also I cannot find how to use mouse run, is it working?