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

Recent crashes #4

Open
Dimentio opened this issue Feb 16, 2020 · 7 comments
Open

Recent crashes #4

Dimentio opened this issue Feb 16, 2020 · 7 comments

Comments

@Dimentio
Copy link

-Lua Stack Traces-

Client
0. GetBonePosition - [C]:-1

  1. Think - addons/gmod-enhanced-camera/lua/autorun/client/enhanced_camera.lua:452
  2. fn - addons/gmod-enhanced-camera/lua/autorun/client/enhanced_camera.lua:458
  3. (null) - addons/ulib-master/lua/ulib/shared/hook.lua:109

Server
Lua Interface = NULL

MenuSystem
Not in Lua call OR Lua has panicked

@VickyFrenzy
Copy link

This Lua error is explained in #1.

You can see my pull request #3 that should fix this Lua error.

Feel free to use my fork in the meantime.

@Dimentio
Copy link
Author

Dimentio commented Feb 16, 2020

I realize that my lines above are not the same as this github's but it's
self.neckOffset = self.skelEntity:GetBonePosition(self.skelEntity:LookupBone("ValveBiped.Bip01_Neck1"))

In my own version I check if the neck bone was found and if so this part run as shown here,

local bone = self.skelEntity:LookupBone("ValveBiped.Bip01_Neck1") if bone then self.neckOffset = self.skelEntity:GetBonePosition(bone) end
apparently something goes wrong and it cause a lua panic as shown from the crashlog. I believe your lua error is not exactly related to this crash but I could be wrong. As the bone is found and yet it lua panic (crash to desktop)

@VickyFrenzy
Copy link

VickyFrenzy commented Feb 16, 2020

Does it crash with the original code or my fork?

When does it crash?
Which playermodel?
Which gamemode?
Which gmod branch/version?
Which OS?

The only instance where I think this would crash is when a playermodel doesn't have any bones.
But with the check you've made I'm not sure why it would proceed to call GetBonePosition().

Also please at least provide all your modified code or give the logs of the crash with the original code or my fork so I can be certain of the location of the issue.

Anyway what I mean is that I need to know more about the context of the crash because I don't know why this happens to you and I never got any crash with the original code nor my own fix for Lua errors.

Lua panic is something I rarely get so I forgot that was a thing.

@Dimentio
Copy link
Author

My players seems to crash on joining after they start spectating someone, I believe it happen with any model but can't be sure I only have the crash log I posted above. My gamemode is murder. I unfortunately don't have information for the last two questions. I never experienced the crash myself but noticed a few of my players would crash on join and that's where I got this log from. I've removed the script since but i'll try to take a look into it when I have time.

@VickyFrenzy
Copy link

Ok I've tried with my fork on Murder (latest version).
With someone joining when the game is started so they are instantly spectating.
I have not experienced any issues, errors nor crash.
So I cannot reproduce this crash. But you did said that you wasn't able to get the crash either.

@Dimentio
Copy link
Author

Latest gmod update mention this line:

Better error handling for Entity.SetBonePosition, Entity.GetBonePosition, Entity.SetBoneMatrix, Entity.GetBoneMatrix

Might be a fix to this.

@Dimentio
Copy link
Author

As of latest gmod update, this happened again. I feel like it's the code running too soon.

-Lua Stack Traces-
Client
0. GetBonePosition - [C]:-1
1. Think - addons/gmod-enhanced-camera/lua/autorun/client/enhanced_camera.lua:460
2. fn - addons/gmod-enhanced-camera/lua/autorun/client/enhanced_camera.lua:465
3. (null) - addons/ulib-master/lua/ulib/shared/hook.lua:109

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