Results 1 to 3 of 3

Thread: Crash - unable to initialize heap

  
  1. #1

    Default Crash - unable to initialize heap

    Hey there, I just found KeeperFX today and grabbed my old DK Gold CD to play it again after a long time. I have no problem starting a game but after like 30 seconds in any game the game crashes with a runtime error.
    The crash is actually similiar to this old thread: https://keeperklan.com/threads/2176-...on-in-the-game.
    I use KeeperFX 0.40 and I also tried it with the latest nightly build (I assume that I just had to copy/paste the new files into the KeeperFX folder?) with no success.

    I wanted to know, since the mentioned thread is a bit old, if there is any fix for this problem. Using the -nosound parameter solves the problem, but playing with no sound at all makes not that much fun :/


    Code:
    Dungeon Keeper FX ver 0.4.0.567 (heavylog release)
    LOG CREATED  @ 17:27:55  01-01-2013
    
    Sync: LbMouseChangeMoveRatio: New ratio 256x256
    Sync: CPU GenuineIntel type 0 family 6 model 7 stepping 2 features bfebfbff
    Sync: PhysicalMemory 32
    Sync: Memory-demanding features enabled.
    Sync: load_configuration: Starting
    Sync: load_configuration: Processing Config file, 908 bytes
    Sync: load_configuration: Config loaded
    Sync: setup_screen_mode_zero: Setting up mode 28
    Sync: LbScreenSetup: Mode 640x480x32 setup succeeded
    Sync: LbScreenSetup: Done filling display properties struct
    Sync: LbScreenSetup: Finished
    Sync: Moon phase 0.2067
    Sync: init_sound: Starting
    Sync: LbScreenSetup: Mode 640x480x32 setup succeeded
    Sync: LbScreenSetup: Done filling display properties struct
    Sync: LbScreenSetup: Finished
    Sync: play_smk_via_buffer: Starting
    LbDataFree: freeing "*PALETTE"...done
    LbDataFree: freeing "*SCRATCH"...done
    Sync: initial_setup: Starting
    Sync: LbMouseChangeMoveRatio: New ratio 128x128
    Sync: clear_game: Starting
    Sync: clear_game_for_summary: Starting
    Sync: delete_all_structures: Starting
    Sync: clear_dungeons: Starting
    Sync: clear_computer: Starting
    Sync: ceiling_set_info: Starting
    Sync: init_animating_texture_maps: Starting
    Sync: load_settings: Starting
    Sync: setup_gui_strings_data: Starting
    Sync: setup_heaps: Starting
    Sync: GraphicsHeap Size 8388608
    Sync: SoundHeap Size 8388608
    Sync: init_sound_heap_two_banks: Starting
    Sync: Sound samples in banks: 840,126
    Sync: init_keeper: Starting
    Sync: init_colours: Starting
    Sync: load_creaturetypes_config: Parsing Creature Types config file "creature.cfg".
    Sync: load_terrain_config_file: Parsing global terrain config file "./fxdata/terrain.cfg".
    
    <<<<>>>>>>
    
    Sync: update_things: Finished
    Sync: process_rooms: Starting
    Sync: process_rooms: Finished
    Sync: process_dungeons: Starting
    Sync: check_players_won: Starting
    Sync: check_players_lost: Starting
    Sync: process_dungeon_power_magic: Starting
    Sync: process_dungeon_devastation_effects: Starting
    Sync: process_entrance_generation: Starting
    Sync: generation_due_for_dungeon: Starting
    Sync: generation_due_for_dungeon: Starting
    Sync: process_dungeons: Finished
    Sync: update_research: Starting
    Sync: update_manufacturing: Starting
    Sync: process_level_script: Starting
    Sync: process_computer_player2: Starting for player 1
    Sync: task_place_room: Starting
    Sync: process_players: Starting
    Sync: process_player_instances: Finished
    Sync: process_player_states: Starting
    Sync: process_players: Doing updates for player 0
    Sync: update_player_objectives: Starting for player 0
    Sync: process_players: Doing updates for player 1
    Sync: update_player_objectives: Starting for player 1
    Sync: process_action_points: Starting
    Sync: update_footsteps_nearest_camera: Starting
    Sync: process_armageddon: Starting
    Sync: lights_stats_debug_dump: Lights: 229 free, 171 used; 168 static, 3 dynamic; for things:87,0,0,0,0,0,0,0,0,0,0,0,0
    Check things: Creats68, Objs233, Bods4, Trps26, Drs19, Shts0, Effs1, EffEls21 Othrs18 Total390
    Sync: message_update: Starting
    Sync: update_all_players_cameras: Starting
    Sync: update_player_sounds: Starting

  2. #2
    KeeperFX Author mefistotelis's Avatar
    Join Date
    Sep 2009
    Location
    Poland
    Posts
    1,242

    Default Re: Crash - unable to initialize heap

    It seem this problem is quite rare, but still happens.

    I wonder what could cause it.
    The most obvious causes would be that either wrong sound-related DLL is loaded or that sound card drivers are buggy.

    So:
    - try updating sound card drivers
    - try searching for MSS32.DLL and make sure there are no outdated versions of this library anywhere on disk.

    Let us know if any of these fixed the issue.

  3. #3

    Default Re: Crash - unable to initialize heap

    I already have the latest sound card drivers. And I've found this library only once on my computer - it's the one on my KeeperFX folder.
    But it seems like I found the trouble: I have 2 sound cards in my pc (normal onboard Realtek and extern Asus card) and I'm using always the Asus card, but when I switch to the onboard sound card, I have no problems with playing DK. So it seems that my Asus Xonar DX is causing some trouble :/

Similar Threads

  1. Dk2 icd.exe crash
    By Brando3733 in forum DK2 Troubleshooting
    Replies: 3
    Last Post: October 22nd, 2011, 10:07
  2. DKFX crash after intro movie. DKGOLD crash at combat.
    By Haarvieh in forum DK1 Troubleshooting
    Replies: 10
    Last Post: May 20th, 2011, 19:29
  3. Freeze/Crash in 0.38c
    By Jokerspeed in forum KeeperFX
    Replies: 3
    Last Post: March 20th, 2011, 08:23
  4. Unable to run KeeperFX
    By Ogre in forum KeeperFX
    Replies: 4
    Last Post: January 8th, 2011, 17:30
  5. Unable to see map
    By psycopath in forum DK2 Troubleshooting
    Replies: 19
    Last Post: February 21st, 2010, 16:10

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •