How to compile with scons on Windows V1.5.1/Linux Mint

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderators: Forum Moderators, Developers

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby SigurdFireDragon » April 14th, 2016, 10:55 pm

Does anyone else using the 1.5.0 version of this method get a 'Wesnoth game client has stopped working' /appcrash with the latest master?
User avatar
SigurdFireDragon
Developer
 
Posts: 324
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby Pentarctagon » April 16th, 2016, 3:27 pm

I'm having the same issue after clicking "OK" on the Configure Game screen. The stderr is completely clean too.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2988
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby gfgtdf » April 16th, 2016, 3:30 pm

There is a known issue related to loadingscreen and translatale strings that randomly causes crashes during loadingscreen. Not sure if this si related. Do you have a stacktrace of you crashes?
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
gfgtdf
Developer
 
Posts: 912
Joined: February 10th, 2013, 2:25 pm

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby Pentarctagon » April 16th, 2016, 8:14 pm

Compiled with:
Code: Select all
scons multilib_arch=32 build="debug" --config=force


All the backtrace gave was:
Code: Select all
Program received signal SIGSEGV, segmentation fault
0x0000002b in ?? ()
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2988
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby SigurdFireDragon » April 21st, 2016, 10:21 pm

Both these backtraces are with this win-scons 1.5.0 compile method and with the 2016/04/21 46b4faa44bb commit

Windows - Wesnoth client has stopped working message:
Code: Select all
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   wesnoth-debug.exe
  Application Version:   1.13.5.0
  Application Timestamp:   57192a68
  Fault Module Name:   StackHash_d5ec
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   00000000
  Exception Code:   c0000005
  Exception Offset:   7440cb49
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:   1033
  Additional Information 1:   d5ec
  Additional Information 2:   d5ec5d855e1ce66d2f273da91ed2b79e
  Additional Information 3:   0bc0
  Additional Information 4:   0bc0df9bcc8c11190bb6dea9c54c7f94

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt


Backtrace:
Code: Select all
C:\Wesnoth\Test\winscons-1.5.0>set PATH=C:\Compiling\TDM-GCC-64-510\bin

C:\Wesnoth\Test\winscons-1.5.0>C:\Compiling\TDM-GCC-64-510\bin\gdb.exe wesnoth-d
ebug.exe
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from wesnoth-debug.exe...done.
(gdb) run
Starting program: C:\Wesnoth\Test\winscons-1.5.0\wesnoth-debug.exe
[New Thread 4868.0x1260]
warning: `C:\Windows\SYSTEM32\ntdll.dll': Shared library architecture i386:x86-6
4 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64.dll': Shared library architecture i386:x86-6
4 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64win.dll': Shared library architecture i386:x8
6-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64cpu.dll': Shared library architecture i386:x8
6-64 is not compatible with target architecture i386.
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 4868.0x1a84]
[New Thread 4868.0x14c0]
[New Thread 4868.0xf88]
[New Thread 4868.0x12b8]
[New Thread 4868.0x1244]
[New Thread 4868.0x884]
[New Thread 4868.0x143c]
[New Thread 4868.0x1cd0]
[New Thread 4868.0x1978]
[New Thread 4868.0x19b8]
[New Thread 4868.0x105c]
[Thread 4868.0x143c exited with code 0]
[Thread 4868.0x1cd0 exited with code 0]
[Thread 4868.0x1978 exited with code 0]
[New Thread 4868.0x1d98]
[New Thread 4868.0x11e4]
[Thread 4868.0x1d98 exited with code 0]
[New Thread 4868.0x684]
[Thread 4868.0x684 exited with code 0]

Program received signal SIGSEGV, Segmentation fault.
0x0000002b in ?? ()
(gdb) bt
#0  0x0000002b in ?? ()
#1  0x00a65282 in (anonymous namespace)::buffer::~buffer (this=0x45954078,
    __in_chrg=<optimized out>) at src\network_worker.cpp:107
#2  0x00000000 in ?? ()
(gdb) bt
#0  0x0000002b in ?? ()
#1  0x00a65282 in (anonymous namespace)::buffer::~buffer (this=0x45954078,
    __in_chrg=<optimized out>) at src\network_worker.cpp:107
#2  0x00000000 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0008dbf8 in ?? ()
(gdb) bt
#0  0x0008dbf8 in ?? ()
(gdb) cont
Continuing.
[New Thread 4868.0x27c]
[Thread 4868.0x11e4 exited with code 0]
[Thread 4868.0x14c0 exited with code 3221225477]
[Thread 4868.0xf88 exited with code 3221225477]
[Thread 4868.0x12b8 exited with code 3221225477]
[Thread 4868.0x27c exited with code 3221225477]
[Thread 4868.0x105c exited with code 3221225477]
[Thread 4868.0x19b8 exited with code 3221225477]
[Thread 4868.0x884 exited with code 3221225477]
[Thread 4868.0x1a84 exited with code 3221225477]
[Inferior 1 (process 4868) exited with code 030000000005]
(gdb)


A different backtrace:
Code: Select all
C:\Wesnoth\Test\winscons-1.5.0>C:\Compiling\TDM-GCC-64-510\bin\gdb.exe wesnoth-d
ebug.exe
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from wesnoth-debug.exe...done.
(gdb) run
Starting program: C:\Wesnoth\Test\winscons-1.5.0\wesnoth-debug.exe
[New Thread 6044.0x172c]
warning: `C:\Windows\SYSTEM32\ntdll.dll': Shared library architecture i386:x86-6
4 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64.dll': Shared library architecture i386:x86-6
4 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64win.dll': Shared library architecture i386:x8
6-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64cpu.dll': Shared library architecture i386:x8
6-64 is not compatible with target architecture i386.
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 6044.0x1ddc]
[New Thread 6044.0x2d4]
[New Thread 6044.0x12c0]
[New Thread 6044.0x1ab8]
[New Thread 6044.0x1130]
[New Thread 6044.0xe5c]
[New Thread 6044.0x1fd0]
[New Thread 6044.0x1d9c]
[New Thread 6044.0x1790]
[New Thread 6044.0x1fe4]
[New Thread 6044.0x1a8c]
[Thread 6044.0x1fd0 exited with code 0]
[Thread 6044.0x1d9c exited with code 0]
[Thread 6044.0x1790 exited with code 0]
[New Thread 6044.0x1bb4]
[New Thread 6044.0x3b0]

Program received signal SIGSEGV, Segmentation fault.
0x0000002b in ?? ()
(gdb) bt
#0  0x0000002b in ?? ()
#1  0x0028e8dc in ?? ()
#2  0x00000280 in ?? ()
#3  0x00000006 in ?? ()
#4  0x00000000 in ?? ()
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0008dbf8 in ?? ()
(gdb) bt
#0  0x0008dbf8 in ?? ()
(gdb) cont
Continuing.
[Thread 6044.0x1bb4 exited with code 0]
[Thread 6044.0x2d4 exited with code 3221225477]
[Thread 6044.0x1a8c exited with code 3221225477]
[Thread 6044.0x1ab8 exited with code 3221225477]
[Thread 6044.0x3b0 exited with code 3221225477]
[Thread 6044.0xe5c exited with code 3221225477]
[Thread 6044.0x1130 exited with code 3221225477]
[Thread 6044.0x1ddc exited with code 3221225477]
[Thread 6044.0x12c0 exited with code 3221225477]
[Inferior 1 (process 6044) exited with code 030000000005]
(gdb)
User avatar
SigurdFireDragon
Developer
 
Posts: 324
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby gfgtdf » April 29th, 2016, 11:14 pm

Unfortuneteley those stracktaces are rather incomplete so it not realyl possible to tell what goes wrong when looking at themn, neigher were i able to reproduce this issues.

@Pentarctagon
I did fix some crashes in master recently, please check if it still crashes for you at current master.
Maybe you could give a stracktrace form a debug build if it still happens?
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
gfgtdf
Developer
 
Posts: 912
Joined: February 10th, 2013, 2:25 pm

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby Pentarctagon » April 30th, 2016, 1:23 am

The stacktrace I get from the debug build is the same as SigurdFireDragon's:
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0x0000002b in ?? ()
(gdb) bt
#0  0x0000002b in ?? ()
#1  0x00a65282 in (anonymous namespace)::buffer::~buffer (this=0x3e63dd68,
    __in_chrg=<optimized out>) at src\network_worker.cpp:107
#2  0x00000000 in ?? ()


Ran:
Code: Select all
gdb wesnoth-debug.exe


Built with:
Code: Select all
scons multilib-arch=32 build="debug" --config=force




Also, as a side note, I do not get this crash on Linux Mint. I do compile with different options though:
Code: Select all
scons build=release extra_flags_release="-O3 -march=native -fuse-ld=gold -flto -fuse-linker-plugin" cxxtool=g++ -j 10 --config=force
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2988
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby SigurdFireDragon » May 10th, 2016, 3:23 am

When compiling latest master after 2ac59d28 and adding 'disable_loadingscreen_animation=yes' to the preferences file, the crash does not occur.
User avatar
SigurdFireDragon
Developer
 
Posts: 324
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby Pentarctagon » June 19th, 2016, 4:35 am

SigurdFireDragon wrote:When compiling latest master after 2ac59d28 and adding 'disable_loadingscreen_animation=yes' to the preferences file, the crash does not occur.


This issue now seems to be fixed without setting 'disable_loadingscreen_animation=yes'.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2988
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby gfgtdf » June 19th, 2016, 11:38 am

Pentarctagon wrote:
SigurdFireDragon wrote:When compiling latest master after 2ac59d28 and adding 'disable_loadingscreen_animation=yes' to the preferences file, the crash does not occur.


This issue now seems to be fixed without setting 'disable_loadingscreen_animation=yes'.

did you test it?
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
gfgtdf
Developer
 
Posts: 912
Joined: February 10th, 2013, 2:25 pm

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby Pentarctagon » June 19th, 2016, 2:26 pm

My <wesnoth install directory>/preferences does not contain the key "disable_loadingscreen_animation", and I am now able to successfully start a match of Hamlets.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2988
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to compile with scons on Windows V1.5.0/Linux Mint

Postby SigurdFireDragon » June 19th, 2016, 3:32 pm

It works for me as well now, without the key.
User avatar
SigurdFireDragon
Developer
 
Posts: 324
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Previous

Return to Release Announcements, Compiling & Installation

Who is online

Users browsing this forum: No registered users and 5 guests