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

hash value in error log is not correct (release version) #8804

Open
d954mas opened this issue Apr 16, 2024 · 4 comments
Open

hash value in error log is not correct (release version) #8804

d954mas opened this issue Apr 16, 2024 · 4 comments
Labels
bug Something is not working as expected engine Issues related to the Defold engine

Comments

@d954mas
Copy link
Contributor

d954mas commented Apr 16, 2024

Describe the bug (REQUIRED)
I have error in poki console

DEFOLD:ERROR:GAMEOBJECT: Component ‘<unknown:4875305475194650161>#<unknown:4875305475194650161>’ could not be found when dispatching message ‘<unknown:4875305475194650161>’ sent from game_scene:<unknown:4875305475194650161>#<unknown:4875305475194650161>\n”

dmLogError("Component '%s#%s' could not be found when dispatching message '%s' sent from %s:%s#%s",

I can't understand it. It is strange that in log all hash values are the same.

I make repro case. In debug you will see this:

"ERROR:GAMEOBJECT: Component '/go#unknown_component' could not be found when dispatching message 'my message' sent from main:/go#init"

In release on web build(i add console.log with error in web build) you will see this:

Component '<unknown:7303218731325906595>#<unknown:7303218731325906595>' could not be found when dispatching message '<unknown:7303218731325906595>' sent from main:<unknown:7303218731325906595>#<unknown:7303218731325906595>
function init(self)
	msg.post("main:/go#unknown_component", "my message")
	local print_web = function(str)
		if html5 then html5.run("console.log(\"" ..str .. "\")") end
	end
	print_web(hash("main:"))
	print_web(hash("/go"))
	print(hash("unknown_component"))
	print_web(hash("my message"))
end
[17280348633309717095 (unknown)]
[2403139543084994936 (unknown)]
[7303218731325906595 (unknown)]

DEFOLD:ERROR:GAMEOBJECT: Component '<unknown:7303218731325906595>#<unknown:7303218731325906595>' could not be found when dispatching message '<unknown:7303218731325906595>' sent from main:<unknown:7303218731325906595>#<unknown:7303218731325906595>

To Reproduce (REQUIRED)
Steps to reproduce the behavior:

  1. Open reprocase
  2. Bundle web application in release mode
    3.In console you will see

Expected behavior (REQUIRED)
Every hash value will show correct different values

Defold version (REQUIRED):

  • Version 1.7.0

Platforms (REQUIRED):

  • Platforms:HTML5
    -Only in release build

Minimal repro case project (OPTIONAL):

hash_unknown.zip

@d954mas d954mas added the bug Something is not working as expected label Apr 16, 2024
@JCash
Copy link
Contributor

JCash commented Apr 16, 2024

I agree, that printout looks off.
I recently did a change to the output, ro make it thread safe, and must have messed something up somehow 🤔
I'll have a look tomorrow.

@JCash JCash added the engine Issues related to the Defold engine label Apr 16, 2024
@JCash
Copy link
Contributor

JCash commented Apr 19, 2024

Is this issue still happening?

When I debugged this project, I got:

<unknown:17280348633309717095>
<unknown:2403139543084994936>
<unknown:7303218731325906595>
DEFOLD:ERROR:GAMEOBJECT: Component '<unknown:2403139543084994936>#<unknown:11740452024393856384>' could not be found when dispatching message '<unknown:7303218731325906595>' sent from main:<unknown:2403139543084994936>#<unknown:1484653112899155046>

which are 3 separate values, as expected.

I tested with latest beta 1.8.0 76c4e52a5b468726004445354f97d060d015b873

@d954mas
Copy link
Contributor Author

d954mas commented Apr 19, 2024

I will test in beta later.
This happened for me in 1.7.0

@d954mas
Copy link
Contributor Author

d954mas commented Apr 19, 2024

DEFOLD:ERROR:GAMEOBJECT: Component 'unknown:2403139543084994936#unknown:11740452024393856384' could not be found when dispatching message 'unknown:7303218731325906595' sent from main:unknown:2403139543084994936#unknown:1484653112899155046

Worked correctly in 1.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected engine Issues related to the Defold engine
Projects
None yet
Development

No branches or pull requests

2 participants