Animation gets broken (needs properer title).
Open, NormalPublic

Description

Ubuntu-Mate 14.04 x64, nVidia GT 620.

Working: bedc58^
Broken: bedc58

The animation gets broken. And sometimes, it makes a segment fault.

Run the game inside Blender or with BlenderPlayer (bedc58). The armature "arm_md" is a child of "md_obj". Both have animations (the camera armature originally has animation too, but it is not affecting the bug).

Now, activate layer 11 and run the game again. The "brokeness" is different and there's more possibility of a segment fault.

Details

Type
Bug
Mario Mey (mariomey) updated the task description. (Show Details)
Mario Mey (mariomey) raised the priority of this task from to Needs Triage.
Mario Mey (mariomey) set Type to Bug.

The steps how I found this bug.

Because of T43214, I had to compile OpenAL and Blender. So, I did

git checkout v2.76b

... to get the last release version. I found the broken animations in this version. But it was strange for me, because the release version downloadable from page isn't affected by this bug.

With help of @Mitchell Stokes (moguri), I compiled several versions to achieve the exact one where it is: bedc58ac4e5e86758fd94a7c4bac77003134e947.

This is a screencast of the bug with BlenderPlayer, with a complete version of the file uploaded here.

This bug is still in 2.77.

In your test file (Win10 x64, Blender 2.77a) the animation plays, if not slightly jerkily.

So, what is different between the BuildBot build and your custom build?

Thanks for testing it, @Angus Hollands (agoose77).

The bug is when using 2.77 downloaded from blender.org, not only in compiled version.

I made a new screencast using the file uploaded here, you can see it here: As you can see, it finishes with a segment fault.

Does your configuration (Win10) do the same?

Recently, I've created a VirtualBox with the same Ubuntu-Mate 14.04 x64 and copied some files. It's a almost clean installation... and it occurred to me to test this file with this installation. Beyond that the 3D acceleration is not good, I could open Blender and run the Game Engine: the animations runs correctly. So... it seems that the problem is in my system, but I don't know why.

This animation glitch (that sometimes it ends with a segment violation) appears in this commit: bedc58ac4e5e86758fd94a7c4bac77003134e947, and it is still there in last version.

What the problem could be? Maybe some packet installed in this system that affects the animation since this commit? What does this commit do with the whole system? I don't want to reinstall all my system to isolate this problem...

This comment was removed by Mario Mey (mariomey).

@Porteries Tristan (panzergame) hi, mate. What happened with this bug? I also found in last Blender version.

If I remember well, it was a multithread issue, isn't it?

Is it fixed in UPBGE? If so, could patch be applied to Blender?

Mario Mey (mariomey) added a comment.EditedJun 20 2017, 4:07 PM

Here is a clear example using blend file from this report, turning off and on one thread of my CPU, using:

echo 0 | sudo tee /sys/devices/system/cpu/cpu1/online
echo 1 | sudo tee /sys/devices/system/cpu/cpu1/online

(my Firefox doesn't show this video. Chromium does. I don't know why. It's x264 coded with ffmpeg)

@Porteries Tristan (panzergame) told me that this issue was fixed in UPBGE, in this commit: https://github.com/UPBGE/blender/commit/2b3405a360063e4b050105b3225e86313df693e8?diff=split

This commit includes more changes that only this bug... also, there are more files involved. Maybe someone has the know-how to get what is needed from that commit... and fix the bug in BGE. I don't own it :/.