mos9527 / sssekai_blender_io

Project SEKAI Blender Asset Importer / PJSK 资源导入插件
https://github.com/mos9527/sssekai
MIT License
9 stars 0 forks source link

Blender crash when selecting directory #7

Closed Rypie109 closed 1 hour ago

Rypie109 commented 2 hours ago

I dont have alot of files for the directory I am loading. It just crashes my Blender (Version 4.1.1)

mos9527 commented 2 hours ago

Can you launch Blender with blender_debug_log.cmd (if you're on Windows), reproduce the crash and attach the log files (blender_debug_output.txt) here?

Rypie109 commented 2 hours ago

Ok! I am assuming the .cmd you are referring to is in the root blender folder?

Rypie109 commented 2 hours ago

Oh it is. Ill do that now.

Rypie109 commented 2 hours ago

blender_debug_output.txt blender_system_info.txt

Rypie109 commented 2 hours ago

It has only been happening when I have this addon enabled. Maybe its interfering with a separate addon?

Rypie109 commented 2 hours ago

I think I MIGHT know whats going on. Blender has python 311 but the python I have on PATH is 312. I installed the dependencies on 312 through cmd, aswell as installing dependencies on blenders python 311.

mos9527 commented 2 hours ago

It has only been happening when I have this addon enabled. Maybe its interfering with a separate addon?

This might be UnityPy's fault as the error seems to originate from native code.

The plugin (sssekai-blender-io) by itself does not interface (therefore interfere) with other addons.

I think I MIGHT know whats going on. Blender has python 311 but the python I have on PATH is 312. I installed the dependencies on 312 through cmd, aswell as installing dependencies on blenders python 311.

This is unlikely considering how the console log do suggest that the dependencies are correctly installed.


So A - you might want to update sssekai (as per README) if you haven't done it already

And B - from the log I've noticed you've been trying to load the entire live_pv\model\characterv2\ folder - this would be a lot of files. And since most of these contain compressed meshes/textures, it will take quite a lot of memory.

I'm suspecting OOM but the log doesn't really tell me that. So for now maybe you could load the subfolders within characterv2 instead to see if this is still reproducable.

Or, as a quite nasty last resort - increase your page file size so the data can still be loaded.

Rypie109 commented 2 hours ago

I dont have the whole entire characterv2 folder being loaded. Only 2 or 3 characters I extracted using a private WIP tool by the devs of sekai viewer.

Rypie109 commented 2 hours ago

I am mainly trying to get the characters to play show 3d mv animations, because I do not know how to open the .anim files I extracted into blender. I have been extracted full rigged and textures characters, but it would be easier if I managed to figure out how to get this plugin to work.

Rypie109 commented 2 hours ago

Or, as a quite nasty last resort - increase your page file size so the data can still be loaded.

How would I do this?

Rypie109 commented 2 hours ago

I think I just got it working by using 4.2.2 lts.

mos9527 commented 2 hours ago

Or, as a quite nasty last resort - increase your page file size so the data can still be loaded.

How would I do this?

Here's a quick guide.

I think I just got it working by using 4.2.2 lts.

With a fresh install of the plugin and its dependencies as well? Still I'm leaning towards the mismatching dependency versions as of now - I'll test w/ 4.1 ASAP.

I am mainly trying to get the characters to play show 3d mv animations, because I do not know how to open the .anim files I extracted into blender. I have been extracted full rigged and textures characters, but it would be easier if I managed to figure out how to get this plugin to work.

And btw we had a thread in UnityPy discord about sekai 3D assets, too. You may want to check this out 😉

Rypie109 commented 1 hour ago

Fresh install of dependencies and plugin correct.

Rypie109 commented 1 hour ago

Ill be sure to check that thread out!