FreeOrion

Forums for the FreeOrion project
It is currently Thu Nov 23, 2017 7:35 am

All times are UTC


Forum rules


Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.



Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Jun 12, 2017 11:13 pm 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
Running fullscreen on laptop with default FO Linux options.

Occurs even if this is the only app I have open, though of course the usual processes are running to support desktop environment etc.

CPU: 2-core i5 second gen with integrated gfx.

Release is 0.4.7; I used dnf to install the package provided to the Fedora repo.

Behavior: Trackpad, screen and music freeze. Sometimes can alt-tab but sometimes not. (It might be that the freeze ends as I alt-tab, and that the keyboard is also frozen.) Duration ranges from 2-20 seconds.

Running top afterward with FO app open but not onscreen does not show undue memory usage, though FO always consumes CPU, even suspended.

Nothing has been swapped in or out during this time; storage device shows no activity. (So it's not stalled on slow or oversaturated block dev.)

0.4.6 never exhibited this behavior when running on the same laptop under Windows 7.


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 1:30 am 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
And now that it crashed, complete with logs!


Attachments:
focrash.tgz [3.91 MiB]
Downloaded 5 times
Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 1:51 am 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4377
Anytime you have a crash, whatever recollections you have of your activity at the time of crash are very helpful, in addition to the logs. From the AI logs and server log it looks like they all shut down cleanly, apparently in response to your game client terminating. Your main player log doesn't really give any indication of the crash, but I see the last line is
Code:
2017-06-14 18:18:04.802451 [debug] Client : Sound.cpp:268 : Audio disabled.
-- did you turn off sound just prior to the crash?

Since you are working with a precompiled version from the Fedora repositories (to my understanding) it seems possible that the problem may relate to some driver conflict between whatever library settings they used to build FO versus what you have on your machine. I don't recall anyone from the Fedora team being vocal here, so you probably want to be sure to also post something directly with Fedora.

It is also pretty easy these days to build FO yourself on Linux, and I suspect that would be your best bet (plus you'd have more up-to-date code). Our compilation instructions are a bit better fleshed our for Ubuntu and debian, but if you have any questions just speak up. Our two main instruction pages for compiling are here, and more specifically for Linux here.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 1:58 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12016
Location: Munich
It would be helpful to discuss what you were doing to produce the crash, and exactly how / when it happened.

Better would be a stack trace.


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 5:54 pm 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
Hi,

Dilvish wrote:
Anytime you have a crash, whatever recollections you have of your activity at the time of crash are very helpful, in addition to the logs. From the AI logs and server log it looks like they all shut down cleanly, apparently in response to your game client terminating. Your main player log doesn't really give any indication of the crash, but I see the last line is
Code:
2017-06-14 18:18:04.802451 [debug] Client : Sound.cpp:268 : Audio disabled.
-- did you turn off sound just prior to the crash?

Interesting. I did not disable audio, but audio does stop during each hang (my first post) and did stop before the crash, which started off as the usual hang.

My activity was banal: I was on the main screen trying to move the pointer toward a system.
Quote:
It is also pretty easy these days to build FO yourself on Linux, and I suspect that would be your best bet (plus you'd have more up-to-date code).
Our compilation instructions are a bit better fleshed our for Ubuntu and debian, but if you have any questions just speak up. Our two main instruction pages for compiling are here, and more specifically for Linux here.


Thanks. I had seen that, but thought it would be simpler just to install the precompiled binaries. Silly me; it's Linux! I'll build my own, as you suggest.

Anyway,

Ken


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 5:57 pm 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
Hi,

Geoff the Medio wrote:
It would be helpful to discuss what you were doing to produce the crash, and exactly how / when it happened.

Better would be a stack trace.


The hangs just happen. Not when I open a screen, not in response to a click. The crash started off as just another hang of the usual sort.

I didn't see a stack trace in the directory as the logs, but I'll look for it.

Anyway,

Ken


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 6:51 pm 
Offline
Dyson Forest
User avatar

Joined: Mon Apr 10, 2017 4:25 pm
Posts: 215
ovarwa wrote:
I didn't see a stack trace in the directory as the logs, but I'll look for it.
I bet it won't be there.

You can get an stack trace of any application by running it into a debugger. See for example first answer in here.


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 9:14 pm 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
Oberlus wrote:
ovarwa wrote:
I didn't see a stack trace in the directory as the logs, but I'll look for it.
I bet it won't be there.

You can get an stack trace of any application by running it into a debugger. See for example first answer in here.


I meant that I did not find a core dump file. Since I was not expecting a crash, I didn't even consider running it under gdb.


Top
 Profile  
 
PostPosted: Thu Jun 15, 2017 9:24 pm 
Offline
Programmer

Joined: Sun Feb 14, 2016 12:08 am
Posts: 343
Not sure if it will contain much for release build: System Tools->Problem Reporting->Right Click on crash->Open problem's data directory->core_backtrace

_________________
Any content posted should be considered licensed GNU GPL 2.0 and/or CC-BY-SA 3.0 as appropriate.


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 8:43 pm 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
Well, core file generation was disabled by default, and I enabled this, so if there's a next time, I'll have something for you.

(The Fedora install was a bit strange; they installed *two* sets of executables, one in /bin and and other in /usr/bin... and they started with different defaults set. Odd.)

Also, I disabled gas clouds and limited FPS to 30, after which the problem stopped entirely.

As an aside, I notice that the tooltip for setting #threads for various functionality warns that using more than 1 thread is likely to result in instability, yet the default number of threads in each pool is greater than one. I did not touch these defaults, assuming that the documentation lags behind reality.


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 10:11 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4377
ovarwa wrote:
As an aside, I notice that the tooltip for setting #threads for various functionality warns that using more than 1 thread is likely to result in instability,
what version are you using, and did you change the language stringtable from the default en.txt? For the three threadcount tooltips on the Options->Other page for me, they all refer to merely "may cause unpredictable crashes", not that they are likely to do so. I am pretty sure that as a practical matter the risk seems to be very very low.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 10:28 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12016
Location: Munich
Using extra threads could cause crashes when doing stuff that causes effect evaluations, such as changing focus settings. If just moving the mouse around while nothing else is happening, it's less likely to be relevant.


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 10:48 pm 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3264
On threads as a specific, I do think we need a better explanation and a recommended settings guide somewhere, I never touch the settings and have no clue what they're doing or what changes it would make, if you're going to have an option it needs to be explicable, currently it's not.

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 11:21 pm 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
Dilvish wrote:
ovarwa wrote:
As an aside, I notice that the tooltip for setting #threads for various functionality warns that using more than 1 thread is likely to result in instability,
what version are you using, and did you change the language stringtable from the default en.txt? For the three threadcount tooltips on the Options->Other page for me, they all refer to merely "may cause unpredictable crashes", not that they are likely to do so. I am pretty sure that as a practical matter the risk seems to be very very low.


Version 0.4.7.

No mods.

That's probably what the tooltips say for me too; I just remembered it wrong. In general, I find that when software says "may cause unpredictable crashes," it means that a) crashes have occurred in the past, b) the same kind of crash might occur in the future since the underlying cause has not been fixed (and perhaps cannot be fixed), c) crashes occur sufficiently often to warrant a gentle warning message, and d) the unpredictable crashes are quite predictable, since the warning message is predicting them.


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 11:24 pm 
Offline
Space Squid

Joined: Thu Dec 11, 2014 3:22 am
Posts: 53
I found a more specific version string: 0.4.7-2.fc25


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group