Skip to content

Instantly share code, notes, and snippets.

@donSchoe
donSchoe / SIGSEGV
Created August 18, 2013 20:25
SIGSEGV after pressing space bar, military aid?
Program received signal SIGSEGV, Segmentation fault.
GameWorldView::Draw (this=<optimized out>, player=<optimized out>, water=<optimized out>, draw_selected=false, selected_x=0, selected_y=0, rb=...) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/GameWorldView.cpp:169
169 /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/GameWorldView.cpp: No such file or directory.
(gdb) bt
#0 GameWorldView::Draw (this=<optimized out>, player=<optimized out>, water=<optimized out>, draw_selected=false, selected_x=0, selected_y=0, rb=...) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/GameWorldView.cpp:169
#1 0x0000000000608c39 in Draw (rb=..., selected_y=<optimized out>, selected_x=<optimized out>, draw_selected=<optimized out>, water=0x7fffffffd1c0, player=<optimized out>, this=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/GameWorld.h:600
#2 Run (this=0xe2ceda0) at /srv/jenkins/jobs/
@donSchoe
donSchoe / gist:5994258
Created July 14, 2013 13:23
Ware.cpp:171
Program received signal SIGSEGV, Segmentation fault.
Ware::GoalDestroyed (this=0x7e20460) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/Ware.cpp:171
171 /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/Ware.cpp: No such file or directory.
(gdb) bt
#0 Ware::GoalDestroyed (this=0x7e20460) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/Ware.cpp:171
#1 0x000000000085e81c in nobUsual::Destroy_nobUsual (this=0x8847a60) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/nobUsual.cpp:140
#2 0x00000000007706ac in GameWorldGame::DestroyPlayerRests (this=0x7b40018, x=216, y=119, new_player=1 '\001', exception=0x8854780) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/GameWorldGame.cpp:881
#3 0x00000000007741a7 in GameWorldGame::RecalcTerritory (this=0x7b40018, building=0x8854780, radius=<optimized out>, destroyed=false, newBuilt=<optimized out>) at /srv/jenkins/jobs/s
@donSchoe
donSchoe / gist:5841437
Created June 22, 2013 16:14
reproduced at GF 119999
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00000000007b8da6 in SerializedGameData::PushObject (this=0x7fffffffd0c0, go=0x8d2d9e0, known=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp:267
#2 0x000000000085ee21 in PushObjectList<Ware> (known=true, gos=..., this=0x7fffffffd0c0) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.h:88
#3 nobUsual::Serialize_nobUsual (this=0x9396600, sgd=0x7fffffffd0c0) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/nobUsual.cpp:180
#4 0x00000000007b8da6 in SerializedGameData::PushObject (this=0x7fffffffd0c0, go=0x9396600, known=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp:267
#5 0x00000000007d3698 in Ware::Serialize_Ware (this=0xb2b5970, sgd=0x7fffffffd0c0) at /srv/jenkins
Program received signal SIGSEGV, Segmentation fault.
0x00000000007b8da3 in SerializedGameData::PushObject (this=0x7fffffffd0c0, go=0x1ddcee00, known=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp:267
267 /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp: No such file or directory.
(gdb) bt
#0 0x00000000007b8da3 in SerializedGameData::PushObject (this=0x7fffffffd0c0, go=0x1ddcee00, known=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp:267
#1 0x000000000085ee21 in PushObjectList<Ware> (known=true, gos=..., this=0x7fffffffd0c0) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.h:88
#2 nobUsual::Serialize_nobUsual (this=0xb13bc20, sgd=0x7fffffffd0c0) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/nobUsual.cpp:180
#3 0x00000000007b8da6 in Seri
@donSchoe
donSchoe / dither_2.cpp
Created May 10, 2013 17:05
wo is der fehler?
/* dither() */
float p11 = image[w * y + x];
float sw11 = 1.f;
if(p11 < 0.5) sw11 = 0.f;
float qe = p11 - sw11;
image[ w * y + x ] = sw11;
image[ w * y + _clamp(0, w, (x + 1))] += 7.f * qe / 16.f;
image[_clamp(0, h, (w * (y + 1))) + _clamp(0, w, (x - 1))] += 3.f * qe / 16.f; //@TODO: Not applied, why?
image[_clamp(0, h, (w * (y + 1))) + x ] += 5.f * qe / 16.f; //@TODO: Not applied, why?
@donSchoe
donSchoe / dither.cpp
Created May 9, 2013 18:00
wo ist der fehler?
// dither()
float p11 = image[w * y + x];
float sw11 = 1.f;
if(p11 < 0.5) sw11 = 0.f;
float qe = p11 - sw11;
float p12 = image[w * y + _clamp(0, w, (x + 1))];
float p20 = image[_clamp(0, h, (w * (y + 1))) + _clamp(0, w, (x - 1))];
float p21 = image[_clamp(0, h, (w * (y + 1))) + x];
float p22 = image[_clamp(0, h, (w * (y + 1))) + _clamp(0, w, (x + 1))];
float gvalue11 = image[y * w + x];
float quant_error = gvalue11-sw_convert(gvalue11);
image[(y * w + x)]=sw_convert(gvalue11);
//p21
image[y * w + (mx(x +1))]+=7*(quant_error/16);
//p02
image[(my(y+1)) * w + (mx(x-1))]+=3*(quant_error/16);
//p12
@donSchoe
donSchoe / double-sobel.cpp
Created May 9, 2013 17:05
zweifach sobel
int w = image.width() - 1;
int h = image.height() - 1;
QColor c00(image.pixel(_clamp(0, w, x - 1), _clamp(0, h, y - 1)));
QColor c01(image.pixel(x, _clamp(0, h, y - 1)));
QColor c02(image.pixel(_clamp(0, w, x + 1), _clamp(0, h, y - 1)));
QColor c10(image.pixel(_clamp(0, w, x - 1), y));
QColor c11(image.pixel(x, y));
QColor c12(image.pixel(_clamp(0, w, x + 1), y));
QColor c20(image.pixel(_clamp(0, w, x - 1), _clamp(0, h, y + 1)));
QColor c21(image.pixel(x, _clamp(0, h, y + 1)));
Program received signal SIGSEGV, Segmentation fault.
0x00000000007b5233 in SerializedGameData::PushObject (this=0x7fffffffd130, go=0x14c12d00, known=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp:267
267 /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp: No such file or directory.
(gdb) bt
#0 0x00000000007b5233 in SerializedGameData::PushObject (this=0x7fffffffd130, go=0x14c12d00, known=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/SerializedGameData.cpp:267
#1 0x00000000008606d3 in Serialize_nofAggressiveDefender (sgd=0x7fffffffd130, this=0x14893e00) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/nofAggressiveDefender.cpp:83
#2 nofAggressiveDefender::Serialize (this=0x14893e00, sgd=<optimized out>) at /srv/jenkins/jobs/s25rttr/workspace/ARCH/x86_64/PLATFORM/linux/label/ma/src/nofAggressiveDefender.h:73
#3
@donSchoe
donSchoe / gist:5181077
Created March 17, 2013 11:02
Error: Closing link.
--> :agony.JxcelDolghmQ.net PONG agony.JxcelDolghmQ.net :1363493011.0564253
--> PING :agony.JxcelDolghmQ.net
<-- PONG :agony.JxcelDolghmQ.net
--> PING :agony.JxcelDolghmQ.net
<-- PONG :agony.JxcelDolghmQ.net
<-- PING :1363493311.097416
--> :agony.JxcelDolghmQ.net PONG agony.JxcelDolghmQ.net :1363493311.097416
--> :RudiRotten!chatzilla@JDQ-24e65f5c.pools.arcor-ip.net QUIT :Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]
!!! user RudiRotten quit.
Resetting user 20694880 with name RudiRotten