Giter VIP home page Giter VIP logo

Comments (13)

official-minister avatar official-minister commented on May 14, 2024

I think it's a compatibility problem. Old commit works well

from perfetto.

official-minister avatar official-minister commented on May 14, 2024

How to recurrent it:
use gapid(master branch newest code) and capture trace with systemprofile and config: vulkan track memory. The gapis will coredump becauseof this pro blem.
Use release gapid 1.7 it woks well because using old version

from perfetto.

primiano avatar primiano commented on May 14, 2024

@tilal6991 can you take a look?

@official-minister can you attach a trace file (instead of text dump)? It would help a lot.
We don't ahve a good way to go back from the text dump to the file to feed in trace processor

from perfetto.

official-minister avatar official-minister commented on May 14, 2024

Sorry I can't push trace file for some reason. I just can write trace txt here.
I described the situation how to recurrent it.

I avoid the proplem by doing this:
src\trace_processor\importers\proto\track_event_parser.cc
// Parse process and thread names from correspondingly named events.
NullTermStringView event_name = storage
->GetString(name_id_);
//PERFETTO_DCHECK(event_name.data());
if(!event_name.data()) {
return util::OkStatus();
}_

But I think it's not the root cause. I hope it will help you analysis the problem.

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 14, 2024

I took a look and I think returning ok when event_name is null is not the right solution.

@betasheet can you see anything wrong with the data in the trace? Seems from the code that name_id_ is being set to null id which should never happen.

from perfetto.

official-minister avatar official-minister commented on May 14, 2024

I took a look and I think returning ok when event_name is null is not the right solution.

@betasheet can you see anything wrong with the data in the trace? Seems from the code that name_id_ is being set to null id which should never happen.

I agree with your opinion. I'm confused why name_id_ is null.

from perfetto.

betasheet avatar betasheet commented on May 14, 2024

Maybe the trace doesn't set the SEQ_INCREMENTAL_STATE_CLEARED flag?

In terms of the crash - good question. Maybe the early out should also check for name being the empty string, in addition to kNullStringId?

from perfetto.

betasheet avatar betasheet commented on May 14, 2024

Talking about this early-out: https://source.chromium.org/chromium/chromium/src/+/master:third_party/perfetto/src/trace_processor/importers/proto/track_event_parser.cc;l=681?q=track_event_parser.cc:644

FWIW, the packet should really also be setting SEQ_NEEDS_INCREMENTAL_STATE as it is using incremental state. In that case, it would likely be discarded during tokenization.

How did you generate this trace?

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 14, 2024

Re the crash: the string is actually null not empty (this is why the crash happens) which means the early return is not being hit correctly (https://source.chromium.org/chromium/chromium/src/+/master:third_party/perfetto/src/trace_processor/importers/proto/track_event_parser.cc;l=680?q=track_event_parser.cc:644)

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 14, 2024

@official-minister it would be really helpful if you could share the trace so I could repro this behaviour. Seems a pretty bad bug going on.

The easiest way to share a trace if Github doesn't allow it to be uploaded is to use something like Google Drive/Dropbox and share the link ehre.

from perfetto.

official-minister avatar official-minister commented on May 14, 2024

Sorry I can't upload file because of net environment. I can tell you how I get it.
I use gaid(master branch) code: (1.7 release works no bug.)
https://github.com/google/gapid
and complie it follow this:
https://github.com/google/gapid/blob/master/BUILDING.md
and I start trace with vulkan memory track. It will generate it.

Maybe you can refer to : google/agi#334

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 14, 2024

I don't have the cycles to try and get AGI compiling on my Mac unfortunately (I did try but I ran into errors which I didn't look into further). If I manage to get a trace (either from yourself or the AGI folk), I'd be happy to look into this but otherwise, I am putting this on pause.

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 14, 2024

Closing this issue as it's essentially unactionable as is and there's been a lot of changes in AGI <-> Perfetto integration since this bug was opened.

from perfetto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.