Announcement

Collapse
No announcement yet.

Game does not recognize function? (Callstack error)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Game does not recognize function? (Callstack error)

    Hello Guys! I'm trying to call a function from Steam API, but i'm getting fatal error when doing it.

    Basically, i made this simple function from c++ that i'm calling from blueprint:

    //

    void UCountrifiedInventory::InitInventory(UInventory* Inventory, bool &bIsInventoryWorking)
    {
    if (!SteamAPI_Init())
    {
    UE_LOG(LogTemp, Warning, TEXT("Fatal Error - Steam must be running to play this game - SteamAPI_Init() failed."));
    bIsInventoryWorking = false;
    }
    else
    {
    UE_LOG(LogTemp, Warning, TEXT("SteamAPI_Init() Called with Success."));
    bIsInventoryWorking = SteamInventory()->GetAllItems(&Inventory->s_SteamInventoryRef);
    if (!bIsInventoryWorking)
    {
    UE_LOG(LogTemp, Warning, TEXT("Error - GetAllItems() failed, inventory probably unavailable."));
    }
    else
    {
    UE_LOG(LogTemp, Warning, TEXT("GetAllItems() Called with Success."));
    }
    }


    }

    //

    and with logs i know that SteamAPI_Init() is being called with success, but when SteamInventory()->GetAllItems() is called the game crashes.

    Here is the error that i get when the game crashes:

    //

    [2020.04.29-16.03.23:278][597]LogTemp: Warning: SteamAPI_Init() Called with Success.
    [2020.04.29-16.03.26:379][597]LogWindows: Warning: CreateProc failed: The system cannot find the file specified. (0x00000002)
    [2020.04.29-16.03.26:379][597]LogWindows: Warning: URL: ../../../Engine/Binaries/Win64/CrashReportClient.exe "D:/Program Files (x86)/Steam/steamapps/common/Countrified/Countrified/Saved/Crashes/UE4CC-Windows-1A5976964897918ED29E8C8FEB902B47_0000" -AppName=UE4-Countrified -CrashGUID=UE4CC-Windows-1A5976964897918ED29E8C8FEB902B47_0000 -DebugSymbols=..\..\..\Engine\Intermediate\Symbols
    [2020.04.29-16.03.26:379][597]LogWindows: Could not start CrashReportClient.exe
    [2020.04.29-16.03.26:379][597]LogMemory: Platform Memory Stats for WindowsNoEditor
    [2020.04.29-16.03.26:379][597]LogMemory: Process Physical Memory: 551.25 MB used, 625.15 MB peak
    [2020.04.29-16.03.26:379][597]LogMemory: Process Virtual Memory: 1056.98 MB used, 1056.98 MB peak
    [2020.04.29-16.03.26:379][597]LogMemory: Physical Memory: 5705.86 MB used, 2433.95 MB free, 8139.82 MB total
    [2020.04.29-16.03.26:379][597]LogMemory: Virtual Memory: 1606.40 MB used, 8387001.50 MB free, 8388608.00 MB total
    [2020.04.29-16.03.26:379][597]LogWindows: Error: === Critical error: ===
    [2020.04.29-16.03.26:379][597]LogWindows: Error:
    [2020.04.29-16.03.26:379][597]LogWindows: Error: Fatal error!
    [2020.04.29-16.03.26:379][597]LogWindows: Error:
    [2020.04.29-16.03.26:379][597]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x00000030
    [2020.04.29-16.03.26:379][597]LogWindows: Error:
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000007fecf9a6a0d steamclient64.dll!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000007fecf78a056 steamclient64.dll!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000007fecf34a9ac steamclient64.dll!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000007fecf3784ea steamclient64.dll!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x0000000140275b8b Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x0000000140277b73 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001407c65b2 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001409cef39 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001409f4d3a Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001409f74d2 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001409cf899 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001409f74d2 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001407c65b2 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001409f6ae1 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001424a745b Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000000014247d2b3 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000000014248576a Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000000014338684b Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x00000001429fcad1 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x000000014334990e Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:379][597]LogWindows: Error: [Callstack] 0x0000000143258f44 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x00000001431f66ae Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x00000001432900eb Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x00000001429ae4b7 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x000000013fc39a42 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x000000013fc47a40 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x000000013fc47aca Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x000000013fc56ac1 Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x00000001440f02be Countrified.exe!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x00000000776e556d kernel32.dll!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error: [Callstack] 0x000000007784372d ntdll.dll!UnknownFunction []
    [2020.04.29-16.03.26:380][597]LogWindows: Error:
    [2020.04.29-16.03.26:404][597]LogExit: Executing StaticShutdownAfterError
    [2020.04.29-16.03.26:432][597]LogWindows: FPlatformMisc::RequestExit(1)
    [2020.04.29-16.03.26:433][597]Log file closed, 04/29/20 13:03:26

    //

    Do someone know what is happening?
    Last edited by RockyDias; 04-29-2020, 01:19 PM.

    #2
    For anyone that could have this same issue someday.

    After searching a lot i discovered that probably is a pointer error. I am not sure if that is my case, but seems like it is. Check this post:
    https://forums.unrealengine.com/deve...rning-question

    Comment

    Working...
    X