Skip to content

Commit

Permalink
handle crash in updatetexture
Browse files Browse the repository at this point in the history
  • Loading branch information
Bvallon-sl committed Jan 27, 2025
1 parent 0a02a4b commit b2336d5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ void USlTexture::BP_UpdateTextureWithMat(const FSlMat& NewMat)

void USlTexture::UpdateTexture()
{
if (!Mat.Mat) return;

if (!bCudaInteropEnabled)
{
sl_mat_update_cpu_from_gpu(Mat.Mat);
Expand Down Expand Up @@ -177,6 +179,8 @@ void USlTexture::UpdateTexture()

void USlTexture::UpdateTexture(const FSlMat& NewMat)
{
if (!NewMat.Mat) return;

if (!bCudaInteropEnabled)
{
sl_mat_update_cpu_from_gpu(NewMat.Mat);
Expand Down Expand Up @@ -211,6 +215,8 @@ void USlTexture::UpdateTexture(const FSlMat& NewMat)

void USlTexture::UpdateTexture(void* NewMat)
{
if (!NewMat) return;

if (!bCudaInteropEnabled)
{
sl_mat_update_cpu_from_gpu(NewMat);
Expand Down

2 comments on commit b2336d5

@torstah
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bvallon-sl Sorry but still getting this:

LoginId:3da97e3542f935ca567a03b106e5440b EpicAccountId:be6f921b7aed4c6990f7d632a416ae1b Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000059 sl_zed64 UnrealEditor_Stereolabs!USlTexture::UpdateTexture() [C:\Users\Plan8-PC\Perforce\perforce_Plan8-PC-1_CF_2025_New\CF_2025\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTexture.cpp:218] UnrealEditor_Stereolabs!USlGPUTextureBatch::Tick'::14'::<lambda_2>::operator()() [C:\Users\Plan8-PC\Perforce\perforce_Plan8-PC-1_CF_2025_New\CF_2025\Plugins\Stereolabs\Source\Stereolabs\Private\Core\StereolabsTextureBatch.cpp:553] UnrealEditor_RenderCore UnrealEditor_RenderCore UnrealEditor_Core UnrealEditor_Core UnrealEditor_RenderCore UnrealEditor_RenderCore UnrealEditor_Core UnrealEditor_Core kernel32 ntdll

In my game i move the BP_Manny to new locations using set actor location, could that be the issue? But this happens very random.

@Bvallon-sl
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you are using the latest version?

I'm asking this because the crash happened l.218 according to your logs, which makes no sense with the latest commit.

Please sign in to comment.