Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

CRASH - WZ2100 git Linux x64 (20180211) #4734

Closed
wzdev-ci opened this issue Feb 11, 2018 · 21 comments
Closed

CRASH - WZ2100 git Linux x64 (20180211) #4734

wzdev-ci opened this issue Feb 11, 2018 · 21 comments

Comments

@wzdev-ci
Copy link
Contributor

resolution_fixed type_bug | by OFelix


System: Kubuntu x64 (KDE)

Downloaded today's git version (20180211) as follows:

git clone --depth 1 https://github.com/Warzone2100/warzone2100.git

Testing Alpha campaign. About 10 minutes in I was trying to cancel the 'repeat build' order on one of my factories when the game segfaulted.

Crash happened twice, each time when doing the same operation.

The attached crash dump is from the 1st crash (the 2nd crash didn't appear to create one)

======###### 1st Crash========# Cannot connect to server socket err No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
warning |03:02:47: [buildFeature:208] Feature not aligned. position (5422,4658), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:02:47: [buildFeature:208] Feature not aligned. position (5068,4689), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:02:47: [buildFeature:208] Feature not aligned. position (5323,4676), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:02:47: [buildFeature:208] Feature not aligned. position (1908,1923), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:02:47: [buildFeature:208] Feature not aligned. position (5474,6205), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:18:17: [recvStructureInfo:349] Could not find structure 20 to change production for (**Further warnings of this type are suppressed.)
29 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Saved dump file to '/home/felix/.warzone2100-master/logs/warzone2100.gdmp-santOg'
If you create a bugreport regarding this crash, please include this file.
Segmentation fault (core dumped)

======###### 2nd Crash========# Cannot connect to server socket err No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
warning |03:30:11: [buildFeature:208] Feature not aligned. position (5422,4658), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:30:11: [buildFeature:208] Feature not aligned. position (5068,4689), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:30:11: [buildFeature:208] Feature not aligned. position (5323,4676), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:30:11: [buildFeature:208] Feature not aligned. position (1908,1923), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:30:11: [buildFeature:208] Feature not aligned. position (5474,6205), size (1,1) (**Further warnings of this type are suppressed.)
warning |03:37:15: [recvStructureInfo:349] Could not find structure 8 to change production for (**Further warnings of this type are suppressed.)
Segmentation fault (core dumped)

======================================


Issue migrated from trac:4734 at 2022-04-16 13:02:15 -0700

@wzdev-ci
Copy link
Contributor Author

OFelix uploaded file warzone2100.gdmp-santOg (1289.9 KiB)

@wzdev-ci
Copy link
Contributor Author

Per changed blocking which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Per changed blockedby which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Per commented


Do you know if this is a new problem? Could you try if ead89acb32ed09224fb51ce74989dfc015235287 has the same issue? Thanks.

@wzdev-ci
Copy link
Contributor Author

Forgon commented


Could you use Git's bisect tool to determine which commit introduced your problem?
Warnings about feature alignment are old news and probably not the cause of the crash.

@wzdev-ci
Copy link
Contributor Author

OFelix commented


I'm willing to use git bisect but I don't know the basics. :-(

  1. For example, how do I get git to download the version Per asked me to test? And the version just before that?

  2. I have the following basic instructions for git bisect
    https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git
    Which commit should I mark as good?

Thanks

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 11, 2018

Forgon commented


Replying to Warzone2100/old-trac-import#4734 (comment:3):

I'm willing to use git bisect but I don't know the basics. :-(

  1. For example, how do I get git to download the version Per asked me to test? And the version just before that?

First, execute git fetch --unshallow.
You created a shallow clone that included just the most recent commit.
This was faster than downloading all commits, but insufficient for a bisection.

  1. I have the following basic instructions for git bisect
    https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git
    Which commit should I mark as good?

Thanks

A sensible candidate to mark as a good commit is the most recent release:

`
commit ef206fd2408044a20471d1516262bc93afa104e0
Author: Per Inge Mathisen per.mathisen@gmail.com
Date: Sun Apr 23 15:50:55 2017 +0200

Revert "Release 3.2.3" as per the release procedure

This reverts commit d1d29f40d2bd2d6d8acab1de5a40bca58be11d28

'

@wzdev-ci
Copy link
Contributor Author

OFelix commented


As far as I can tell the breakage is in 619e84d56189f45138ff18b3aea733dc15d9ca0c

BTW, are you aware that it is not possible to build from the zip downalod on Github?
I can file a new bug if you want me to?

Here's the end of my make

g++ -O0 -ggdb -Werror -Wno-enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -Wno-expansion-to-defined -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtScript -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -I../.. -fPIC -std=c++11 -fstack-protector -lz -rdynamic -fPIC -lpthread -o map2png map2png.o mapload.o maplib.o pngsave.o -lphysfs -lpng16 -lz -lQt5Widgets -lQt5Gui -lQt5Script -lQt5Core
g++ -O0 -ggdb -Werror -Wno-enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security -Wno-expansion-to-defined -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtScript -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -I../.. -fPIC -std=c++11 -fstack-protector -lz -rdynamic -fPIC -lpthread -o map2preview map2preview.o mapload.o maplib.o pngsave.o -lphysfs -lpng16 -lz -lQt5Widgets -lQt5Gui -lQt5Script -lQt5Core
make[3]: Leaving directory '/home/felix/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c/tools/map'
make[2]: Leaving directory '/home/felix/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c/tools/map'
Making all in src
make[2]: Entering directory '/home/felix/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c/src'
cd .. && ./build_tools/autorevision -t h -o "/home/felix/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c/src/autorevision.cache" > "/home/felix/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c/src/autorevision.h.new"
error: No repo or cache detected.
Makefile:1233: recipe for target 'autorevision.h' failed
make[2]: *** [autorevision.h] Error 1
make[2]: Leaving directory '/home/felix/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c/src'
Makefile:584: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/felix/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c'
Makefile:504: recipe for target 'all' failed
make: *** [all] Error 2
felix@Red:~/wz/warzone2100-619e84d56189f45138ff18b3aea733dc15d9ca0c$

@wzdev-ci
Copy link
Contributor Author

OFelix commented


To avoid misunderstanding - this problem with building from the zip file has been there for weeks and is not related to 619e84d56189f45138ff18b3aea733dc15d9ca0c

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg commented


Also commit 619e84d56189f45138ff18b3aea733dc15d9ca0c causes a problem when failing a mission as shown in the spoiler with my post http://forums.wz2100.net/viewtopic.php?f=1&p=140360#p140360.

@wzdev-ci
Copy link
Contributor Author

Per commented


Hopefully fixed by 90bd4e48e8c66d94c25af95cc9a410203202fe38

@wzdev-ci
Copy link
Contributor Author

OFelix commented


crash when cancelling Repeat Order is NOT fixed in ab1ec528804a5284ca59783956b83c67432fc1c9

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
warning |11:05:41: [buildFeature:208] Feature not aligned. position (5422,4658), size (1,1) (**Further warnings of this type are suppressed.)
warning |11:05:41: [buildFeature:208] Feature not aligned. position (5068,4689), size (1,1) (**Further warnings of this type are suppressed.)
warning |11:05:41: [buildFeature:208] Feature not aligned. position (5323,4676), size (1,1) (**Further warnings of this type are suppressed.)
warning |11:05:41: [buildFeature:208] Feature not aligned. position (1908,1923), size (1,1) (**Further warnings of this type are suppressed.)
warning |11:05:41: [buildFeature:208] Feature not aligned. position (5474,6205), size (1,1) (**Further warnings of this type are suppressed.)
29 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
warning: can't find linker symbol for virtual table for gfx_api::texture' value warning: RTTI symbol not found for class 'std::_Sp_counted_ptr_inplace<std::__future_base::_Task_state<fpathRoute(MOVE_CONTROL*, unsigned int, int, int, int, int, PROPULSION_TYPE, DROID_TYPE, FPATH_MOVETYPE, int, bool, StructureBounds const&)::{lambda()#1}, std::allocator<int>, PATHRESULT ()>, fpathRoute(MOVE_CONTROL*, unsigned int, int, int, int, int, PROPULSION_TYPE, DROID_TYPE, FPATH_MOVETYPE, int, bool, StructureBounds const&)::{lambda()#1}, (__gnu_cxx::_Lock_policy)2>' warning: RTTI symbol not found for class 'std::_Sp_counted_ptr_inplace<std::__future_base::_Task_state<fpathRoute(MOVE_CONTROL*, unsigned int, int, int, int, int, PROPULSION_TYPE, DROID_TYPE, FPATH_MOVETYPE, int, bool, StructureBounds const&)::{lambda()#1}, std::allocator<int>, PATHRESULT ()>, fpathRoute(MOVE_CONTROL*, unsigned int, int, int, int, int, PROPULSION_TYPE, DROID_TYPE, FPATH_MOVETYPE, int, bool, StructureBounds const&)::{lambda()#1}, (__gnu_cxx::_Lock_policy)2>' warning: can't find linker symbol for virtual table for gfx_api::texture' value
warning: can't find linker symbol for virtual table for `gfx_api::texture' value
Saved dump file to '/home/felix/.warzone2100-master/logs/warzone2100.gdmp-ZZKPFb'
If you create a bugreport regarding this crash, please include this file.
Segmentation fault (core dumped)

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg uploaded file Warzone2100.RPT (5.0 KiB)

@wzdev-ci
Copy link
Contributor Author

pastdue commented


@ofelix: Can you describe exactly how you are creating and cancelling a Repeat Order? (What items you are clicking on / keys you are pressing, in order?) And/or record a screen capture that shows this happening?

Also, a crash RPT would be super helpful for tracking down the cause. Thanks!

@BerSerK Cyborg: Is that a RPT for this "Repeat Order" cancelling crash? Or your other "failing mission" crash you reported (which should be fixed in the latest commits).

@wzdev-ci
Copy link
Contributor Author

pastdue commented


@ofelix: Please try applying this patch: https://github.com/Warzone2100/warzone2100/pull/121.patch

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 11, 2018

Berserk Cyborg commented


Replying to Warzone2100/old-trac-import#4734 (comment:10):

@BerSerK Cyborg: Is that a RPT for this "Repeat Order" cancelling crash? Or your other "failing mission" crash you reported (which should be fixed in the latest commits).
Yeah... me being vague as usual. It was for the loop production button in the manufacture menu. Canceling it caused a crash, but not anymore with the pull you referenced above.

@wzdev-ci
Copy link
Contributor Author

Forgon changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Forgon changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

Forgon commented


The problem was fixed in

`
commit f192c11ecec9c40baacb5744bf0658a94c84b109
Author: past-due 30942300+past-due@users.noreply.github.com
Date: Sun Feb 11 19:25:48 2018 -0500

Fix rare WzText-related crash

'

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 12, 2018

Forgon commented


Replying to Warzone2100/old-trac-import#4734 (comment:6):

To avoid misunderstanding - this problem with building from the zip file has been there for weeks and is not related to 619e84d56189f45138ff18b3aea733dc15d9ca0c

This is not a bug. The zip file is for Mac users. For Linux, use the '*.tar.xz' files.

@wzdev-ci
Copy link
Contributor Author

OFelix commented


I confirm the issue is fixed.

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

No branches or pull requests

1 participant