View Issue Details

IDProjectCategoryView StatusLast Update
0003984Spring engineGeneralpublic2013-09-04 21:29
Reporterraaar Assigned TojK  
PriorityurgentSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version94.1.1+git 
Summary0003984: ordering a unit with a LightningCannon weapon to attack crashes spring
Descriptionordering a unit with a LightningCannon weapon to attack crashes spring
Steps To Reproduce- start spring and choose ba7.81 that comes with it
- /give armzeus
- order it to attack
CRASH!
Additional Information- happens every time to me, but seems to not crash on some other people
- current machine : windows8 64bit | core i7 3770, geforce gt 640
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
20130831_193526_Moon Quartet Remake_94.1.1-1069-g64c1fc3 develop.sdf (Attachment missing)
gdb_crash4.txt (Attachment missing)
infolog1096.txt (Attachment missing)
gdb1096.txt (Attachment missing)
Checked infolog.txt for Errors

Relationships

duplicate of 0003988 closedabma Crash in Spring 94.1.1-1088 

Activities

raaar

2013-08-31 20:45

reporter   ~0011506

tested on spring_94.1.1 builds 1059 and 1069

Kloot

2013-08-31 21:31

developer   ~0011508

not reproducable from demo or own test

raaar

2013-08-31 22:45

reporter   ~0011510

it happens with penetrators too, and Ba heavy laser towers!

not just LightningCannon : ordering units with any BeamLaser to attack makes spring crash.

if don't press "a" and spawn an enemy nearby they'll turn and fire without crashing, sometimes. Maybe it has something to do with displaying the range circle, as it's drawn immediately before crashing and it looks weird, like it has extra lines.

raaar

2013-08-31 23:21

reporter   ~0011511

Last edited: 2013-08-31 23:22

- disabling luaui does nothing
- running in xp compatibility mode or with admin rights (because) does nothing
- works fine on 94.1.1-826-g7f6f61d

raaar

2013-09-01 00:04

reporter   ~0011512

94.1.1-973-g1d252d1/ WORKS
94.1.1-974-g849b770/ CRASHES

Kloot

2013-09-01 00:40

developer   ~0011513

That seems impossible because 849b770 has nothing to do with weapon code...

raaar

2013-09-01 00:48

reporter   ~0011514

Last edited: 2013-09-01 00:57

https://github.com/spring/spring/commit/849b77079b6fd0542e37c563f2cb66710a7a4deb#L6R39

the crash seems related to the drawing of the weapon range circle.

maybe the changes made to rts/Sim/Objects/WorldObject.h and rts/Sim/Projectiles/Projectile.h have something to do with it.

raaar

2013-09-01 05:50

reporter   ~0011515

the bug is growing!

it also crashes when i press "a" when having fighters or bombers selected, but not gunships

still happens in build 1075, works fine in 973

jK

2013-09-01 09:22

developer   ~0011516

please set WorkerThreadCount=1 in your config and rerun with most recent engine build

raaar

2013-09-01 12:11

reporter   ~0011518

it works, both in 1075 and 1059.

ok these are dev builds...but don't forget to make it so regular users can play without having to tweak obscure settings.

jK

2013-09-01 13:13

developer   ~0011519

???
I told you to add it to _get a proper stacktrace_, it shouldn't fix the crash at all

Kloot

2013-09-01 13:26

developer   ~0011520

Last edited: 2013-09-01 13:28

glBallisticCircle (draws the weapon range circles) uses for_mt

jK

2013-09-02 00:20

developer   ~0011524

I know what it does. and I recognized that the stacktrace is exactly the same broken one as in the other ticket. that's why I made the commit and the request here, in the hope to get a non-broken stacktrace.
Now I get frustrated cause std::threads and co. seems heavily broken under mingw.

Rafal99

2013-09-03 03:52

reporter   ~0011529

Last edited: 2013-09-03 06:37

See my note in 0003988:0011528

Edit: Added gdb output we got there.

jK

2013-09-03 06:34

developer   ~0011532

abma can you tell me what is in line:
/opt/mxe/usr/lib/gcc/i686-w64-mingw32/4.8.1/include/xmmintrin.h:938

that's the last line a correct stacktrace shows (thx to Rafal)

full stacktrace is btw:

#0 CWeapon::GetRange2D(float) const ()
    at /opt/mxe/usr/lib/gcc/i686-w64-mingw32/4.8.1/include/xmmintrin.h:938
#1 0x0069cfb2 in std::_Function_handler<void (int), glBallisticCircle(float3 const&, float, CWeapon const*, unsigned int, float)::{lambda(int)#1}>::_M_invoke(std::_Any_data const&, int) () at ../../rts/Rendering/GL/glExtra.cpp:89
#... (ThreadPool stuff)

abma

2013-09-04 05:38

administrator   ~0011536

934 /* Stores the lower SPFP value. */
935 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
936 _mm_store_ss (float *__P, __m128 __A)
937 {
938 *__P = __builtin_ia32_vec_ext_v4sf ((__v4sf)__A, 0);
939 }


line 938 is *__P ...

sorry wasn't suscribet to this bug...

jK

2013-09-04 06:51

developer   ~0011538

k nothing suspicious there.
seems we need a windows DEBUG build for a full stacktrace (2 lines aren't enough)

silentwings

2013-09-04 09:51

reporter   ~0011539

Are debug builds downloadable from somewhere? I can try but for me (on win7) this crash didn't reproduce!

jK

2013-09-04 11:51

developer   ~0011540

@anyone who can reproduce it
test with latest build please

Rafal99

2013-09-04 19:50

reporter   ~0011541

Spring 94.1.1-1096 crashes during loading, at "Creating TreeDrawer", every single time.

Added infolog and gdb output.

Issue History

Date Modified Username Field Change
2013-08-31 20:43 raaar New Issue
2013-08-31 20:43 raaar File Added: infolog.txt
2013-08-31 20:43 raaar File Added: 20130831_193526_Moon Quartet Remake_94.1.1-1069-g64c1fc3 develop.sdf
2013-08-31 20:45 raaar Note Added: 0011506
2013-08-31 21:31 Kloot Note Added: 0011508
2013-08-31 22:45 raaar Note Added: 0011510
2013-08-31 23:21 raaar Note Added: 0011511
2013-08-31 23:22 raaar Note Edited: 0011511
2013-09-01 00:04 raaar Note Added: 0011512
2013-09-01 00:40 Kloot Note Added: 0011513
2013-09-01 00:48 raaar Note Added: 0011514
2013-09-01 00:57 raaar Note Edited: 0011514
2013-09-01 05:50 raaar Note Added: 0011515
2013-09-01 09:22 jK Note Added: 0011516
2013-09-01 12:11 raaar Note Added: 0011518
2013-09-01 13:13 jK Note Added: 0011519
2013-09-01 13:26 Kloot Note Added: 0011520
2013-09-01 13:28 Kloot Note Edited: 0011520
2013-09-01 23:24 abma Severity block => crash
2013-09-02 00:20 jK Note Added: 0011524
2013-09-03 03:52 Rafal99 Note Added: 0011529
2013-09-03 03:53 Rafal99 Note Edited: 0011529
2013-09-03 06:34 jK Note Added: 0011532
2013-09-03 06:36 Rafal99 File Added: gdb_crash4.txt
2013-09-03 06:37 Rafal99 Note Edited: 0011529
2013-09-03 15:31 Kloot Relationship added duplicate of 0003988
2013-09-04 05:38 abma Note Added: 0011536
2013-09-04 06:51 jK Note Added: 0011538
2013-09-04 09:51 silentwings Note Added: 0011539
2013-09-04 11:51 jK Note Added: 0011540
2013-09-04 19:50 Rafal99 Note Added: 0011541
2013-09-04 19:51 Rafal99 File Added: infolog1096.txt
2013-09-04 19:51 Rafal99 File Added: gdb1096.txt
2013-09-04 21:29 jK Changeset attached => spring develop 1473ef44
2013-09-04 21:29 jK Assigned To => jK
2013-09-04 21:29 jK Status new => resolved
2013-09-04 21:29 jK Resolution open => fixed