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

Game crashes with error #18

Open
sairam4123 opened this issue Dec 28, 2020 · 17 comments
Open

Game crashes with error #18

sairam4123 opened this issue Dec 28, 2020 · 17 comments

Comments

@sairam4123
Copy link
Contributor

sairam4123 commented Dec 28, 2020

Game crashes with this error.

Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[0] <couldn't map PC to fn name>
[1] <couldn't map PC to fn name>
[2] DiscordVersion
[3] DiscordVersion
[4] DiscordVersion
[5] DiscordVersion
[6] <couldn't map PC to fn name>
[7] <couldn't map PC to fn name>
[8] <couldn't map PC to fn name>
[9] <couldn't map PC to fn name>
[10] <couldn't map PC to fn name>
[11] <couldn't map PC to fn name>
[12] <couldn't map PC to fn name>
[13] <couldn't map PC to fn name>
[14] <couldn't map PC to fn name>
[15] <couldn't map PC to fn name>
[16] <couldn't map PC to fn name>
[17] <couldn't map PC to fn name>
[18] <couldn't map PC to fn name>
[19] <couldn't map PC to fn name>
[20] <couldn't map PC to fn name>
[21] <couldn't map PC to fn name>
[22] BaseThreadInitThunk
-- END OF BACKTRACE --

Can you please help me out?

Edit: Only sometimes.

@sairam4123
Copy link
Contributor Author

I'm too sorry for opening up a lot of issues.

@Drachenfrucht1
Copy link
Owner

Do you have steps on how to reproduce this error? What code is execute right before the crash? The stacktrace is unfortunately not really revealing.

@sairam4123
Copy link
Contributor Author

I really don't know where the stack trace comes as well. It just occurs randomly.

@Drachenfrucht1
Copy link
Owner

I'm closing this issue because the problem seems to occur randomly. Feel free to open a new issue (or reopen this one) when you find reproduction steps.

@sairam4123
Copy link
Contributor Author

sairam4123 commented Jan 5, 2021

The crash is now often.

Reproduction Steps:

  1. Download the project and run it
  2. Press Create Server.
  3. Now ask your friend to join the server.
  4. And the game crashes.

The error I got:

CrashHandlerException: Program crashed                                                                                  
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues        
[0] <couldn't map PC to fn name>                                                                                        
[1] <couldn't map PC to fn name>                                                                                        
[2] <couldn't map PC to fn name>                                                                                        
[3] <couldn't map PC to fn name>                                                                                        
[4] <couldn't map PC to fn name>                                                                                        
[5] <couldn't map PC to fn name>                                                                                        
[6] <couldn't map PC to fn name>                                                                                        
[7] <couldn't map PC to fn name>                                                                                        
[8] DiscordVersion                                                                                                      
[9] DiscordVersion                                                                                                      
[10] DiscordVersion                                                                                                     
[11] DiscordVersion                                                                                                     
[12] <couldn't map PC to fn name>                                                                                       
[13] <couldn't map PC to fn name>                                                                                       
[14] <couldn't map PC to fn name>                                                                                       
[15] <couldn't map PC to fn name>                                                                                       
[16] <couldn't map PC to fn name>                                                                                       
[17] <couldn't map PC to fn name>                                                                                       
[18] <couldn't map PC to fn name>                                                                                       
[19] <couldn't map PC to fn name>                                                                                       
[20] <couldn't map PC to fn name>                                                                                      
[21] <couldn't map PC to fn name>                                                                                       
[22] <couldn't map PC to fn name>                                                                                       
[23] <couldn't map PC to fn name>                                                                                       
[24] <couldn't map PC to fn name>                                                                                       
[25] <couldn't map PC to fn name>                                                                                       
[26] <couldn't map PC to fn name>                                                                                       
[27] <couldn't map PC to fn name>                                                                                       
[28] <couldn't map PC to fn name>                                                                                       
[29] <couldn't map PC to fn name>                                                                                       
[30] <couldn't map PC to fn name>                                                                                       
[31] BaseThreadInitThunk                                                                                                
-- END OF BACKTRACE --                                                                                                   

Thank you very much for helping me.

Other members who tried it got the same error:

  1. @Naman-Biswajit
  2. @summertimejordi

Project to test:
DiscordMultiplayerGame.zip

@jordi-star
Copy link
Contributor

Have you tried it with target=debug? I don't think we can really solve the issue until we get a better crash report

@sairam4123
Copy link
Contributor Author

Well, I tried with the godot editor you gave in Discord.

@jordi-star
Copy link
Contributor

Are you sure? Because that error mainly displays <couldn't map PC to fn name> when there aren't any debug symbols in the binary.

@sairam4123
Copy link
Contributor Author

sairam4123 commented Jan 5, 2021

Ah, so can we try once again?

Just gimme the proper one. We'll retry once again.

Better if this issue is re-opened.

@Drachenfrucht1 Would you like this issue to be re-opened?

Edit: Thank you.

@Drachenfrucht1 Drachenfrucht1 reopened this Jan 5, 2021
@jordi-star
Copy link
Contributor

``

Ah, so can we try once again?

Just gimme the proper one. We'll retry once again.

Better if this issue is re-opened.

@Drachenfrucht1 Would you like this issue to be re-opened?

Edit: Thank you.

I'm not home to compile the engine again. The one I sent you should have debug symbols already. Are you sure you're using that version? The file names might end up being similar so they might be easily confused

@sairam4123
Copy link
Contributor Author

Well, I've found even more clues about this crash.

It all falls into the NetworkedGodotcordPeer

ERROR: NetworkedMultiplayerGodotcord::_setup_peer: Condition "result != discord::Result::Ok" is true. Returned: 0
At: modules\godotcord\godotcord_network_peer.cpp:176
Got this error in the second game instance when trying to connect to different account like PTB.

I got the following two errors in my main account's game instance.
ERROR: NetworkedMultiplayerGodotcord::NetworkedMultiplayerGodotcord: Condition "result != discord::Result::Ok" is true.
At: modules\godotcord\godotcord_network_peer.cpp:660
ERROR: NetworkedMultiplayerGodotcord::_store_connection_details: Condition "result != discord::Result::Ok" is true.
At: modules\godotcord\godotcord_network_peer.cpp:220

I hope this is bit helpful to investigate this issue.

@sairam4123
Copy link
Contributor Author

@jaynabonne Has gotten same issue, while testing my game.
DiscordMultiplayerGame.zip
This is my game. I'm trying to investigate with you, hopefully, we can find the root of the issue.

@sairam4123
Copy link
Contributor Author

sairam4123 commented Jan 6, 2021

What code is execute right before the crash?

@Drachenfrucht1 Godotcord.run_callbacks()

@sairam4123
Copy link
Contributor Author

Is this screenshot enough? I've provided the code 1 comment above, so I think you don't need the code that these errors ran.
image

@Drachenfrucht1
Copy link
Owner

It seems that the main cause for the error is in the NetworkedMultiplayerGodotcord constructor(the error on line 660). The call to the usermanager fails. All following errors are caused by missing values. I will have to further investigate why the usermanager returns an error.

@sairam4123
Copy link
Contributor Author

sairam4123 commented Jan 8, 2021

A crude fix to fix this issue, but still it's not worth to get 54 errors:

if !user_signal_called:
		if GodotcordUserManager.get_current_user():
			user_signal_called = true

This bit of code works but emits 40-60 errors.
As there's no signal to find when the OnCurrentUserUpdate get's emitted, I do it in process function.

image

Here's the small bit of error. I would be happy to see a fix for this.

@sairam4123
Copy link
Contributor Author

It seems that the main cause for the error is in the NetworkedMultiplayerGodotcord constructor(the error on line 660). The call to the usermanager fails. All following errors are caused by missing values. I will have to further investigate why the usermanager returns an error.

Have you found a fix by the way?

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

3 participants