Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python bindings need tests/fixes #18

Open
volca02 opened this issue Apr 28, 2014 · 3 comments
Open

Python bindings need tests/fixes #18

volca02 opened this issue Apr 28, 2014 · 3 comments
Labels

Comments

@volca02
Copy link
Owner

volca02 commented Apr 28, 2014

Example: using pytest.

#0  Opde::LightAtlas::getIndex (this=0x0) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/worldrep/LightmapAtlas.cpp:288
#1  0x00007ffff7b428c9 in Opde::LightMap::getAtlasIndex (this=<optimized out>) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/worldrep/LightmapAtlas.cpp:587
#2  0x00007ffff7b13381 in Opde::LightsForCell::getAtlasForPolygon (this=<optimized out>, face_id=face_id@entry=0) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/light/LightService.cpp:352
#3  0x00007ffff7b13f75 in Opde::LightService::getAtlasForCellPolygon (this=<optimized out>, cellID=<optimized out>, faceID=0) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/light/LightService.cpp:160
#4  0x00007ffff7b49402 in Opde::WRCell::createCellGeometry (this=0x1c6b070) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/worldrep/WRCell.cpp:426
#5  0x00007ffff7b46c6c in Opde::WorldRepService::loadFromChunk (this=this@entry=0xc67640, wrChunk=..., lightSize=<optimized out>) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/worldrep/WorldRepService.cpp:284
#6  0x00007ffff7b4767e in Opde::WorldRepService::onDBLoad (this=0xc67640, db=..., curmask=<optimized out>) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/worldrep/WorldRepService.cpp:126
#7  0x00007ffff7aef2a8 in Opde::DatabaseService::broadcastOnDBLoad (this=this@entry=0x912050, db=..., curmask=curmask@entry=203008) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/database/DatabaseService.cpp:268
#8  0x00007ffff7af027f in Opde::DatabaseService::recursiveMergeLoad (this=this@entry=0x912050, filename=..., loadMask=loadMask@entry=466688) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/database/DatabaseService.cpp:104
#9  0x00007ffff7af03ab in Opde::DatabaseService::load (this=0x912050, filename=..., loadMask=loadMask@entry=466688) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/services/database/DatabaseService.cpp:73
#10 0x00007ffff7b55483 in Opde::Python::DatabaseServiceBinder::load (self=<optimized out>, args=<optimized out>) at /home/volca/Projects/openDarkEngine/openDarkEngine/src/bindings/DatabaseServiceBinder.cpp:177
@volca02
Copy link
Owner Author

volca02 commented Apr 28, 2014

To be precise I get that backtrace when uncommenting

dbsrv.load("miss1.mis", opde.services.DBM_COMPLETE)

@volca02
Copy link
Owner Author

volca02 commented Apr 28, 2014

A weird C++ side exception when doing debug_frame from python:

Traceback (most recent call last):
  File "<string>", line 113, in <module>
RuntimeError: C++ side exception (/home/volca/Projects/openDarkEngine/openDarkEngine/src/bindings/LoopServiceBinder.cpp:98) : PythonException: <unknown exception type>
    Opde Exception (<unknown file> line 59) - Python : <unknown exception data>

@volca02
Copy link
Owner Author

volca02 commented Apr 28, 2014

That last one is probably caused by problems with gettattr on msg object - commenting these will stop that from happening:

#    opde.log_info("Comand field: " + msg.command)
#    opde.log_info("Comand params: " + str(msg.params))

Edit: still need to see why the exception didn't propagate well.

@volca02 volca02 changed the title Python bindings need testing Python bindings need tests/fixes Apr 28, 2014
@volca02 volca02 added the bug label Apr 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant