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

Вылет при выходе в мир или черный экран вместо мира #629

Closed
shamazmazum opened this issue Nov 7, 2023 · 2 comments

Comments

@shamazmazum
Copy link
Contributor

При сборке со свежего мастера (fb18b93) получаю вылет при выходе в мир с таким бектрейсом (отрицательная координата выглядит подозрительно):

(lldb) bt
* thread #1, name = 'vangers-new', stop reason = signal SIGSEGV
  * frame #0: 0x00000000003ead09 vangers-new`XGR_Screen::putspr(this=0x000000000042b208, x=758, y=-3, sx=48, sy=48, p=0x0000186d03f34600, mode=1) at xgraph.cpp:450:16
    frame #1: 0x0000000000292122 vangers-new`aIndData::redraw(this=0x0000186d03f3b9a0, dx=-1, dy=-1) at actint.cpp:6864:3
    frame #2: 0x0000000000294d9b vangers-new`actIntDispatcher::flush(this=0x0000186d07abd000) at actint.cpp:3649:10
    frame #3: 0x000000000031b4c0 vangers-new`iGameMap::draw(this=0x0000186d084def40, self=1) at road.cpp:2063:15
    frame #4: 0x00000000003185e6 vangers-new`gameQuant() at road.cpp:1887:13
    frame #5: 0x0000000000318541 vangers-new`LoadingRTO2::Init(this=0x0000186d013ed620, id=7) at road.cpp:989:2
    frame #6: 0x00000000003dfcfe vangers-new`main(argc=1, argv=0x00000008206883d8) at xtcore.cpp:195:11
    frame #7: 0x000000082b711aca libc.so.7`__libc_start1(argc=1, argv=0x00000008206883d8, env=0x00000008206883e8, cleanup=<unavailable>, mainX=(vangers-new`main at xtcore.cpp:114)) at libc_start1.c:157:7
    frame #8: 0x0000000000253dd0 vangers-new`_start at crt1_s.S:83

(lldb) frame select 0
frame #0: 0x00000000003ead09 vangers-new`XGR_Screen::putspr(this=0x000000000042b208, x=758, y=-3, sx=48, sy=48, p=0x0000186d03f34600, mode=1) at xgraph.cpp:450:16
   447 			for(i = 0; i < _sy; i ++){
   448 				for(j = 0; j < _sx; j ++){
   449 					if(memBuf[j]){
-> 450 						scrBuf[j] = memBuf[j];
   451 					}
   452 				}
   453 				scrBuf += yStrOffs;

Последний работающий коммит — da1a916, ломающий — a343f9b. На ломающем коммите вижу черный экран вместо мира:
20231107_08h15m27s_grim

У меня стоит sway 1.8.1

@caiiiycuk
Copy link
Contributor

caiiiycuk commented Nov 7, 2023 via email

@shamazmazum
Copy link
Contributor Author

Заработало, спасибо! Закрываю

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants