getnamo / ZipUtility-Unreal

Event driven 7zip utility plugin for the Unreal Engine.
Other
205 stars 48 forks source link

Editor crash (when called within widget) #38

Closed rasapoisgone54 closed 3 years ago

rasapoisgone54 commented 3 years ago

i have unzip in a widget and when its called the editor crashes and this is in the log Screenshot_97

getnamo commented 3 years ago

see potentially related: https://github.com/getnamo/ZipUtility-ue4/issues/37

rasapoisgone54 commented 3 years ago

see potentially related: #37

But i have the interface set, the same as #37

getnamo commented 3 years ago

Need more steps to reproduce, what are you calling? how? platform, version etc etc

rasapoisgone54 commented 3 years ago

d more steps to reproduce, what are you calling? how? platform, version etc etc

I'm calling it in a widget, platform windows, version 4.26,

This one is in the widget: Screenshot_98

And this one are the interfaces of the player: Screenshot_99

rasapoisgone54 commented 3 years ago

Please someone respond :(

getnamo commented 3 years ago

Try again with passing self and implementing interface in calling actor

rasapoisgone54 commented 3 years ago

So i've tried that right now but it just crashed again with the same error

Try again with passing self and implementing interface in calling actor

getnamo commented 3 years ago

Try a different file e.g. regular zip at a know location, also try without any param reference in interface slot of the function call. Lambda / bg thread call error suggests content issue

rasapoisgone54 commented 3 years ago

Nope crashed with the same error

Try a different file e.g. regular zip at a know location, also try without any param reference in interface slot of the function call. Lambda / bg thread call error suggests content issue

getnamo commented 3 years ago

Keep in mind archive path should be absolute and you may need to convert it

rasapoisgone54 commented 3 years ago

Keep in mind archive path should be absolute and you may need to convert it

what do you mean by convert it?

getnamo commented 3 years ago

If you're passing a relative path (e.g. with ../ ) you will need to collapse it into an absolute path starting with e.g. C:/ etc

rasapoisgone54 commented 3 years ago

If you're passing a relative path (e.g. with ../ ) you will need to collapse it into an absolute path starting with e.g. C:/ etc

well that's what i've done! Screenshot_104

rasapoisgone54 commented 3 years ago

Isn't it bcuz im calling in a widget?

getnamo commented 3 years ago

Your return value is it null or does it give you an object?

getnamo commented 3 years ago

Shouldn't be, but you can try outside the widget inside e.g. an actor

rasapoisgone54 commented 3 years ago

Your return value is it null or does it give you an object?

Can't know that bcuz the editor just instantly crashes

rasapoisgone54 commented 3 years ago

Shouldn't be, but you can try outside the widget inside e.g. an actor

Using it all the time outside of widget

getnamo commented 3 years ago

It works outside widget?

rasapoisgone54 commented 3 years ago

Yes

getnamo commented 3 years ago

Then use it outside of a widget and forward the result to your widget. Unsure why this happens, maybe it's missing a world context to callbacks

rasapoisgone54 commented 3 years ago

Like i tried to do function in the character and call the function in the widget but it was the same result

getnamo commented 3 years ago

Just tested a user widget with an interface, seems to work: image

image

Something else is going on; what are you doing differently vs when it does work for you?

rasapoisgone54 commented 3 years ago

Nothing, just one is called in a map and the other one is called in a widget otherwise it's the same

rasapoisgone54 commented 3 years ago

For some weird reason it started to work! I probably guess that converting .rar to .zip wasn't a good idea.