bugdone / headshotbox

https://headshotbox.github.io
MIT License
163 stars 25 forks source link

OSX demo parsing issue #144

Closed edfarrow closed 8 years ago

edfarrow commented 8 years ago

Built demoinfogo-linux from source and replaced the demoinfogo bin in headshotbox folder with the built one (seems to run fine). Also built protobuf using homebrew. The path which I inputted in settings is recognised, as are the demos.

<removed>:headshotbox-0.11.0-linux <removed>$ java -jar /Applications/Broiler/headshotbox-0.11.0-linux/hsbox-0.11.0-standalone.jar --portable --port 4000
2016-Mar-22 17:37:05 +0000 <removed> INFO [hsbox.core] - HeadshotBox 0.11.0 portable 
2016-Mar-22 17:37:05 +0000 <removed> INFO [hsbox.version] - Checking latest version on https://raw.githubusercontent.com/bugdone/headshotbox/master/latest-windows-version
2016-03-22 17:37:05.204:INFO:oejs.Server:jetty-7.x.y-SNAPSHOT
2016-03-22 17:37:05.236:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:4000
2016-Mar-22 17:37:05 +0000 <removed> WARN [hsbox.db] - Migrating from schema version 1 to 2
2016-Mar-22 17:37:05 +0000 <removed> WARN [hsbox.db] - Migrating from schema version 2 to 3
2016-Mar-22 17:37:05 +0000 <removed> WARN [hsbox.db] - Migrating from schema version 3 to 4
2016-Mar-22 17:37:05 +0000 <removed> WARN [hsbox.indexer] - Invalid path C:\Program Files (x86)\Steam\SteamApps\common\Counter-Strike Global Offensive\csgo\replays
2016-Mar-22 17:37:05 +0000 <removed> DEBUG [hsbox.indexer] - Indexer started
2016-Mar-22 17:37:06 +0000 <removed> DEBUG [hsbox.version] - Latest version 0.11.0

2016-Mar-22` 17:21:22 +0000 <removed> DEBUG [hsbox.indexer] - Adding path /Users/<removed>/Library/Application Support/Steam/SteamApps/common/Counter-Strike Global Offensive/csgo/replays/match730_003131405370694565965_0321457440_138.dem
2016-Mar-22 17:21:22 +0000 <removed> INFO [hsbox.demo] - Processing /Users/<removed>/Library/Application Support/Steam/SteamApps/common/Counter-Strike Global Offensive/csgo/replays/match730_003131405370694565965_0321457440_138.dem
2016-Mar-22 17:21:22 +0000 <removed> ERROR [hsbox.indexer] - Cannot parse demo /Users/<removed>/Library/Application Support/Steam/SteamApps/common/Counter-Strike Global Offensive/csgo/replays/match730_003131405370694565965_0321457440_138.dem
2016-Mar-22 17:21:22 +0000 <removed> ERROR [hsbox.indexer] - 
               hsbox.core.main                  
                           ...                  
              hsbox.core/-main     core.clj:  69
             hsbox.indexer/run  indexer.clj:  94
        hsbox.indexer/add-demo  indexer.clj:  54
      hsbox.demo/get-demo-info     demo.clj: 283
         hsbox.demo/parse-demo     demo.clj:  48
hsbox.demo/parse-demo/do-parse     demo.clj:  45
java.lang.AssertionError: Assert failed: (zero? (:exit proc))

java -version returns

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

Running ./demoinfogo returns:

<removed>:headshotbox-0.11.0-linux <removed>$ ./demoinfogo
demoinfogo filename.dem
optional arguments:
 -json          Dump as json.
 -hsbox         Dump only headshotbox events.
 -gameevents    Dump out game events.
 -nofootsteps   Skip footstep events when dumping out game events.
                Should be after -gameevents.
 -extrainfo     Show extra player info when dumping out game events.
                Should be after -gameevents.
 -deathscsv     Dump out player death info in CSV form.
 -nowarmup      Skip deaths during warm up when dumping player deaths.
                Should be after -deaths.
 -stringtables  Dump string tables.
 -datatables    Dump data tables. (send tables)
 -packetentites Dump Packet Entities messages.
 -netmessages   Dump net messages that are not one of the above.
Note: by default everything is dumped out.

Running demoinfogo on a demo returns an error though:

CreateStringTable:genericprecache:512:1:1:2:
Assertion failed: (((unsigned long)pData & 3) == 0), function StartReading, file demoinfogo-linux-master/src/demofilebitbuf.cpp, line 224.
Abort trap: 6
bugdone commented 8 years ago

Does it happen for all demos?

It looks like a memory alignment issue. It might be a problem with how it was compiled. Can't really tell since I don't have a mac.

edfarrow commented 8 years ago

I've checked demoinfogo on a few more demos. Get the same error. Here's the complete error dump:

<removed>:headshotbox-0.11.0-linux <removed>$ ./demoinfogo /Users/<removed>/Library/Application\ Support/Steam/SteamApps/common/Counter-Strike\ Global\ Offensive/csgo/replays/match730_003132415293599514771_1722828830_131.dem
---- CNETMsg_Tick (9 bytes) -----------------
tick: 10283
host_computationtime: 0
host_computationtime_std_deviation: 0
host_framestarttime_std_deviation: 0
---- CNETMsg_SetConVar (1325 bytes) -----------------
convars {
  cvars {
    name: "cash_team_rescued_hostage"
    value: "600"
  }
  cvars {
    name: "bot_autodifficulty_threshold_high"
    value: "0"
  }
  cvars {
    name: "cash_team_win_by_defusing_bomb"
    value: "3500"
  }
  cvars {
    name: "game_mode"
    value: "1"
  }
  cvars {
    name: "mp_ggtr_bomb_pts_for_upgrade"
    value: "2"
  }
  cvars {
    name: "ff_damage_reduction_bullets"
    value: "0.33"
  }
  cvars {
    name: "bot_quota_mode"
    value: "fill"
  }
  cvars {
    name: "cash_player_interact_with_hostage"
    value: "300"
  }
  cvars {
    name: "mp_maxrounds"
    value: "30"
  }
  cvars {
    name: "ammo_grenade_limit_total"
    value: "4"
  }
  cvars {
    name: "mp_respawn_immunitytime"
    value: "0"
  }
  cvars {
    name: "mp_roundtime_defuse"
    value: "1.92"
  }
  cvars {
    name: "mp_ggprogressive_round_restart_delay"
    value: "15"
  }
  cvars {
    name: "mp_timelimit"
    value: "0"
  }
  cvars {
    name: "mp_warmuptime"
    value: "60"
  }
  cvars {
    name: "sv_deadtalk"
    value: "1"
  }
  cvars {
    name: "mp_randomspawn_los"
    value: "0"
  }
  cvars {
    name: "mp_weapons_allow_map_placed"
    value: "1"
  }
  cvars {
    name: "sv_hosting_lobby"
    value: "1"
  }
  cvars {
    name: "nextlevel"
    value: "de_dust2"
  }
  cvars {
    name: "mp_ggtr_bomb_defuse_bonus"
    value: "1"
  }
  cvars {
    name: "spec_freeze_time"
    value: "5"
  }
  cvars {
    name: "mp_buytime"
    value: "20"
  }
  cvars {
    name: "bot_difficulty"
    value: "2"
  }
  cvars {
    name: "mp_roundtime_hostage"
    value: "1.92"
  }
  cvars {
    name: "mp_freezetime"
    value: "15"
  }
  cvars {
    name: "bot_defer_to_human_goals"
    value: "1"
  }
  cvars {
    name: "sv_skyname"
    value: "sky_dust"
  }
  cvars {
    name: "sv_reliableavatardata"
    value: "1"
  }
  cvars {
    name: "mp_friendlyfire"
    value: "1"
  }
  cvars {
    name: "cash_team_hostage_interaction"
    value: "600"
  }
  cvars {
    name: "spec_freeze_panel_extended_time"
    value: "0"
  }
  cvars {
    name: "ff_damage_reduction_other"
    value: "0.4"
  }
  cvars {
    name: "mp_molotovusedelay"
    value: "0"
  }
  cvars {
    name: "cash_team_elimination_hostage_map_t"
    value: "3000"
  }
  cvars {
    name: "mp_ggtr_bomb_detonation_bonus"
    value: "1"
  }
  cvars {
    name: "ammo_grenade_limit_flashbang"
    value: "2"
  }
  cvars {
    name: "mp_roundtime"
    value: "1.92"
  }
  cvars {
    name: "mp_halftime"
    value: "1"
  }
  cvars {
    name: "mp_ggtr_bomb_respawn_delay"
    value: "0"
  }
  cvars {
    name: "think_limit"
    value: "0"
  }
  cvars {
    name: "ff_damage_reduction_grenade"
    value: "0.85"
  }
  cvars {
    name: "cash_team_elimination_hostage_map_ct"
    value: "3000"
  }
  cvars {
    name: "cash_team_win_by_hostage_rescue"
    value: "2900"
  }
  cvars {
    name: "tv_transmitall"
    value: "1"
  }
}
CreateStringTable:downloadables:8192:41:0:0:
 0, maps/de_dust2.bsp, 0, (null) 
 1, maps/de_dust2.nav, 0, (null) 
 2, models/player/custom_player/legacy/tm_leet_variantA.mdl, 28, ?
 3, models/player/custom_player/legacy/tm_leet_variantB.mdl, 28, ?
 4, models/player/custom_player/legacy/tm_leet_variantC.mdl, 28, ?
 5, models/player/custom_player/legacy/tm_leet_variantD.mdl, 28, ?
 6, models/player/custom_player/legacy/tm_leet_variantE.mdl, 28, ?
 7, models/player/custom_player/legacy/ctm_idf.mdl, 28, ?
 8, models/player/custom_player/legacy/ctm_idf_variantB.mdl, 28, ?
 9, models/player/custom_player/legacy/ctm_idf_variantC.mdl, 28, ?
 10, models/player/custom_player/legacy/ctm_idf_variantD.mdl, 28, ?
 11, models/player/custom_player/legacy/ctm_idf_variantE.mdl, 28, ?
 12, materials/sprites/white.vmt, 8,  
 13, materials/sprites/white.vtf, 8,  
 14, materials/vgui/white.vmt, 8,  
 15, materials/vgui/white.vtf, 8,  
 16, materials/effects/flashbang.vmt, 8,  
 17, materials/effects/flashbang_white.vmt, 8,  
 18, materials/particle/particle_smokegrenade1.vmt, 8,  
 19, materials/particle/particle_smokegrenade.vtf, 8,  
 20, materials/sprites/scope_arc.vmt, 8,  
 21, materials/sprites/scope_arc.vtf, 8,  
 22, scripts/dsp_presets.txt, 8,  
 23, cfg/cpu_level_0_pc.ekv, 8,  
 24, cfg/cpu_level_0_pc_ss.ekv, 8,  
 25, cfg/cpu_level_1_pc.ekv, 8,  
 26, cfg/cpu_level_1_pc_ss.ekv, 8,  
 27, cfg/cpu_level_2_pc.ekv, 8,  
 28, cfg/cpu_level_2_pc_ss.ekv, 8,  
 29, cfg/gpu_level_0_pc.ekv, 8,  
 30, cfg/gpu_level_1_pc.ekv, 8,  
 31, cfg/gpu_level_2_pc.ekv, 8,  
 32, cfg/gpu_level_3_pc.ekv, 8,  
 33, cfg/mem_level_0_pc.ekv, 8,  
 34, cfg/mem_level_1_pc.ekv, 8,  
 35, cfg/mem_level_2_pc.ekv, 8,  
 36, cfg/gpu_mem_level_0_pc.ekv, 8,  
 37, cfg/gpu_mem_level_1_pc.ekv, 8,  
 38, cfg/gpu_mem_level_2_pc.ekv, 8,  
 39, scripts/instructor_lessons.txt, 8,  
 40, scripts/mod_lessons.txt, 8,  
CreateStringTable:modelprecache:4096:451:1:2:
 0, , 1,  
 1, maps/de_dust2.bsp, 1,  
 2, *1, 1,  
 3, *2, 1,  
 4, *3, 1,  
 5, *4, 1,  
 6, *5, 1,  
 7, *6, 1,  
 8, *7, 1,  
 9, *8, 1,  
 10, *9, 1,  
 11, *10, 1,  
 12, *11, 1,  
 13, *12, 1,  
 14, *13, 1,  
 15, *14, 1,  
 16, *15, 1,  
 17, *16, 1,  
 18, *17, 1,  
 19, *18, 1,  
 20, *19, 1,  
 21, *20, 1,  
 22, *21, 1,  
 23, *22, 1,  
 24, *23, 1,  
 25, *24, 1,  
 26, *25, 1,  
 27, *26, 1,  
 28, *27, 1,  
 29, *28, 1,  
 30, models/coop/challenge_coin.mdl, 1,  
 31, models/Weapons/w_eq_decoy_dropped.mdl, 1,  
 32, models/Weapons/w_eq_flashbang_dropped.mdl, 1,  
 33, models/Weapons/w_eq_fraggrenade_dropped.mdl, 1,  
 34, models/weapons/v_healthshot.mdl, 1,  
 35, models/weapons/w_eq_healthshot.mdl, 1,  
 36, models/weapons/w_eq_healthshot_dropped.mdl, 1,  
 37, models/Weapons/w_eq_molotov_dropped.mdl, 1,  
 38, models/Weapons/w_eq_incendiarygrenade_dropped.mdl, 1,  
 39, models/Weapons/w_eq_sensorgrenade_thrown.mdl, 1,  
 40, models/Weapons/w_eq_smokegrenade_thrown.mdl, 1,  
 41, models/weapons/v_ied.mdl, 1,  
 42, models/weapons/w_ied.mdl, 1,  
 43, models/weapons/w_ied_dropped.mdl, 1,  
 44, models/weapons/w_c4_planted.mdl, 1,  
 45, models/props/de_overpass/balloon.mdl, 1,  
 46, models/weapons/w_eq_multimeter.mdl, 1,  
 47, models/weapons/v_eq_decoy.mdl, 1,  
 48, models/weapons/w_eq_decoy.mdl, 1,  
 49, models/weapons/v_eq_flashbang.mdl, 1,  
 50, models/weapons/w_eq_flashbang.mdl, 1,  
 51, models/weapons/v_eq_fraggrenade.mdl, 1,  
 52, models/weapons/w_eq_fraggrenade.mdl, 1,  
 53, models/weapons/v_knife_gg.mdl, 1,  
 54, models/weapons/w_knife_gg.mdl, 1,  
 55, models/weapons/v_knife_default_ct.mdl, 1,  
 56, models/weapons/w_knife_default_ct.mdl, 1,  
 57, models/weapons/w_knife_default_ct_dropped.mdl, 1,  
 58, models/weapons/v_eq_incendiarygrenade.mdl, 1,  
 59, models/weapons/w_eq_incendiarygrenade.mdl, 1,  
 60, models/weapons/v_eq_molotov.mdl, 1,  
 61, models/weapons/w_eq_molotov.mdl, 1,  
 62, models/weapons/v_sonar_bomb.mdl, 1,  
 63, models/weapons/w_eq_sensorgrenade.mdl, 1,  
 64, models/weapons/w_eq_sensorgrenade_dropped.mdl, 1,  
 65, models/weapons/v_eq_smokegrenade.mdl, 1,  
 66, models/weapons/w_eq_smokegrenade.mdl, 1,  
 67, models/weapons/w_eq_smokegrenade_dropped.mdl, 1,  
 68, cable/phonecable.vmt, 1,  
 69, cable/phonecable_red.vmt, 1,  
 70, cable/cable.vmt, 1,  
 71, cable/cable_lit.vmt, 1,  
 72, cable/chain.vmt, 1,  
 73, cable/rope.vmt, 1,  
 74, sprites/blueglow1.vmt, 1,  
 75, sprites/purpleglow1.vmt, 1,  
 76, sprites/purplelaser1.vmt, 1,  
 77, models/gibs/hgibs.mdl, 1,  
 78, models/extras/info_speech.mdl, 1,  
 79, sprites/white.vmt, 1,  
 80, sprites/physbeam.vmt, 1,  
 81, models/player/custom_player/legacy/tm_leet_variantA.mdl, 1,  
 82, models/player/custom_player/legacy/tm_leet_variantB.mdl, 1,  
 83, models/player/custom_player/legacy/tm_leet_variantC.mdl, 1,  
 84, models/player/custom_player/legacy/tm_leet_variantD.mdl, 1,  
 85, models/player/custom_player/legacy/tm_leet_variantE.mdl, 1,  
 86, models/player/custom_player/legacy/ctm_idf.mdl, 1,  
 87, models/player/custom_player/legacy/ctm_idf_variantB.mdl, 1,  
 88, models/player/custom_player/legacy/ctm_idf_variantC.mdl, 1,  
 89, models/player/custom_player/legacy/ctm_idf_variantD.mdl, 1,  
 90, models/player/custom_player/legacy/ctm_idf_variantE.mdl, 1,  
 91, models/weapons/t_arms.mdl, 1,  
 92, models/weapons/ct_arms_idf.mdl, 1,  
 93, models/weapons/w_defuser.mdl, 1,  
 94, sprites/glow01.vmt, 1,  
 95, models/player/holiday/santahat.mdl, 1,  
 96, models/ghost/ghost.mdl, 1,  
 97, models/player/holiday/facemasks/facemask_battlemask.mdl, 1,  
 98, models/weapons/w_muzzlefireshape.mdl, 1,  
 99, models/tools/bullet_hit_marker.mdl, 1,  
 100, models/chicken/chicken.mdl, 1,  
 101, models/chicken/chicken_gone.mdl, 1,  
 102, models/chicken/chicken_zombie.mdl, 1,  
 103, models/antlers/antlers.mdl, 1,  
 104, models/weapons/v_pist_deagle.mdl, 1,  
 105, models/weapons/w_pist_deagle.mdl, 1,  
 106, models/weapons/w_pist_deagle_dropped.mdl, 1,  
 107, models/weapons/w_pist_deagle_mag.mdl, 1,  
 108, models/weapons/stattrack.mdl, 1,  
 109, models/weapons/uid.mdl, 1,  
 110, models/weapons/stickers/v_models/pist_deagle_decal_a.mdl, 1,  
 111, models/weapons/stickers/v_models/pist_deagle_decal_b.mdl, 1,  
 112, models/weapons/stickers/v_models/pist_deagle_decal_c.mdl, 1,  
 113, models/weapons/stickers/v_models/pist_deagle_decal_d.mdl, 1,  
 114, models/weapons/v_pist_elite.mdl, 1,  
 115, models/weapons/w_pist_elite_icon.mdl, 1,  
 116, models/weapons/w_pist_elite_buymenu.mdl, 1,  
 117, models/weapons/w_pist_elite_dropped.mdl, 1,  
 118, models/weapons/w_pist_elite_mag.mdl, 1,  
 119, models/weapons/stickers/v_models/pist_elite_decal_a.mdl, 1,  
 120, models/weapons/stickers/v_models/pist_elite_decal_b.mdl, 1,  
 121, models/weapons/stickers/v_models/pist_elite_decal_c.mdl, 1,  
 122, models/weapons/stickers/v_models/pist_elite_decal_d.mdl, 1,  
 123, models/weapons/v_pist_fiveseven.mdl, 1,  
 124, models/weapons/w_pist_fiveseven.mdl, 1,  
 125, models/weapons/w_pist_fiveseven_dropped.mdl, 1,  
 126, models/weapons/w_pist_fiveseven_mag.mdl, 1,  
 127, models/weapons/stickers/v_models/pist_fiveseven_decal_a.mdl, 1,  
 128, models/weapons/stickers/v_models/pist_fiveseven_decal_b.mdl, 1,  
 129, models/weapons/stickers/v_models/pist_fiveseven_decal_c.mdl, 1,  
 130, models/weapons/stickers/v_models/pist_fiveseven_decal_d.mdl, 1,  
 131, models/weapons/v_pist_glock18.mdl, 1,  
 132, models/weapons/w_pist_glock18.mdl, 1,  
 133, models/weapons/w_pist_glock18_dropped.mdl, 1,  
 134, models/weapons/w_pist_glock18_mag.mdl, 1,  
 135, models/weapons/uid_small.mdl, 1,  
 136, models/weapons/stickers/v_models/pist_glock18_decal_a.mdl, 1,  
 137, models/weapons/stickers/v_models/pist_glock18_decal_b.mdl, 1,  
 138, models/weapons/stickers/v_models/pist_glock18_decal_c.mdl, 1,  
 139, models/weapons/stickers/v_models/pist_glock18_decal_d.mdl, 1,  
 140, models/weapons/v_rif_ak47.mdl, 1,  
 141, models/weapons/w_rif_ak47.mdl, 1,  
 142, models/weapons/w_rif_ak47_dropped.mdl, 1,  
 143, models/weapons/w_rif_ak47_mag.mdl, 1,  
 144, models/weapons/stickers/v_models/rif_ak47_decal_a.mdl, 1,  
 145, models/weapons/stickers/v_models/rif_ak47_decal_b.mdl, 1,  
 146, models/weapons/stickers/v_models/rif_ak47_decal_c.mdl, 1,  
 147, models/weapons/stickers/v_models/rif_ak47_decal_d.mdl, 1,  
 148, models/weapons/v_rif_aug.mdl, 1,  
 149, models/weapons/w_rif_aug.mdl, 1,  
 150, models/weapons/w_rif_aug_dropped.mdl, 1,  
 151, models/weapons/w_rif_aug_mag.mdl, 1,  
 152, models/weapons/v_rif_aug_scopelensmask.mdl, 1,  
 153, models/weapons/stickers/v_models/rif_aug_decal_a.mdl, 1,  
 154, models/weapons/stickers/v_models/rif_aug_decal_b.mdl, 1,  
 155, models/weapons/stickers/v_models/rif_aug_decal_c.mdl, 1,  
 156, models/weapons/stickers/v_models/rif_aug_decal_d.mdl, 1,  
 157, models/weapons/v_snip_awp.mdl, 1,  
 158, models/weapons/w_snip_awp_icon.mdl, 1,  
 159, models/weapons/w_snip_awp.mdl, 1,  
 160, models/weapons/w_snip_awp_dropped.mdl, 1,  
 161, models/weapons/stickers/v_models/snip_awp_decal_a.mdl, 1,  
 162, models/weapons/stickers/v_models/snip_awp_decal_b.mdl, 1,  
 163, models/weapons/stickers/v_models/snip_awp_decal_c.mdl, 1,  
 164, models/weapons/stickers/v_models/snip_awp_decal_d.mdl, 1,  
 165, models/weapons/v_rif_famas.mdl, 1,  
 166, models/weapons/w_rif_famas.mdl, 1,  
 167, models/weapons/w_rif_famas_dropped.mdl, 1,  
 168, models/weapons/w_rif_famas_mag.mdl, 1,  
 169, models/weapons/stickers/v_models/rif_famas_decal_a.mdl, 1,  
 170, models/weapons/stickers/v_models/rif_famas_decal_b.mdl, 1,  
 171, models/weapons/stickers/v_models/rif_famas_decal_c.mdl, 1,  
 172, models/weapons/stickers/v_models/rif_famas_decal_d.mdl, 1,  
 173, models/weapons/v_snip_g3sg1.mdl, 1,  
 174, models/weapons/w_snip_g3sg1.mdl, 1,  
 175, models/weapons/w_snip_g3sg1_dropped.mdl, 1,  
 176, models/weapons/w_snip_g3sg1_mag.mdl, 1,  
 177, models/weapons/stickers/v_models/snip_g3sg1_decal_a.mdl, 1,  
 178, models/weapons/stickers/v_models/snip_g3sg1_decal_b.mdl, 1,  
 179, models/weapons/stickers/v_models/snip_g3sg1_decal_c.mdl, 1,  
 180, models/weapons/stickers/v_models/snip_g3sg1_decal_d.mdl, 1,  
 181, models/weapons/stickers/v_models/snip_g3sg1_decal_e.mdl, 1,  
 182, models/weapons/v_rif_galilar.mdl, 1,  
 183, models/weapons/w_rif_galilar.mdl, 1,  
 184, models/weapons/w_rif_galilar_dropped.mdl, 1,  
 185, models/weapons/w_rif_galilar_mag.mdl, 1,  
 186, models/weapons/stickers/v_models/rif_galilar_decal_a.mdl, 1,  
 187, models/weapons/stickers/v_models/rif_galilar_decal_b.mdl, 1,  
 188, models/weapons/stickers/v_models/rif_galilar_decal_c.mdl, 1,  
 189, models/weapons/stickers/v_models/rif_galilar_decal_d.mdl, 1,  
 190, models/weapons/v_mach_m249para.mdl, 1,  
 191, models/weapons/w_mach_m249.mdl, 1,  
 192, models/weapons/w_mach_m249_dropped.mdl, 1,  
 193, models/weapons/stickers/v_models/mach_m249para_decal_a.mdl, 1,  
 194, models/weapons/stickers/v_models/mach_m249para_decal_b.mdl, 1,  
 195, models/weapons/stickers/v_models/mach_m249para_decal_c.mdl, 1,  
 196, models/weapons/stickers/v_models/mach_m249para_decal_d.mdl, 1,  
 197, models/weapons/v_rif_m4a1.mdl, 1,  
 198, models/weapons/w_rif_m4a1.mdl, 1,  
 199, models/weapons/w_rif_m4a1_dropped.mdl, 1,  
 200, models/weapons/w_rif_m4a1_mag.mdl, 1,  
 201, models/weapons/stickers/v_models/rif_m4a1_decal_a.mdl, 1,  
 202, models/weapons/stickers/v_models/rif_m4a1_decal_b.mdl, 1,  
 203, models/weapons/stickers/v_models/rif_m4a1_decal_c.mdl, 1,  
 204, models/weapons/stickers/v_models/rif_m4a1_decal_d.mdl, 1,  
 205, models/weapons/v_smg_mac10.mdl, 1,  
 206, models/weapons/w_smg_mac10.mdl, 1,  
 207, models/weapons/w_smg_mac10_dropped.mdl, 1,  
 208, models/weapons/w_smg_mac10_mag.mdl, 1,  
 209, models/weapons/stickers/v_models/smg_mac10_decal_a.mdl, 1,  
 210, models/weapons/stickers/v_models/smg_mac10_decal_b.mdl, 1,  
 211, models/weapons/stickers/v_models/smg_mac10_decal_c.mdl, 1,  
 212, models/weapons/stickers/v_models/smg_mac10_decal_d.mdl, 1,  
 213, models/weapons/v_smg_p90.mdl, 1,  
 214, models/weapons/w_smg_p90.mdl, 1,  
 215, models/weapons/w_smg_p90_dropped.mdl, 1,  
 216, models/weapons/w_smg_p90_mag.mdl, 1,  
 217, models/weapons/stickers/v_models/smg_p90_decal_a.mdl, 1,  
 218, models/weapons/stickers/v_models/smg_p90_decal_b.mdl, 1,  
 219, models/weapons/stickers/v_models/smg_p90_decal_c.mdl, 1,  
 220, models/weapons/stickers/v_models/smg_p90_decal_d.mdl, 1,  
 221, models/weapons/v_smg_ump45.mdl, 1,  
 222, models/weapons/w_smg_ump45.mdl, 1,  
 223, models/weapons/w_smg_ump45_dropped.mdl, 1,  
 224, models/weapons/w_smg_ump45_mag.mdl, 1,  
 225, models/weapons/stickers/v_models/smg_ump45_decal_a.mdl, 1,  
 226, models/weapons/stickers/v_models/smg_ump45_decal_b.mdl, 1,  
 227, models/weapons/stickers/v_models/smg_ump45_decal_c.mdl, 1,  
 228, models/weapons/stickers/v_models/smg_ump45_decal_d.mdl, 1,  
 229, models/weapons/v_shot_xm1014.mdl, 1,  
 230, models/weapons/w_shot_xm1014.mdl, 1,  
 231, models/weapons/w_shot_xm1014_dropped.mdl, 1,  
 232, models/weapons/stickers/v_models/shot_xm1014_decal_a.mdl, 1,  
 233, models/weapons/stickers/v_models/shot_xm1014_decal_b.mdl, 1,  
 234, models/weapons/stickers/v_models/shot_xm1014_decal_c.mdl, 1,  
 235, models/weapons/stickers/v_models/shot_xm1014_decal_d.mdl, 1,  
 236, models/weapons/v_smg_bizon.mdl, 1,  
 237, models/weapons/w_smg_bizon.mdl, 1,  
 238, models/weapons/w_smg_bizon_dropped.mdl, 1,  
 239, models/weapons/w_smg_bizon_mag.mdl, 1,  
 240, models/weapons/stickers/v_models/smg_bizon_decal_a.mdl, 1,  
 241, models/weapons/stickers/v_models/smg_bizon_decal_b.mdl, 1,  
 242, models/weapons/stickers/v_models/smg_bizon_decal_c.mdl, 1,  
 243, models/weapons/stickers/v_models/smg_bizon_decal_d.mdl, 1,  
 244, models/weapons/v_shot_mag7.mdl, 1,  
 245, models/weapons/w_shot_mag7.mdl, 1,  
 246, models/weapons/w_shot_mag7_dropped.mdl, 1,  
 247, models/weapons/w_shot_mag7_mag.mdl, 1,  
 248, models/weapons/stickers/v_models/shot_mag7_decal_a.mdl, 1,  
 249, models/weapons/stickers/v_models/shot_mag7_decal_b.mdl, 1,  
 250, models/weapons/stickers/v_models/shot_mag7_decal_c.mdl, 1,  
 251, models/weapons/stickers/v_models/shot_mag7_decal_d.mdl, 1,  
 252, models/weapons/v_mach_negev.mdl, 1,  
 253, models/weapons/w_mach_negev.mdl, 1,  
 254, models/weapons/w_mach_negev_dropped.mdl, 1,  
 255, models/weapons/stickers/v_models/mach_negev_decal_a.mdl, 1,  
 256, models/weapons/stickers/v_models/mach_negev_decal_b.mdl, 1,  
 257, models/weapons/stickers/v_models/mach_negev_decal_c.mdl, 1,  
 258, models/weapons/stickers/v_models/mach_negev_decal_d.mdl, 1,  
 259, models/weapons/v_shot_sawedoff.mdl, 1,  
 260, models/weapons/w_shot_sawedoff.mdl, 1,  
 261, models/weapons/w_shot_sawedoff_dropped.mdl, 1,  
 262, models/weapons/stickers/v_models/shot_sawedoff_decal_a.mdl, 1,  
 263, models/weapons/stickers/v_models/shot_sawedoff_decal_b.mdl, 1,  
 264, models/weapons/stickers/v_models/shot_sawedoff_decal_c.mdl, 1,  
 265, models/weapons/stickers/v_models/shot_sawedoff_decal_d.mdl, 1,  
 266, models/weapons/v_pist_tec9.mdl, 1,  
 267, models/weapons/w_pist_tec9.mdl, 1,  
 268, models/weapons/w_pist_tec9_dropped.mdl, 1,  
 269, models/weapons/w_pist_tec9_mag.mdl, 1,  
 270, models/weapons/stickers/v_models/pist_tec9_decal_a.mdl, 1,  
 271, models/weapons/stickers/v_models/pist_tec9_decal_b.mdl, 1,  
 272, models/weapons/stickers/v_models/pist_tec9_decal_c.mdl, 1,  
 273, models/weapons/stickers/v_models/pist_tec9_decal_d.mdl, 1,  
 274, models/weapons/v_eq_taser.mdl, 1,  
 275, models/weapons/w_eq_taser.mdl, 1,  
 276, models/weapons/w_eq_taser_dropped.mdl, 1,  
 277, models/weapons/v_pist_hkp2000.mdl, 1,  
 278, models/weapons/w_pist_hkp2000.mdl, 1,  
 279, models/weapons/w_pist_hkp2000_dropped.mdl, 1,  
 280, models/weapons/w_pist_hkp2000_mag.mdl, 1,  
 281, models/weapons/stickers/v_models/pist_hkp2000_decal_a.mdl, 1,  
 282, models/weapons/stickers/v_models/pist_hkp2000_decal_b.mdl, 1,  
 283, models/weapons/stickers/v_models/pist_hkp2000_decal_c.mdl, 1,  
 284, models/weapons/stickers/v_models/pist_hkp2000_decal_d.mdl, 1,  
 285, models/weapons/v_smg_mp7.mdl, 1,  
 286, models/weapons/w_smg_mp7.mdl, 1,  
 287, models/weapons/w_smg_mp7_dropped.mdl, 1,  
 288, models/weapons/w_smg_mp7_mag.mdl, 1,  
 289, models/weapons/stickers/v_models/smg_mp7_decal_a.mdl, 1,  
 290, models/weapons/stickers/v_models/smg_mp7_decal_b.mdl, 1,  
 291, models/weapons/stickers/v_models/smg_mp7_decal_c.mdl, 1,  
 292, models/weapons/stickers/v_models/smg_mp7_decal_d.mdl, 1,  
 293, models/weapons/v_smg_mp9.mdl, 1,  
 294, models/weapons/w_smg_mp9.mdl, 1,  
 295, models/weapons/w_smg_mp9_dropped.mdl, 1,  
 296, models/weapons/w_smg_mp9_mag.mdl, 1,  
 297, models/weapons/stickers/v_models/smg_mp9_decal_a.mdl, 1,  
 298, models/weapons/stickers/v_models/smg_mp9_decal_b.mdl, 1,  
 299, models/weapons/stickers/v_models/smg_mp9_decal_c.mdl, 1,  
 300, models/weapons/stickers/v_models/smg_mp9_decal_d.mdl, 1,  
 301, models/weapons/v_shot_nova.mdl, 1,  
 302, models/weapons/w_shot_nova.mdl, 1,  
 303, models/weapons/w_shot_nova_dropped.mdl, 1,  
 304, models/weapons/stickers/v_models/shot_nova_decal_a.mdl, 1,  
 305, models/weapons/stickers/v_models/shot_nova_decal_b.mdl, 1,  
 306, models/weapons/stickers/v_models/shot_nova_decal_c.mdl, 1,  
 307, models/weapons/stickers/v_models/shot_nova_decal_d.mdl, 1,  
 308, models/weapons/v_pist_p250.mdl, 1,  
 309, models/weapons/w_pist_p250.mdl, 1,  
 310, models/weapons/w_pist_p250_dropped.mdl, 1,  
 311, models/weapons/w_pist_p250_mag.mdl, 1,  
 312, models/weapons/stickers/v_models/pist_p250_decal_a.mdl, 1,  
 313, models/weapons/stickers/v_models/pist_p250_decal_b.mdl, 1,  
 314, models/weapons/stickers/v_models/pist_p250_decal_c.mdl, 1,  
 315, models/weapons/stickers/v_models/pist_p250_decal_d.mdl, 1,  
 316, models/weapons/v_snip_scar20.mdl, 1,  
 317, models/weapons/w_snip_scar20.mdl, 1,  
 318, models/weapons/w_snip_scar20_dropped.mdl, 1,  
 319, models/weapons/w_snip_scar20_mag.mdl, 1,  
 320, models/weapons/stickers/v_models/snip_scar20_decal_a.mdl, 1,  
 321, models/weapons/stickers/v_models/snip_scar20_decal_b.mdl, 1,  
 322, models/weapons/stickers/v_models/snip_scar20_decal_c.mdl, 1,  
 323, models/weapons/stickers/v_models/snip_scar20_decal_d.mdl, 1,  
 324, models/weapons/v_rif_sg556.mdl, 1,  
 325, models/weapons/w_rif_sg556.mdl, 1,  
 326, models/weapons/w_rif_sg556_dropped.mdl, 1,  
 327, models/weapons/w_rif_sg556_mag.mdl, 1,  
 328, models/weapons/v_rif_sg556_scopelensmask.mdl, 1,  
 329, models/weapons/stickers/v_models/rif_sg556_decal_a.mdl, 1,  
 330, models/weapons/stickers/v_models/rif_sg556_decal_b.mdl, 1,  
 331, models/weapons/stickers/v_models/rif_sg556_decal_c.mdl, 1,  
 332, models/weapons/stickers/v_models/rif_sg556_decal_d.mdl, 1,  
 333, models/weapons/v_snip_ssg08.mdl, 1,  
 334, models/weapons/w_snip_ssg08.mdl, 1,  
 335, models/weapons/w_snip_ssg08_dropped.mdl, 1,  
 336, models/weapons/stickers/v_models/snip_ssg08_decal_a.mdl, 1,  
 337, models/weapons/stickers/v_models/snip_ssg08_decal_b.mdl, 1,  
 338, models/weapons/stickers/v_models/snip_ssg08_decal_c.mdl, 1,  
 339, models/weapons/stickers/v_models/snip_ssg08_decal_d.mdl, 1,  
 340, models/weapons/stattrack_cut.mdl, 1,  
 341, models/weapons/v_knife_default_t.mdl, 1,  
 342, models/weapons/w_knife_default_t.mdl, 1,  
 343, models/weapons/w_knife_default_t_dropped.mdl, 1,  
 344, models/weapons/v_rif_m4a1_s.mdl, 1,  
 345, models/weapons/w_rif_m4a1_s_icon.mdl, 1,  
 346, models/weapons/w_rif_m4a1_s.mdl, 1,  
 347, models/weapons/w_rif_m4a1_s_dropped.mdl, 1,  
 348, models/weapons/w_rif_m4a1_s_mag.mdl, 1,  
 349, models/weapons/stickers/v_models/rif_m4a1_s_decal_a.mdl, 1,  
 350, models/weapons/stickers/v_models/rif_m4a1_s_decal_b.mdl, 1,  
 351, models/weapons/stickers/v_models/rif_m4a1_s_decal_c.mdl, 1,  
 352, models/weapons/stickers/v_models/rif_m4a1_s_decal_d.mdl, 1,  
 353, models/weapons/v_pist_223.mdl, 1,  
 354, models/weapons/w_pist_223.mdl, 1,  
 355, models/weapons/w_pist_223_dropped.mdl, 1,  
 356, models/weapons/w_pist_223_mag.mdl, 1,  
 357, models/weapons/stickers/v_models/pist_223_decal_a.mdl, 1,  
 358, models/weapons/stickers/v_models/pist_223_decal_b.mdl, 1,  
 359, models/weapons/stickers/v_models/pist_223_decal_c.mdl, 1,  
 360, models/weapons/stickers/v_models/pist_223_decal_d.mdl, 1,  
 361, models/weapons/v_pist_cz_75.mdl, 1,  
 362, models/weapons/w_pist_cz_75.mdl, 1,  
 363, models/weapons/w_pist_cz_75_dropped.mdl, 1,  
 364, models/weapons/w_pist_cz_75_mag.mdl, 1,  
 365, models/weapons/stickers/v_models/pist_cz_75_decal_a.mdl, 1,  
 366, models/weapons/stickers/v_models/pist_cz_75_decal_b.mdl, 1,  
 367, models/weapons/stickers/v_models/pist_cz_75_decal_c.mdl, 1,  
 368, models/weapons/stickers/v_models/pist_cz_75_decal_d.mdl, 1,  
 369, models/weapons/v_pist_revolver.mdl, 1,  
 370, models/weapons/w_pist_revolver_icon.mdl, 1,  
 371, models/weapons/w_pist_revolver.mdl, 1,  
 372, models/weapons/w_pist_revolver_dropped.mdl, 1,  
 373, models/weapons/stickers/v_models/pist_revolver_decal_a.mdl, 1,  
 374, models/weapons/stickers/v_models/pist_revolver_decal_b.mdl, 1,  
 375, models/weapons/stickers/v_models/pist_revolver_decal_c.mdl, 1,  
 376, models/weapons/stickers/v_models/pist_revolver_decal_d.mdl, 1,  
 377, models/weapons/stickers/v_models/pist_revolver_decal_e.mdl, 1,  
 378, models/weapons/v_knife_bayonet.mdl, 1,  
 379, models/weapons/w_knife_bayonet.mdl, 1,  
 380, models/weapons/w_knife_bayonet_dropped.mdl, 1,  
 381, models/weapons/v_knife_flip.mdl, 1,  
 382, models/weapons/w_knife_flip.mdl, 1,  
 383, models/weapons/w_knife_flip_dropped.mdl, 1,  
 384, models/weapons/v_knife_gut.mdl, 1,  
 385, models/weapons/w_knife_gut.mdl, 1,  
 386, models/weapons/w_knife_gut_dropped.mdl, 1,  
 387, models/weapons/v_knife_karam.mdl, 1,  
 388, models/weapons/w_knife_karam.mdl, 1,  
 389, models/weapons/w_knife_karam_dropped.mdl, 1,  
 390, models/weapons/v_knife_m9_bay.mdl, 1,  
 391, models/weapons/w_knife_m9_bay.mdl, 1,  
 392, models/weapons/w_knife_m9_bay_dropped.mdl, 1,  
 393, models/weapons/v_knife_tactical.mdl, 1,  
 394, models/weapons/w_knife_tactical.mdl, 1,  
 395, models/weapons/w_knife_tactical_dropped.mdl, 1,  
 396, models/weapons/v_knife_falchion_advanced.mdl, 1,  
 397, models/weapons/w_knife_falchion_advanced.mdl, 1,  
 398, models/weapons/w_knife_falchion_advanced_dropped.mdl, 1,  
 399, models/weapons/v_knife_survival_bowie.mdl, 1,  
 400, models/weapons/w_knife_survival_bowie.mdl, 1,  
 401, models/weapons/w_knife_survival_bowie_dropped.mdl, 1,  
 402, models/weapons/v_knife_butterfly.mdl, 1,  
 403, models/weapons/w_knife_butterfly.mdl, 1,  
 404, models/weapons/w_knife_butterfly_dropped.mdl, 1,  
 405, models/weapons/v_knife_push.mdl, 1,  
 406, models/weapons/w_knife_push_icon.mdl, 1,  
 407, models/weapons/w_knife_push.mdl, 1,  
 408, models/weapons/w_knife_push_dropped.mdl, 1,  
 409, models\Gibs\wood_gib01e.mdl, 1,  
 410, models\Gibs\wood_gib01d.mdl, 1,  
 411, models\Gibs\wood_gib01c.mdl, 1,  
 412, models\Gibs\wood_gib01b.mdl, 1,  
 413, models\Gibs\wood_gib01a.mdl, 1,  
 414, models\Gibs\Glass_shard01.mdl, 1,  
 415, models\Gibs\Glass_shard02.mdl, 1,  
 416, models\Gibs\Glass_shard03.mdl, 1,  
 417, models\Gibs\Glass_shard04.mdl, 1,  
 418, models\Gibs\Glass_shard05.mdl, 1,  
 419, models\Gibs\Glass_shard06.mdl, 1,  
 420, models\props_debris\concrete_chunk08a.mdl, 1,  
 421, models\props_debris\concrete_chunk09a.mdl, 1,  
 422, models\props_debris\concrete_chunk03a.mdl, 1,  
 423, models\props_debris\concrete_chunk07a.mdl, 1,  
 424, models\props_debris\concrete_chunk02a.mdl, 1,  
 425, models\Gibs\metal_gib1.mdl, 1,  
 426, models\Gibs\metal_gib2.mdl, 1,  
 427, models\Gibs\metal_gib3.mdl, 1,  
 428, models\Gibs\metal_gib4.mdl, 1,  
 429, models\Gibs\metal_gib5.mdl, 1,  
 430, models/weapons/w_pist_elite.mdl, 1,  
 431, models/weapons/w_eq_eholster_elite.mdl, 1,  
 432, models/weapons/w_eq_eholster.mdl, 1,  
 433, models/weapons/w_pist_elite_single.mdl, 1,  
 434, sprites/radio.vmt, 1,  
 435, sprites/bubble.vmt, 1,  
 436, sprites/gunsmoke.vmt, 1,  
 437, models/props_junk/garbage_metalcan002a.mdl, 1,  
 438, models/props_junk/garbage_milkcarton002a.mdl, 1,  
 439, models/props_junk/garbage_plasticbottle001a.mdl, 1,  
 440, models/props_junk/plasticbucket001a.mdl, 1,  
 441, models/props_junk/PlasticCrate01a.mdl, 1,  
 442, models/props/de_dust/grainbasket01c.mdl, 1,  
 443, models/props/de_dust/grainbasket01c_gib1.mdl, 1,  
 444, models/props/de_dust/grainbasket01c_gib2.mdl, 1,  
 445, models/props_urban/tire001.mdl, 1,  
 446, models/props_junk/garbage_spraypaintcan01a.mdl, 1,  
 447, sprites/glow06.vmt, 1,  
 448, sprites/glow01.spr, 1,  
 449, models/props/de_inferno/ceiling_fan_blade.mdl, 1,  
 450, sprites/light_glow02_add_noz.vmt, 1,  
CreateStringTable:genericprecache:512:1:1:2:
Assertion failed: (((unsigned long)pData & 3) == 0), function StartReading, file <removed>/demoinfogo-linux-master/src/demofilebitbuf.cpp, line 224.
Abort trap: 6

Will check headshotbox by removing the demo that was throwing the error.

edfarrow commented 8 years ago

headshotbox throws the same error on all demos I have.

edfarrow commented 8 years ago

Just to add, demoinfogo-linux was compiled and I got the following output from the compiler:

cmake .. -DRPATH=ON
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found Protobuf: /usr/local/lib/libprotobuf.dylib  
-- Found JsonSpirit: /usr/local/lib/libjson_spirit.dylib  
-- Configuring done
-- Generating done
-- Build files have been written to: <removed>/demoinfogo-linux-master/build
<removed>:build <removed>$ make
[  6%] Running C++ protocol buffer compiler on src/cstrike15_usermessages.proto
[libprotobuf WARNING google/protobuf/descriptor.cc:5411] Warning: Unused import: "cstrike15_usermessages.proto" imports "google/protobuf/descriptor.proto" which is not used.
[ 13%] Running C++ protocol buffer compiler on src/netmessages.proto
[libprotobuf WARNING google/protobuf/descriptor.cc:5411] Warning: Unused import: "netmessages.proto" imports "google/protobuf/descriptor.proto" which is not used.
[ 20%] Running C++ protocol buffer compiler on src/steammessages.proto
[ 26%] Running C++ protocol buffer compiler on src/cstrike15_gcmessages.proto
Scanning dependencies of target demoinfogo
[ 33%] Building CXX object CMakeFiles/demoinfogo.dir/src/geometry.cpp.o
[ 40%] Building CXX object CMakeFiles/demoinfogo.dir/src/demofile.cpp.o
[ 46%] Building CXX object CMakeFiles/demoinfogo.dir/src/demofiledump.cpp.o
In file included from /Applications/Broiler/demoinfogo-linux-master/src/demofiledump.cpp:32:
In file included from /Applications/Broiler/demoinfogo-linux-master/src/demofiledump.h:30:
/Applications/Broiler/demoinfogo-linux-master/src/demofilepropdecode.h:89:12: warning: 
      enumeration value 'DPT_NUMSendPropTypes' not handled in switch [-Wswitch]
                switch ( m_type )
                         ^
/Applications/Broiler/demoinfogo-linux-master/src/demofiledump.cpp:518:32: warning: 
      format specifies type 'long' but the argument has type 'uint64' (aka
      'unsigned long long') [-Wformat]
                               s_PlayerInfos[index].xuid, s_PlayerInfos[...
                               ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Broiler/demoinfogo-linux-master/src/demofiledump.cpp:519:64: warning: 
      format specifies type 'long' but the argument has type 'uint64' (aka
      'unsigned long long') [-Wformat]
  ...newPlayer.guid, newPlayer.name, newPlayer.xuid, newPlayer.userID);
                                     ^~~~~~~~~~~~~~
/Applications/Broiler/demoinfogo-linux-master/src/demofiledump.cpp:586:76: warning: 
      format specifies type 'long' but the argument has type 'uint64' (aka
      'unsigned long long') [-Wformat]
  ...%s: %s %ld (id:%d)\n", pField, pPlayerInfo->name, pPlayerInfo->xuid,
            ~~~                                        ^~~~~~~~~~~~~~~~~
            %llu
4 warnings generated.
[ 53%] Building CXX object CMakeFiles/demoinfogo.dir/src/demoinfogo.cpp.o
In file included from /Applications/Broiler/demoinfogo-linux-master/src/demoinfogo.cpp:25:
In file included from /Applications/Broiler/demoinfogo-linux-master/src/demofiledump.h:30:
/Applications/Broiler/demoinfogo-linux-master/src/demofilepropdecode.h:89:12: warning: 
      enumeration value 'DPT_NUMSendPropTypes' not handled in switch [-Wswitch]
                switch ( m_type )
                         ^
1 warning generated.
[ 60%] Building CXX object CMakeFiles/demoinfogo.dir/src/demofilebitbuf.cpp.o
[ 66%] Building CXX object CMakeFiles/demoinfogo.dir/src/demofilepropdecode.cpp.o
In file included from /Applications/Broiler/demoinfogo-linux-master/src/demofilepropdecode.cpp:25:
In file included from /Applications/Broiler/demoinfogo-linux-master/src/demofiledump.h:30:
/Applications/Broiler/demoinfogo-linux-master/src/demofilepropdecode.h:89:12: warning: 
      enumeration value 'DPT_NUMSendPropTypes' not handled in switch [-Wswitch]
                switch ( m_type )
                         ^
1 warning generated.
[ 73%] Building CXX object CMakeFiles/demoinfogo.dir/netmessages.pb.cc.o
[ 80%] Building CXX object CMakeFiles/demoinfogo.dir/steammessages.pb.cc.o
[ 86%] Building CXX object CMakeFiles/demoinfogo.dir/cstrike15_gcmessages.pb.cc.o
[ 93%] Building CXX object CMakeFiles/demoinfogo.dir/cstrike15_usermessages.pb.cc.o
[100%] Linking CXX executable demoinfogo
[100%] Built target demoinfogo
bugdone commented 8 years ago

Did you build it for 32bit?

edfarrow commented 8 years ago

OSX clang builds for x86_64. Trying to compile for 32bit throws hideous errors because the underlying libraries are compiled for x86_64.

bugdone commented 8 years ago

Some forks seem to be owned by mac users (eg) The readme from the original repo says it only works on 32 bit. I'm don't know if this has anything to do with macs. Maybe you could ask some of them for help. I assume that if you can get one of their forks to work, you could figure out what's the issue.

edfarrow commented 8 years ago

Update. Tried compiling https://github.com/csgo-data/demoinfogo-linux, which compiles and works fine with demos. headshotbox then throws this error:

2016-Mar-22 20:22:12 +0000 <removed> ERROR [hsbox.indexer] - 
           hsbox.core.main                  
                       ...                  
          hsbox.core/-main     core.clj:  69
         hsbox.indexer/run  indexer.clj:  94
    hsbox.indexer/add-demo  indexer.clj:  54
  hsbox.demo/get-demo-info     demo.clj: 283
                       ...                  
clojure.data.json/read-str     json.clj: 278
        clojure.core/apply     core.clj: 626
                       ...                  
    clojure.data.json/read     json.clj: 272
   clojure.data.json/-read     json.clj: 182
java.io.EOFException: JSON error (end-of-file)
bugdone commented 8 years ago

HeadshotBox works only with my fork since I implemented a custom output format (-hsbox flag).

I assume it worked since you compiled it for 32bit (the Makefile uses -m32). Try compiling and linking my fork with -m32.

edfarrow commented 8 years ago

Sorry, basic question! How do I do that with cmake?

edfarrow commented 8 years ago

Never mind. I get this error when using CFLAGS=-m32:

cmake ..
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- broken
CMake Error at /usr/local/Cellar/cmake/3.5.0/share/cmake/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "/Library/Developer/CommandLineTools/usr/bin/c++" is not
  able to compile a simple test program.

  It fails with the following output:

   Change Dir: <removed>/demoinfogo-linux-master/build/CMakeFiles/CMakeTmp

  Run Build Command:"/usr/bin/make" "cmTC_9d4e3/fast"

  /Library/Developer/CommandLineTools/usr/bin/make -f
  CMakeFiles/cmTC_9d4e3.dir/build.make CMakeFiles/cmTC_9d4e3.dir/build

  Building CXX object CMakeFiles/cmTC_9d4e3.dir/testCXXCompiler.cxx.o

  /Library/Developer/CommandLineTools/usr/bin/c++ -o
  CMakeFiles/cmTC_9d4e3.dir/testCXXCompiler.cxx.o -c
  <removed>/demoinfogo-linux-master/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

  Linking CXX executable cmTC_9d4e3

  /usr/local/Cellar/cmake/3.5.0/bin/cmake -E cmake_link_script
  CMakeFiles/cmTC_9d4e3.dir/link.txt --verbose=1

  /Library/Developer/CommandLineTools/usr/bin/c++ -Wl,-search_paths_first
  -Wl,-headerpad_max_install_names -m32 -pthread -lc++
  CMakeFiles/cmTC_9d4e3.dir/testCXXCompiler.cxx.o -o cmTC_9d4e3

  clang: warning: argument unused during compilation: '-pthread'

  ld: warning: ignoring file CMakeFiles/cmTC_9d4e3.dir/testCXXCompiler.cxx.o,
  file was built for x86_64 which is not the architecture being linked
  (i386): CMakeFiles/cmTC_9d4e3.dir/testCXXCompiler.cxx.o

  Undefined symbols for architecture i386:

    "_main", referenced from:
       implicit entry/start for main executable

  ld: symbol(s) not found for architecture i386

  clang: error: linker command failed with exit code 1 (use -v to see
  invocation)

  make[1]: *** [cmTC_9d4e3] Error 1

  make: *** [cmTC_9d4e3/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt

-- Configuring incomplete, errors occurred!
edfarrow commented 8 years ago

adding CXXFLAGS=-m32 fixes the config error, but now I'm getting:

ld: symbol(s) not found for architecture i386

Looks like it's an issue with protobuf needing to be recompiled for i386.

bugdone commented 8 years ago

Yes, you need all libraries that are linked against to be compiled on 32bit: protobuf and json-spirit. Also it looks like you need to pass LDFLAGS=-m32 for linker flags.

edfarrow commented 8 years ago

I've compiled protobuf and json-spirit for 32bit - how do I include their folders in the cmakefile?

bugdone commented 8 years ago

Once you run cmake successfully, you can list all the variables saved in the cmake cache file.

$ cmake -LA | grep -E "JSON|PROTOBUF"
JSON_SPIRIT_INCLUDE_DIR:PATH=/usr/include
JSON_SPIRIT_LIBRARY:FILEPATH=/usr/lib/libjson_spirit.a
PROTOBUF_INCLUDE_DIR:PATH=/usr/include
PROTOBUF_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libprotobuf.so
PROTOBUF_LIBRARY_DEBUG:FILEPATH=/usr/lib/x86_64-linux-gnu/libprotobuf.so
PROTOBUF_LITE_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libprotobuf-lite.so
PROTOBUF_LITE_LIBRARY_DEBUG:FILEPATH=/usr/lib/x86_64-linux-gnu/libprotobuf-lite.so
PROTOBUF_PROTOC_EXECUTABLE:FILEPATH=/usr/bin/protoc
PROTOBUF_PROTOC_LIBRARY:FILEPATH=PROTOBUF_PROTOC_LIBRARY-NOTFOUND
PROTOBUF_PROTOC_LIBRARY_DEBUG:FILEPATH=PROTOBUF_PROTOC_LIBRARY_DEBUG-NOTFOUND

These variables point to the paths where the headers and libraries were found. To override any of them, pass -D<var_name>=<value> to cmake. Eg. cmake -DJSON_SPIRIT_LIBRARY=/path/to/32bit/libjson_spirit.a ..

edfarrow commented 8 years ago

Sorry, getting a similar error to above, which shouldn't be occurring. I've compiled Json-Spirit for i386, and included it like above. However, I'm getting this:

''' Undefined symbols for architecture i386: "json_spirit::write(json_spirit::Value_impl<json_spirit::Config_map<std::1::basic_string<wchar_t, std::1::char_traits, std::__1::allocator > > > const&, std::1::basic_ostream<wchar_t, std::1::char_traits >&, unsigned int)", referenced from: CDemoFileDump::DoDump() in demofiledump.cpp.o ld: symbol(s) not found for architecture i386 '''

bugdone commented 8 years ago

You can check that the libjson_spirit.a is 32bit by running objdump -f /path/to/libjson_spirit.a

If you compiled it for 32bit and are using it when linking then I can't really help you from here. A quick search got me to this (aka Welcome to C++ hell and good luck)