Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Sample project keep crashing in UE5 #19

Closed
jonbakerfish opened this issue Apr 24, 2022 · 3 comments
Closed

The Sample project keep crashing in UE5 #19

jonbakerfish opened this issue Apr 24, 2022 · 3 comments

Comments

@jonbakerfish
Copy link

Hi,
I downloaded your project, compiled it and tried to run it with UE5.
But when I hit play, and press C the whole UE5 crush with the following errors:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000009800000052

ucrtbase
ucrtbase
ucrtbase
UnrealEditor_Core
UnrealEditor_ImageWrapper
UnrealEditor_ImageWrapper
UnrealEditor_CameraCaptureToDisk!ACameraCaptureManager::Tick() [D:\code\UnrealImageCapture\CaptureToDisk\Plugins\CameraCaptureToDisk\Source\CameraCaptureToDisk\Private\CameraCaptureManager.cpp:72]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

Do you know why?

@TimmHess
Copy link
Owner

I assume this is the latest version of UE5? I only ever tested it in a preview version... Unfortunately, there is not much to the error message, so I will have to try it for myself :)

@TimmHess
Copy link
Owner

So, I started looking into the issue and the test project got quite messy over time.. sorry for that..
The main issue will be in the level blueprint where "CaptureFloatNonBlocking" is called, however, I am not sure what is up with float capture (depth) specifically. Quickfix is to not capture depth but change it to "CaptureNonBlocking" - this I tested and it works on my machine ;) Note though that you want to untick "UseFloat" in the "CameraCaptureManager_BP" and instead either tick "UsePNG" or tick nothing (which is JPEG).

On a second note, in UE5 the PNG imagewrapper by default adds a 0 alpha channel for .png files, which makes them appear entirely black in my file browser. If you load them with something like opencv you see that they do actually contain the correct pixel information. The quick-fix will be to manually set alpha to 255 - But I am undecied how I would want to include that.

I will try to find time soon to clean everything for UE5.

Hope this somewhat helps you. The good news is that the general pipeline of non-blocking image saving is not entirly deprecated in UE5 👍

@jonbakerfish
Copy link
Author

@TimmHess Thanks for your help! This repo is great for UE beginners to understand how to capture images.

4ndr3aR added a commit to 4ndr3aR/UnrealImageCapture that referenced this issue Jan 11, 2024
…look transparent to everything except OpenCV) mentioned in ISSUE TimmHess#19 (TimmHess#19 (comment))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants