Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2002:
[Freeciv-Dev] Re: GTK client crash (assertion failed: too much luxury) (
Home

[Freeciv-Dev] Re: GTK client crash (assertion failed: too much luxury) (

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: awilkins@xxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: GTK client crash (assertion failed: too much luxury) (PR#1409)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Apr 2002 09:21:29 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Thu, Apr 25, 2002 at 07:54:12PM -0700, awilkins@xxxxxxxxxxxx wrote:
> Full_Name: Alexander Wilkins
> Version: April 23 CVS
> Distribution: Built from source
> Client: Gtk+
> OS: Redhat Linux 7.2 (kernel 2.4.9-31)
> Submission from: (NULL) (128.12.194.114)

> When attempting to open a city dialog with a rather large city, the client
> crashes.  gdb stack backtraces (obtained after compiling FreeCiv with the -g
> flag) are appended.  These indicate that the city has too much luxury, and 
> this
> violated an assertion in cma_core.c.  Redefining MAX_LUXURY to be 500 (from 
> 150)
> fixed the problem, but may have introduced problems elsewhere.  As a side 
> note,
> I believe the theoretical maximum for luxury in a city is
>
> {[(max base trade for terrain) + (democracy bonus) + (river)] * (super 
> highways)
> * (number of squares) + [(max size of city) - (number of squares)] *
> (entertainer bonus)} * (effects of marketplace + bank + stock exchange)
>
> {[4 + 1 + 1] * (3 / 2) * 21 + [63 - 21] * 2} * (5 / 2) = 682.5
>
> The highest I could get any city to in my current civ is 382, although most of
> the fully developed cities I have had luxury amounts in the 200 - 300 range
> (size in the low 40s, fully railroaded, with super highways and stock
> exchange).

Not so much to you Alexander but the other developers:

Current size of cache2 is 225k. With MAX_LUXURY=700 it is 390k. CMA
also contains cache3 which in the current version is 411k.

I can either make cache2 dynamic sized or increase the MAX_LUXURY to 700.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  Microsoft does have a year 2000 problem. I'm part of it. I'm running Linux.


[Prev in Thread] Current Thread [Next in Thread]