Author Topic: Anno 1404 crashing after 15 min or so (Solved)  (Read 10376 times)

Offline HtotheK

  • Newbie
  • **
  • Posts: 3
Anno 1404 crashing after 15 min or so (Solved)
« on: June 01, 2015, 09:14:28 PM »
Howdy all! This is absolutely great!

I installed and launched the game on my macbook pro retina (2008) latest OS. After 15 min or sometimes (not always) during autosave (tried turning autosave off and it still crashed) the game would crash back to the desktop.

I am wondering if I did something wrong during the install (from an iso file).

Anyone run into this issue?

Thanks tons in advance!  :)
H

« Last Edit: July 08, 2016, 05:37:11 AM by paulthetall »

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 534
Re: Anno 1404 crashing after 15 min or so
« Reply #1 on: June 02, 2015, 11:02:01 AM »
I'm not sure because that's a Paul's Port, but this port uses Steam?

Offline Stonelord Woodsman

  • Gamer
  • ***
  • Posts: 29
Re: Anno 1404 crashing after 15 min or so
« Reply #2 on: June 02, 2015, 04:15:59 PM »
For me, Anno 1404 also crashes after a certain amount of time.

When I was playing the campaign, it crashed after half an hour at first.

Then I lowered the graphics bit by bit and that seemed to increase the time before a crash to 1hr-2hrs depending on the mission. So this must be a memory issue. Lowering texture quality from high to medium seemed to have the biggest impact on this time increase. Funnily enough, the game still looks great and barely any different at all on medium textures. I also toned down particles to medium, and turned off aniso completely.

However, in the elector scenario that I'm currently playing it has not crashed a single time for me, even when playing 2 hours straight. (I find it hilarious that the game actually notifies you when you have been playing for two hours)

So it has to do with (graphic?) memory, map size, objects on the map and graphic settings have an impact on the time before it runs out of memory.

Some of my specs:
Mbp retina Early 2013

2.4ghz intel core i7
8gb ram
nvidia 650M 1gb vram

Offline paulthetall

  • Administrator
  • Journeyman Porter
  • *****
  • Posts: 113
    • paulthetall.com / Portingkit.com
Re: Anno 1404 crashing after 15 min or so
« Reply #3 on: June 03, 2015, 07:15:27 AM »
Yep Looks like it. The current wine engine may contain some memory leaks which causes it. You also might try newer wine engines and see if it improves the durability

you can do it doing the folowing steps:
1. Download Winery from wineskin website
2. Update it and download some newer Wine Engines
3. The rightclick game in the local game library > properties
4. Then in wineskin click advanced > tools > change engine
5. Change engine to one of the downloaded onces
6. Click play again in local library and see if it works better in higher settings
7. When not satiesfied change to another engine to test.

Let me know the results, if you find better engine I can change it on the server for benefit for all.

Offline HtotheK

  • Newbie
  • **
  • Posts: 3
Re: Anno 1404 crashing after 15 min or so
« Reply #4 on: June 05, 2015, 10:58:56 PM »
Thanks for the suggestion!

I tried to download new engines with no luck :( I tried a couple of engines. Some crash more frequently.

Being so enthrawled in the game and forgetting to save is a time sink since you lose everything.

If anyone has a fix please let us know. It really is hard playing the game with so many crashes.

Thanks all!
H

Offline HtotheK

  • Newbie
  • **
  • Posts: 3
Re: Anno 1404 crashing after 15 min or so
« Reply #5 on: June 11, 2015, 11:15:53 PM »
Anyone?
 :'( :'( :'( :'( :'( :'( :'( :'( :'(

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 534
Re: Anno 1404 crashing after 15 min or so
« Reply #6 on: June 12, 2015, 02:49:04 AM »
Anyone?
 :'( :'( :'( :'( :'( :'( :'( :'( :'(

The only fix until now seems to be the one that you said: low the graphics until it works fine  :-\

Offline Stonelord Woodsman

  • Gamer
  • ***
  • Posts: 29
Re: Anno 1404 crashing after 15 min or so
« Reply #7 on: July 01, 2015, 06:41:06 PM »
This is becoming a problem for me now too. Especially in the late game, when there is tons of stuff on the map. Then it can already crash after 15 mins.

Tried only a couple engines, both made it worse. The current and default engine that I've been using is WS9WineCX13.2.0 . I tried 14.0.0, but as I said that didn't make it any better. If anyone finds one that performs better please let us know by posting in this thread.

So are there any other improvements that can be made? Like running in a different mode or forcing directx? Or winetricks or whatever those are called...

Also: where can I find the log file after it crashed?

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 534
Re: Anno 1404 crashing after 15 min or so
« Reply #8 on: July 01, 2015, 11:57:49 PM »
This is becoming a problem for me now too. Especially in the late game, when there is tons of stuff on the map. Then it can already crash after 15 mins.

Tried only a couple engines, both made it worse. The current and default engine that I've been using is WS9WineCX13.2.0 . I tried 14.0.0, but as I said that didn't make it any better. If anyone finds one that performs better please let us know by posting in this thread.

So are there any other improvements that can be made? Like running in a different mode or forcing directx? Or winetricks or whatever those are called...

Also: where can I find the log file after it crashed?

I'm not sure about which engine is the best, but if we find out that another one is better than the actual one, then we are also going to update the WSI file ;)

About the log file: if you show the package contents of your wrapper (you can right click its file or right click it on Porting Kit Local list), you will find the Wineskin app. In the advanced tab, enable it to always make logs. Now, after a crash, you will be able to find it at Contents/Resources/Logs (inside the wrapper).

Offline Stonelord Woodsman

  • Gamer
  • ***
  • Posts: 29
Re: Anno 1404 crashing after 15 min or so
« Reply #9 on: July 04, 2015, 09:33:33 PM »
I might have found a fix!

It turns out this is likely the game's fault, not wine. I've researched this a bit and found many more users with this problem (or similar with crashing during saves) on windows machines. The game is known to have these issues, it doesn't seem that Ubi is going to anything about it (typical of them).

So I watched a little video and read some forum posts and found with a possible fix, basically force DirectX9 or 10:

1. Find Anno 1404 app (most likely in your applications folder). Right click it, select show package contents.
2. open  drive_c  folder
3. navigate users/Wineskin/ApplicationData/Ubisoft/Anno1404/Config and open the engine.ini file with textedit. (you might want to backup that file)
4. change the following line:  <DirectXVersion>0</DirectXVersion>   set the 0 in the middle to 9 or 10. This will force DirectX9 or 10. It is possible that only one works, try 9 first. I'm not sure if wine installed 9 or 10, hopefully both (@Vitormm do you know?) However the game is optimized for 10.

5. Additionally, the video I watched (not the forum posts) instructed me to change these lines as well (but it might not be necessary )


<EnableTextureMemoryManagement>1</EnableTextureMemoryManagement>
<EnableModelMemoryManagement>1</EnableModelMemoryManagement>

set both of the 1 in the middle to 0

Though the video says that it will give error messages in-game, but they aren't real (they don't affect anything). The only way to fix that is to download a patch and change more stuff and yada yada... That might be a bit complicated. But that only happens of you change those two lines.

« Last Edit: July 05, 2015, 12:06:42 PM by Stonelord Woodsman »

Offline Stonelord Woodsman

  • Gamer
  • ***
  • Posts: 29
Re: Anno 1404 crashing after 15 min or so
« Reply #10 on: July 05, 2015, 12:05:47 PM »
Well, on my first test I changed only the DirectX line to 9. That didn't fix it for me, but it helped, I was able to play a bit longer before a CTD. But I might just be lucky. 

On my second test I changed the other two lines as well, that caused the game to freeze during the second autosave after 30 mins. I did not get any in-game error messages.   

The log file of that second test ended with this being repeated:

2015-07-05 13:26:18.366 Anno 1404848062562Wine[6160:27453] NSImage: Insufficient memory to allocate pixel data buffer of 4096 bytes
2015-07-05 13:26:18.392 Anno 1404848062562Wine[6160:27453] (
   0   CoreFoundation                      0x91676373 __raiseError + 195
   1   libobjc.A.dylib                     0x9c134a2a objc_exception_throw + 276
   2   CoreFoundation                      0x9167628d +[NWooHooception raise:format:] + 141
   3   AppKit                              0x97f06a01 NSNewBitmapBackingStore + 373
   4   AppKit                              0x97f0676b __79-[NSBitmapImageRep _withoutChangingBackingPerformBlockUsingBackingMutableData:]_block_invoke + 343
   5   AppKit                              0x97f05c51 -[NSBitmapImageRep _performBlockUsingBacking:] + 47
   6   AppKit                              0x97f0660d -[NSBitmapImageRep _withoutChangingBackingPerformBlockUsingBackingMutableData:] + 116
   7   AppKit                              0x97f0657f __57-[NSBitmapImageRep _performBlockUsingBackingMutableData:]_block_invoke + 140
   8   AppKit                              0x97f05c51 -[NSBitmapImageRep _performBlockUsingBacking:] + 47
   9   AppKit                              0x97f064eb -[NSBitmapImageRep _performBlockUsingBackingMutableData:] + 117
   10  AppKit                              0x97f06462 -[NSBitmapImageRep getBitmapDataPlanes:] + 105
   11  AppKit                              0x97f063d5 -[NSBitmapImageRep bitmapData] + 52
   12  AppKit                              0x980a1951 -[NSBitmapGraphicsContext _initWithBitmapImageRep:] + 292
   13  AppKit                              0x980a1813 +[NSGraphicsContext graphicsContextWithBitmapImageRep:] + 86
   14  AppKit                              0x982d090c -[NSCursor _premultipliedARGBBitmaps] + 1470
   15  AppKit                              0x97fbd41e -[NSCursor _reallySet] + 168
   16  AppKit                              0x97fbd345 -[NSCursor set] + 235
   17  winemac.drv.so                      0x45003b28 -[WineApplicationController updateCursor:] + 184
   18  winemac.drv.so                      0x4500a9ef -[WineApplicationController setCursor] + 335
   19  winemac.drv.so                      0x45002ef6 __macdrv_set_cursor_block_invoke_2 + 70
   20  winemac.drv.so                      0x45004e46 PerformRequest + 102
   21  CoreFoundation                      0x91582d4f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
   22  CoreFoundation                      0x915747dd __CFRunLoopDoSources0 + 253
   23  CoreFoundation                      0x91573d12 __CFRunLoopRun + 994
   24  CoreFoundation                      0x915736c6 CFRunLoopRunSpecific + 390
   25  CoreFoundation                      0x9157352b CFRunLoopRunInMode + 123
   26  HIToolbox                           0x944c42d8 RunCurrentEventLoopInMode + 262
   27  HIToolbox                           0x944c4011 ReceiveNextEventCommon + 494
   28  HIToolbox                           0x944c3e0c _BlockUntilNextEventMatchingListInModeWithFilter + 99
   29  AppKit                              0x97e91229 _DPSNextEvent + 734
   30  AppKit                              0x97e90a71 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 186
   31  AppKit                              0x97e8302c -[NSApplication run] + 907
   32  winemac.drv.so                      0x4501002a run_cocoa_app + 282
   33  CoreFoundation                      0x91582d4f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
   34  CoreFoundation                      0x915747dd __CFRunLoopDoSources0 + 253
   35  CoreFoundation                      0x91573d12 __CFRunLoopRun + 994
   36  CoreFoundation                      0x915736c6 CFRunLoopRunSpecific + 390
   37  CoreFoundation                      0x916360a1 CFRunLoopRun + 129
   38  libwine.1.0.dylib                   0x400061d9 wine_init + 2745
   39  Anno 1404848062562Wine              0x7bf009bd main + 285
   40  Anno 1404848062562Wine              0x7bf00895 start + 53
)

So that might be wine causing that.

I will try again, and see if it freezes again with those settings.


One thing that I might do and that hopefully helps is lower the resolution of the game.

Offline vitormm

  • Developer
  • Administrator
  • Legendary Porter
  • *****
  • Posts: 534
Re: Anno 1404 crashing after 15 min or so
« Reply #11 on: July 07, 2015, 05:51:10 PM »
Considering the oldest reports reducing the resolution will probably help :)

I'm not sure if that wrapper installs DirectX, but surely it have more chances of working with DirectX 9 than with DirectX 10 (Wine has more support to 9). Has you said, it may don't solve the problem, but it surely helps  ;D

Offline 112madgamer

  • WSI Developer
  • Global Moderator
  • Journeyman Porter
  • *****
  • Posts: 132
Re: Anno 1404 crashing after 15 min or so
« Reply #12 on: November 13, 2015, 03:41:31 AM »
Has this been solved?

Offline Dorian74

  • Gamer
  • ***
  • Posts: 10
Re: Anno 1404 crashing after 15 min or so
« Reply #13 on: February 14, 2016, 11:39:24 AM »
It still crashes, but reducing the graphic settings to lower levels helps. It would be great indeed, if that issue could be fixed.

Offline Stonelord Woodsman

  • Gamer
  • ***
  • Posts: 29
Re: Anno 1404 crashing after 15 min or so
« Reply #14 on: April 19, 2016, 01:52:44 PM »
I see there's a GOG version now. A bit sad the expansion only works with that (I have the GG version). I wonder why it only works with that version, is it possible for one of you porters to explain that?

To add to this topic, does the GOG version also have the same crashing issues?