Little help needed pretty please - Package Crash - Assertion failed IPlatformFilePak.cpp

Hi all; I recently packaged my game again and now I get this error when I try to run it.

Error: Assertion failed: FirstByte >= 0 && LastByte < Pak.TotalSize && LastByte >= 0 && LastByte >= FirstByte [File:D:\Build++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\PakFile\Private\IPlatformFilePak.cpp] [Line: 1568]

I was wondering if anyone knows what this error means and how I can fix it. I’m including the logg file.

Any help is realy realy apreciated.

Lenny

CrashError.jpg

Log file open, 07/19/17 17:33:32
LogInit:Display: Running engine for game: KBFM
LogInit:Display: Project file not found: …/…/…/KBFM/KBFM.uproject
LogInit:Display: Attempting to find via project info helper.
LogUProjectInfo: Found projects:
LogPlatformFile: Not using cached read wrapper
LogInit:Display: RandInit(-656647827) SRandInit(-656647827).
LogTaskGraph: Started task graph with 5 named threads and 8 total threads with 1 sets of task threads.
LogStats: Stats thread started at 0.087409
LogInit: Using libcurl 7.47.1
LogInit: - built for i386-pc-win32
LogInit: - supports SSL with OpenSSL/1.0.2g
LogInit: - supports HTTP deflate (compression) using libz 1.2.8
LogInit: - other features:
LogInit: CURL_VERSION_SSL
LogInit: CURL_VERSION_LIBZ
LogInit: CURL_VERSION_IPV6
LogInit: CURL_VERSION_ASYNCHDNS
LogInit: CURL_VERSION_LARGEFILE
LogInit: CURL_VERSION_IDN
LogInit: CurlRequestOptions (configurable via config and command line):
LogInit: - bVerifyPeer = false - Libcurl will NOT verify peer certificate
LogInit: - bUseHttpProxy = false - Libcurl will NOT use HTTP proxy
LogInit: - bDontReuseConnections = false - Libcurl will reuse connections
LogInit: - CertBundlePath = nullptr - Libcurl will use whatever was configured at build time.
OCULUS: Info: [CAPI] LibOVR module is located at C:\Program Files\Oculus\Support\oculus-runtime\LibOVRRT32_1.dll
OCULUS: Debug: Connected to the server running version (prod = 1).1.16.0(build = 409268) feature version = 0. Client runs version (prod = 1).1.16.0(build = 409268) feature version = 0
LogHMD: GearVR: Emulating GearVR using Oculus Rift!
LogInit: Build: ++UE4+Release-4.16-CL-3514769
LogInit: Engine Version: 4.16.2-3514769+++UE4+Release-4.16
LogInit: Compatible Engine Version: 4.16.0-3452394+++UE4+Release-4.16
LogInit: Net CL: 3452394
LogDevObjectVersion: Number of dev versions registered: 16
LogDevObjectVersion: Dev-Blueprints (B0D832E4-1F89-4F0D-ACCF-7EB736FD4AA2): 9
LogDevObjectVersion: Dev-Build (E1C64328-A22C-4D53-A36C-8E866417BD8C): 0
LogDevObjectVersion: Dev-Core (375EC13C-06E4-48FB-B500-84F0262A717E): 2
LogDevObjectVersion: Dev-Editor (E4B068ED-F494-42E9-A231-DA0B2E46BB41): 17
LogDevObjectVersion: Dev-Framework (CFFC743F-43B0-4480-9391-14DF171D2073): 23
LogDevObjectVersion: Dev-Mobile (B02B49B5-BB20-44E9-A304-32B752E40360): 0
LogDevObjectVersion: Dev-Networking (A4E4105C-59A1-49B5-A7C5-40C4547EDFEE): 0
LogDevObjectVersion: Dev-Online (39C831C9-5AE6-47DC-9A44-9C173E1C8E7C): 0
LogDevObjectVersion: Dev-Physics (78F01B33-EBEA-4F98-B9B4-84EACCB95AA2): 0
LogDevObjectVersion: Dev-Platform (6631380F-2D4D-43E0-8009-CF276956A95A): 0
LogDevObjectVersion: Dev-Rendering (12F88B9F-8875-4AFC-A67C-D90C383ABD29): 15
LogDevObjectVersion: Dev-Sequencer (7B5AE74C-D270-4C10-A958-57980B212A5A): 4
LogDevObjectVersion: Dev-VR (D7296918-1DD6-4BDD-9DE2-64A83CC13884): 0
LogDevObjectVersion: Dev-LoadTimes (C2A15278-BFE7-4AFE-6C17-90FF531DF755): 1
LogDevObjectVersion: Private-Geometry (6EACA3D4-40EC-4CC1-B786-8BED09428FC5): 1
LogDevObjectVersion: Dev-AnimPhys (29E575DD-E0A3-4627-9D10-D276232CDCEA): 3
LogInit: Compiled (32-bit): Jun 29 2017 02:14:48
LogInit: Compiled with Visual C++: 19.00.24215.01
LogInit: Build Configuration: Development
LogInit: Branch Name: ++UE4+Release-4.16
LogInit: Command line:
LogInit: Base directory: C:/Users/S229_Lenny/Desktop/Packaged/WindowsNoEditor/KBFM/Binaries/Win32/
LogInit: Installed Engine Build: 0
LogInit: Presizing for max 2097152 objects, including 0 objects not considered by GC, pre-allocating 0 bytes for permanent pool.
LogStreaming:Display: Async Loading initialized: Event Driven Loader: true, Async Loading Thread: true
LogInit: Object subsystem initialized
[2017.07.20-00.33.33:318] 0]LogInit: Selected Device Profile: [WindowsNoEditor]
[2017.07.20-00.33.33:318] 0]LogInit: Applying CVar settings loaded from the selected device profile: [WindowsNoEditor]
[2017.07.20-00.33.33:328] 0]LogInit: Computer: S229WORKSTATION
[2017.07.20-00.33.33:328] 0]LogInit: User: S229Lenny
[2017.07.20-00.33.33:328] 0]LogInit: CPU Page size=4096, Cores=4
[2017.07.20-00.33.33:328] 0]LogInit: High frequency timer resolution =4.101565 MHz
[2017.07.20-00.33.33:329] 0]LogMemory: Memory total: Physical=4.0GB (0GB approx) Virtual=4.0GB
[2017.07.20-00.33.33:329] 0]LogMemory: Platform Memory Stats for WindowsNoEditor
[2017.07.20-00.33.33:329] 0]LogMemory: Process Physical Memory: 77.60 MB used, 77.60 MB peak
[2017.07.20-00.33.33:329] 0]LogMemory: Process Virtual Memory: 89.88 MB used, 89.88 MB peak
[2017.07.20-00.33.33:329] 0]LogMemory: Physical Memory: 1213.85 MB used, 2842.55 MB free, 4056.40 MB total
[2017.07.20-00.33.33:329] 0]LogMemory: Virtual Memory: 331.96 MB used, 2842.55 MB free, 4095.88 MB total
[2017.07.20-00.33.33:373] 0]LogInit: Using OS detected language (en-US).
[2017.07.20-00.33.33:373] 0]LogInit: Using OS detected locale (en-US).
[2017.07.20-00.33.33:373] 0]LogTextLocalizationManager: No specific localization for ‘en-US’ exists, so the ‘en’ localization will be used.
[2017.07.20-00.33.33:436] 0]LogD3D11RHI: D3D11 adapters:
[2017.07.20-00.33.33:465] 0]LogD3D11RHI: 0. ‘NVIDIA GeForce GTX TITAN X’ (Feature Level 11_0)
[2017.07.20-00.33.33:465] 0]LogD3D11RHI: 3072/0/1023 MB DedicatedVideo/DedicatedSystem/SharedSystem, Outputs:2, VendorId:0x10de
[2017.07.20-00.33.33:466] 0]LogD3D11RHI: 1. ‘Microsoft Basic Render Driver’ (Feature Level 11_0)
[2017.07.20-00.33.33:466] 0]LogD3D11RHI: 0/0/4095 MB DedicatedVideo/DedicatedSystem/SharedSystem, Outputs:0, VendorId:0x1414
[2017.07.20-00.33.33:466] 0]LogD3D11RHI: Chosen D3D11 Adapter: 0
[2017.07.20-00.33.33:472] 0]LogD3D11RHI: Creating new Direct3DDevice
[2017.07.20-00.33.33:473] 0]LogD3D11RHI: GPU DeviceId: 0x17c2 (for the marketing name, search the web for “GPU Device Id”)
[2017.07.20-00.33.33:473] 0]LogWindows: EnumDisplayDevices:
[2017.07.20-00.33.33:473] 0]LogWindows: 0. ‘NVIDIA GeForce GTX TITAN X’ (P:1 D:1)
[2017.07.20-00.33.33:473] 0]LogWindows: 1. ‘NVIDIA GeForce GTX TITAN X’ (P:0 D:1)
[2017.07.20-00.33.33:473] 0]LogWindows: 2. ‘NVIDIA GeForce GTX TITAN X’ (P:0 D:0)
[2017.07.20-00.33.33:473] 0]LogWindows: 3. ‘NVIDIA GeForce GTX TITAN X’ (P:0 D:0)
[2017.07.20-00.33.33:473] 0]LogWindows: DebugString: FoundDriverCount:4
[2017.07.20-00.33.33:473] 0]LogD3D11RHI: Adapter Name: NVIDIA GeForce GTX TITAN X
[2017.07.20-00.33.33:473] 0]LogD3D11RHI: Driver Version: 382.05 (internal:22.21.13.8205, unified:382.05)
[2017.07.20-00.33.33:473] 0]LogD3D11RHI: Driver Date: 5-1-2017
[2017.07.20-00.33.33:473] 0]LogRHI: Texture pool is 716 MB (70% of 1024 MB)
[2017.07.20-00.33.33:494] 0]LogD3D11RHI: Async texture creation enabled
[2017.07.20-00.33.33:522] 0]LogD3D11RHI: GPU Timing Frequency: 1000.000000 (Debug: 2 1)
[2017.07.20-00.33.33:572] 0]LogMaterial: Verifying Global Shaders for PCD3D_SM5
[2017.07.20-00.33.33:572] 0]LogSlate: Using Freetype 2.6.0
[2017.07.20-00.33.33:572] 0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2017.07.20-00.33.33:572] 0]LogSlate: SlateFontCache - WITH_FREETYPE: 1, WITH_HARFBUZZ: 1
[2017.07.20-00.33.33:619] 0]LogAssetRegistry: FAssetRegistry took 0.0155 seconds to start up
[2017.07.20-00.33.33:687] 0]LogPackageLocalizationCache: Processed 4 localized package path(s) for 2 prioritized culture(s) in 0.002625 seconds
[2017.07.20-00.33.33:687] 0]LogPakFile: New pak file …/…/…/KBFM/Content/Paks/KBFM-WindowsNoEditor.pak added to pak precacher.
[2017.07.20-00.33.33:687] 0]LogInit: Selected Device Profile: [WindowsNoEditor]
[2017.07.20-00.33.33:694] 0]LogContentStreaming: Texture pool size is 1000.00 MB
[2017.07.20-00.33.33:731] 0]LogNetVersion: KBFM , NetCL: 3452394, EngineNetVer: 2, GameNetVer: 0 (Checksum: 4184579143)
[2017.07.20-00.33.33:759] 0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
[2017.07.20-00.33.33:777] 0]LogMoviePlayer: Initializing movie player
[2017.07.20-00.33.33:872] 0]LogAndroidPermission: UAndroidPermissionCallbackProxy::GetInstance
[2017.07.20-00.33.33:879] 0]LogUObjectArray: 29902 objects as part of root set at end of initial load.
[2017.07.20-00.33.33:879] 0]LogUObjectAllocator: 4232676 out of 0 bytes used by permanent object pool.
[2017.07.20-00.33.33:879] 0]LogUObjectArray: CloseDisregardForGC: 0/0 objects in disregard for GC pool
[2017.07.20-00.33.33:900] 0]LogEngine: Initializing Engine…
[2017.07.20-00.33.33:938] 0]LogHMD: SteamVR initialized. Driver: lighthouse Display: LHR-D5E45164
[2017.07.20-00.33.34:009] 0]LogStreaming:Error: Couldn’t find file for package /Script/Engine requested by async loading code. NameToLoad: /Script/Engine
[2017.07.20-00.33.34:009] 0]LogStats: UGameplayTagsManager::ConstructGameplayTagTree: Construct from data asset - 0.000 s
[2017.07.20-00.33.34:009] 0]LogStats: UGameplayTagsManager::ConstructGameplayTagTree: GameplayTagTreeChangedEvent.Broadcast - 0.000 s
[2017.07.20-00.33.34:044] 0]LogInit: XAudio2 using ‘Focusrite USB (Focusrite USB Audio)’ : 2 channels at 48 kHz using 16 bits per sample (channel mask 0x3)
[2017.07.20-00.33.34:050] 0]LogInit: FAudioDevice initialized.
[2017.07.20-00.33.34:060] 0]LogInit: Texture streaming: Enabled
[2017.07.20-00.33.34:061] 0]LogConsoleManager:Warning: Setting the console variable ‘r.VSync’ with ‘SetByGameSetting’ was ignored as it is lower priority than the previous ‘SetByCode’. Value remains ‘0’
[2017.07.20-00.33.34:064] 0]LogInit:Display: Game Engine Initialized.
[2017.07.20-00.33.34:065] 0]LogInit:Display: Starting Game.
[2017.07.20-00.33.34:065] 0]LogNet: Browse: /Game/Levels/Persistent/Level_Persistent?Name=Player
[2017.07.20-00.33.34:070] 0]LogLoad: LoadMap: /Game/Levels/Persistent/Level_Persistent?Name=Player
[2017.07.20-00.33.34:079] 0]LogMemory: Platform Memory Stats for WindowsNoEditor
[2017.07.20-00.33.34:079] 0]LogMemory: Process Physical Memory: 190.30 MB used, 231.96 MB peak
[2017.07.20-00.33.34:079] 0]LogMemory: Process Virtual Memory: 193.45 MB used, 238.44 MB peak
[2017.07.20-00.33.34:079] 0]LogMemory: Physical Memory: 1399.12 MB used, 2657.29 MB free, 4056.40 MB total
[2017.07.20-00.33.34:079] 0]LogMemory: Virtual Memory: 571.78 MB used, 2657.29 MB free, 4095.88 MB total
[2017.07.20-00.33.34:079] 0]LogMemory:
[2017.07.20-00.33.34:079] 0]Allocator Stats for binned2: (not implemented)
[2017.07.20-00.33.34:152] 0]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2017.07.20-00.34.03:983] 0]LogWindows:Warning: CreateProc failed (2) …/…/…/Engine/Binaries/Win32/CrashReportClient.exe “C:/Users/S229_Lenny/Desktop/Packaged/WindowsNoEditor/KBFM/Saved/Crashes/UE4CC-Windows-8A9BB4A54AE3DCD468361BA2F97A2B95_0000” -AppName=UE4-KBFM -CrashGUID=UE4CC-Windows-8A9BB4A54AE3DCD468361BA2F97A2B95_0000 -DebugSymbols=…\Engine\Intermediate\Symbols
[2017.07.20-00.34.03:983] 0]LogWindows: Could not start CrashReportClient.exe
[2017.07.20-00.34.03:983] 0]LogMemory: Platform Memory Stats for WindowsNoEditor
[2017.07.20-00.34.03:983] 0]LogMemory: Process Physical Memory: 216.25 MB used, 231.96 MB peak
[2017.07.20-00.34.03:983] 0]LogMemory: Process Virtual Memory: 218.91 MB used, 238.44 MB peak
[2017.07.20-00.34.03:983] 0]LogMemory: Physical Memory: 1394.84 MB used, 2661.57 MB free, 4056.40 MB total
[2017.07.20-00.34.03:983] 0]LogMemory: Virtual Memory: 600.91 MB used, 2661.57 MB free, 4095.88 MB total
[2017.07.20-00.34.03:983] 0]LogThreadingWindows:Error: Runnable thread FAsyncLoadingThread crashed.
[2017.07.20-00.34.03:983] 0]LogWindows:Error: === Critical error: ===
[2017.07.20-00.34.03:983] 0]LogWindows:Error:
[2017.07.20-00.34.03:983] 0]LogWindows:Error: Assertion failed: FirstByte >= 0 && LastByte < Pak.TotalSize && LastByte >= 0 && LastByte >= FirstByte [File:D:\Build++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\PakFile\Private\IPlatformFilePak.cpp] [Line: 1568]
[2017.07.20-00.34.03:983] 0]LogWindows:Error:
[2017.07.20-00.34.03:983] 0]LogWindows:Error:
[2017.07.20-00.34.03:983] 0]LogWindows:Error:
[2017.07.20-00.34.03:983] 0]LogWindows:Error: 0x0000000076A1B802
[2017.07.20-00.34.03:983] 0]LogWindows:Error: 0x0000000000F0DAAB
[2017.07.20-00.34.03:983] 0]LogWindows:Error: 0x0000000000F0DAAB
[2017.07.20-00.34.03:983] 0]LogWindows:Error:
[2017.07.20-00.34.03:984] 0]LogWindows:Error: Crash in runnable thread FAsyncLoadingThread
[2017.07.20-00.34.04:000] 0]LogExit: Executing StaticShutdownAfterError
[2017.07.20-00.34.04:000] 0]LogWindows: FPlatformMisc::RequestExit(1)
[2017.07.20-00.34.04:000] 0]Log file closed, 07/19/17 17:34:04

1 Like

hi,I got the same problem! And there are no solutions on ue4 web·······It is really bad.

We got things up and running

First we took the main game level wich only consists of a couple actors, a few dozen meshes and a postprocess volume then he rebuilt it by creating an empty level and drag dropping everything back in.

More importantly we went to Project Settings > Packaging > List of Maps to Include in a package build > + And added all our levels that where in our persistent level. Basically all the levels for the whole game.

Not only did this reduce the packaged build size by about 1 gigabyte but also the error and crash are now gone

Might work for you and others. Hopefully

1 Like