Skip to content

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

Closed
@d954mas

Description

@d954mas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working as expectedengineIssues related to the Defold engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions