Giter VIP home page Giter VIP logo

Comments (5)

TrueBrain avatar TrueBrain commented on May 21, 2024

Would you mind trying 14.0-RC1, see if that works? If not, please do attach the json.log 14.0-RC1 will generate. Tnx.

from openttd.

James103 avatar James103 commented on May 21, 2024

Also, how much RAM does your computer have?

from openttd.

TheMowgliMan avatar TheMowgliMan commented on May 21, 2024

Also, how much RAM does your computer have?

Windows 11 signals a minimum of 4 gigabytes---should be enough for any reasonable game of OpenTTD unless the computer has a virus or @sheepdeets is also cross-shopping simultaneously. I started playing OpenTTD with a Raspberry Pi 3B with 1 gigabyte of RAM, and it never threw that particular error (When I loaded a 32bpp NewGRF, it would, however, throw a "couldn't allocate 512 MB of graphics RAM, allocating 256 MB" or similar; I can't remember it exactly, it was a long time ago). This was OpenTTD 1.4.4, of course, so memory needs might have increased since then (It wasn't ten years ago, but it was, and still is, rare for ARM-anything Linux to get updates to OpenTTD, at least in the package manager).

from openttd.

TrueBrain avatar TrueBrain commented on May 21, 2024

Also, how much RAM does your computer have?

@James103: for your context, this kind of information is now in the crash logs since 14.0. Also the reason why I am asking for one, so we can actually see what kind of system it runs on. Also what GRFs are loaded, etc :)

Backtrace:

 	openttd.exe!raise(int signum=22) Line 547	C++
 	openttd.exe!abort() Line 71	C++
 	openttd.exe!error(const char * s=0x00007ff7f1930730, ...) Line 149	C++
 	openttd.exe!MallocError(unsigned __int64 size) Line 20	C++
 	[Inline Frame] openttd.exe!CallocT(unsigned __int64 num_elements=1937288) Line 95	C++
 	openttd.exe!Blitter_32bppAnim::PostResize() Line 536	C++
 	openttd.exe!VideoDriver_Win32Base::ClientSizeChanged(int w, int h, bool force) Line 916	C++
>	openttd.exe!VideoDriver_Win32OpenGL::Start(const std::vector<std::string,std::allocator<std::string>> & param={...}) Line 1350	C++
 	openttd.exe!DriverFactoryBase::SelectDriverImpl(const std::string & name, Driver::Type type=DT_VIDEO) Line 152	C++
 	openttd.exe!DriverFactoryBase::SelectDriver(const std::string & name={...}, Driver::Type type=DT_VIDEO) Line 96	C++
 	openttd.exe!openttd_main(int argc, char * * argv=0x000000ba6813fa50) Line 755	C++
 	openttd.exe!WinMain(HINSTANCE__ * hInstance=0x000000000000000a, HINSTANCE__ * hPrevInstance=0x0000000000000000, char * lpCmdLine=0x0000000000000000, int nCmdShow=-584646656) Line 416	C++

So on-start we already run out of memory, by just allocating the video-buffers. So yeah, very curious to see what 14.0 thinks about this :)

from openttd.

TrueBrain avatar TrueBrain commented on May 21, 2024

An out-of-memory error means exactly that: OpenTTD tried to allocate memory that wasn't available on your system. Mostly this is caused by having too little memory free to run the game. OpenTTD normally runs with ~100MB of RAM or so, but depending on what you have loaded this can increase. Especially when 32bpp sets are loaded, it can consume more than 1GB of RAM. And when playing a 4k x 4k map, that can boom to ~2GB or so.

Mostly what we see is that users also have software like Chrome active, with many many many open tabs, which drain their available memory. So if this error persists, my suggestion would be to check how much free memory is available, and see what hogs the memory the most. It is not likely to be OpenTTD, at least, we see no evidence of it using an absurd amount of memory.

If you still have this problem, please get back to us with a crash.json.log from 14.0 :)

Hope this helps!

from openttd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.