How to compile with scons on Windows V1.5.1/Linux Mint
Moderator: Forum Moderators
-
- Developer
- Posts: 546
- Joined: January 12th, 2011, 2:18 am
- Location: Pennsylvania, USA
Re: How to compile with scons on Windows V1.5.0/Linux Mint
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?
Co-Author of Winds of Fate
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to compile with scons on Windows V1.5.0/Linux Mint
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
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: How to compile with scons on Windows V1.5.0/Linux Mint
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.
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to compile with scons on Windows V1.5.0/Linux Mint
Compiled with:
All the backtrace gave was:
Code: Select all
scons multilib_arch=32 build="debug" --config=force
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
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Developer
- Posts: 546
- Joined: January 12th, 2011, 2:18 am
- Location: Pennsylvania, USA
Re: How to compile with scons on Windows V1.5.0/Linux Mint
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:
Backtrace:
A different backtrace:
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
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)
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)
Co-Author of Winds of Fate
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
Re: How to compile with scons on Windows V1.5.0/Linux Mint
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?
@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.
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to compile with scons on Windows V1.5.0/Linux Mint
The stacktrace I get from the debug build is the same as SigurdFireDragon's:
Ran:
Built with:
Also, as a side note, I do not get this crash on Linux Mint. I do compile with different options though:
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 ?? ()
Code: Select all
gdb wesnoth-debug.exe
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
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Developer
- Posts: 546
- Joined: January 12th, 2011, 2:18 am
- Location: Pennsylvania, USA
Re: How to compile with scons on Windows V1.5.0/Linux Mint
When compiling latest master after 2ac59d28 and adding 'disable_loadingscreen_animation=yes' to the preferences file, the crash does not occur.
Co-Author of Winds of Fate
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to compile with scons on Windows V1.5.0/Linux Mint
This issue now seems to be fixed without setting 'disable_loadingscreen_animation=yes'.SigurdFireDragon wrote:When compiling latest master after 2ac59d28 and adding 'disable_loadingscreen_animation=yes' to the preferences file, the crash does not occur.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: How to compile with scons on Windows V1.5.0/Linux Mint
did you test it?Pentarctagon wrote:This issue now seems to be fixed without setting 'disable_loadingscreen_animation=yes'.SigurdFireDragon wrote:When compiling latest master after 2ac59d28 and adding 'disable_loadingscreen_animation=yes' to the preferences file, the crash does not occur.
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.
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to compile with scons on Windows V1.5.0/Linux Mint
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
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Developer
- Posts: 546
- Joined: January 12th, 2011, 2:18 am
- Location: Pennsylvania, USA
Re: How to compile with scons on Windows V1.5.0/Linux Mint
It works for me as well now, without the key.
Co-Author of Winds of Fate
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
Re: How to compile with scons on Windows V1.5.1/Linux Mint
Hi,
I am trying to unpack the file provided in the original post at line 9), but I can't unpack it, even with 7zip on windows.
Thanks for the help.
I am trying to unpack the file provided in the original post at line 9), but I can't unpack it, even with 7zip on windows.
What should I do? Does anyone has it in a different package? Compiling with Codeblocks keeps me hours to complete.9) Download this, which contains all the requirements to actually compile the source code that you just downloaded.
Thanks for the help.
Re: How to compile with scons on Windows V1.5.1/Linux Mint
The file is valid. It's an xz file though so you might need a different program to extract it. Did you download the right file? It should be 75MB.
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to compile with scons on Windows V1.5.1/Linux Mint
I used 7zip to compress it originally, so maybe you need a more recent version than you have installed? I don't have Windows anymore, so there's not much I can really do to look into any problems though.Arskeliss wrote: ↑February 3rd, 2019, 10:01 am Hi,
I am trying to unpack the file provided in the original post at line 9), but I can't unpack it, even with 7zip on windows.
What should I do? Does anyone has it in a different package? Compiling with Codeblocks keeps me hours to complete.9) Download this, which contains all the requirements to actually compile the source code that you just downloaded.
Thanks for the help.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code