-
Notifications
You must be signed in to change notification settings - Fork 196
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
Telemetry updates (GC_MOVING, finalizers -> mark/sweep, gcoverhead) #332
Conversation
Added gcoverhead and HX_TELEMETRY_VERSION=1
Hi. I have try it (windows 10, vs2015, without M64 flag) but got a crash in Debug.cpp line 2524 ( allocation_data->push_back(obj_id); may be de above line). It happens when loading game level. It is called from __hxt_new_hash (Debug.cpp) called from Hash.h line 251: if (is_new) __hxt_new_hash(bucket, inNewCount*sizeof(ELEMENT *)); In haxe, it is something like:
Maybe a buffer is full? Thanks. |
One more update I forgot -- the name parameter that Hugh implemented wasn't being passed from Object.h's new to telemetry allocation tracking. These were showing up as _non_class, and will now have names, e.g. Float. @madrazo - Hmm, I haven't seen this, I'll give it a try on Windows. The alocation_data access is protected by a mutex, so it shouldn't get in a bad state. As for a full buffer -- perhaps it could have run out of ram? |
Thanks for your reply. It does not crash if I do not open hxScout. It always crashes at nearly same location, at a "allocation_data->push_back" in Debug.cpp It also crashes without GC_MOVING which I think confirms that the issue is from threading. Thanks |
@madrazo thanks for the additional information. Did you tesd telemetry prior to this PR (on master branch)? I wonder if the bug is new for this PR. Thanks again! |
Sorry, with the haxelib's hxcpp version (without these) it also crashes. So its not a bug from this. Now the error also appeared at alloc_map[obj_id] = this; (Debug.cpp, line 2500) , obj_id is 834515052. I noticed that hxScout crashes sometimes before my application. Thanks |
I think that the issue has to do with that the xml files use elements with the same name. |
@madrazo / @hughsando - FYI, I filed #333 as a separate issue for the crash (since it existed before this PR.) We can continue the investigation there. |
Hey Jeff - do you want this one merged as-is? On Tue, Nov 17, 2015 at 7:53 AM, Jeff Ward notifications@github.com wrote:
|
@hughsando yes, please. We decided the above issue was pre-existing, and I'm still investigating. |
Telemetry updates (GC_MOVING, finalizers -> mark/sweep, gcoverhead)
A couple of updates to HXCPP_TELEMETRY:
@larsiusprime - you mentioned running your code through hxScout soon -- if you want to use this hxcpp branch (jcward/telemetry_update) that might be a nice smoke test. If not, no worries. :)