Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

My callouts are frequently crashing over invalid Rage.Ped or invalid Rage.Blip

Featured Replies

[1/23/2016 11:57:08 PM.819] LSPD First Response: 
[1/23/2016 11:57:08 PM.819] LSPD First Response: ==============================
[1/23/2016 11:57:08 PM.819] LSPD First Response: UNHANDLED EXCEPTION DURING GAME THREAD TICK
[1/23/2016 11:57:08 PM.819] LSPD First Response: ------------------------------
[1/23/2016 11:57:08 PM.820] LSPD First Response: Origin: Game fiber "CalloutManager".
[1/23/2016 11:57:08 PM.820] LSPD First Response: ------------------------------
[1/23/2016 11:57:08 PM.820] LSPD First Response: Exception type: Rage.Exceptions.InvalidHandleableException
[1/23/2016 11:57:08 PM.820] LSPD First Response: Exception message: Operation is not valid because the specified  Rage.Blip is invalid.
[1/23/2016 11:57:08 PM.820] LSPD First Response: ------------------------------
[1/23/2016 11:57:08 PM.821] LSPD First Response: Inner exceptions:
[1/23/2016 11:57:08 PM.821] LSPD First Response: ------------------------------
[1/23/2016 11:57:08 PM.821] LSPD First Response: Stack trace:
[1/23/2016 11:57:08 PM.821] LSPD First Response: at Rage.Blip.Delete()

Almost always on the cleanup phase, but sometimes when they are first launched too. Any idea what typically causes this?

Do you check if the entity/blip exists? If not add checks:

                        if (myBlip.Exists())
                            myBlip.Delete();

                        if (myPed.Exists())
                            myPed.Dismiss(); //or Delete(), whatever you need

                        if (myVehicle.Exists())
                            myVehicle.Dismiss(); //or Delete(), whatever you need

 

Also if you have crashes on OnBeforeCalloutDisplayed() or OnCalloutAccepted() you should check if the entities were created correctly, if not abort the callout:

                        Ped myPed = new Ped(position); //create the ped
                        if (!myPed.Exists())  //check if the ped was correctly created and now exists
                            return false;  //if the ped doesn't exists, abort the callout

                    //continue preparing ped, myPed.BlockPermanentEvents, myPed.Inventory.GiveNewWeapon()...

Edited by alexguirre

  • Author

Thanks, I'm still fighting with it. I didn't change anything to the blips before this started occuring so I'm wondering if it's from messing with the game fibers as I don't fully understand them yet. My if exist lists seem to include all the applicable blips.

On a side note though, the suspect doesn't get a blip until the baseprocess. Is this an issue? It worked fine before, but I wonder if it could be causing the crashing now.

  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.