Giter Site home page Giter Site logo

Comments (9)

sindney avatar sindney commented on May 16, 2024

可以看看adb的log: 'adb logcat -s Loli'
看看是不是socket断掉了?有socket相关的log

from loli_profiler.

lijunhuawhu avatar lijunhuawhu commented on May 16, 2024

adb logcat -s Loli和adb logcat -s xhook都过滤不到任何日志

from loli_profiler.

lijunhuawhu avatar lijunhuawhu commented on May 16, 2024

我在一个demo上launch是可以成功的,但是在我们公司的app上launch就一直Connection lost,提示“Kill your app or re-plug USB cable and try again.”,

from loli_profiler.

sindney avatar sindney commented on May 16, 2024

app有网络权限吧? 打开 adb logcat 然后执行数据采集,才能看到log的,如果这样仍然没有log
那失败也有可能是配置错误导致的,确认架构、需要侦听的库、以及pc环境是否有开android studio等工具(要关掉)

from loli_profiler.

lijunhuawhu avatar lijunhuawhu commented on May 16, 2024

谢谢,的确是配置的问题,现在可以正常使用了

from loli_profiler.

lijunhuawhu avatar lijunhuawhu commented on May 16, 2024

不过我现在只有使用白名单才能连上,使用黑名单还是连不上:
image

from loli_profiler.

lijunhuawhu avatar lijunhuawhu commented on May 16, 2024

使用blacklist时,连接不上,相关的日志如下:

image
image

from loli_profiler.

sindney avatar sindney commented on May 16, 2024

是这样子的,你当前设置的是gcc
gcc和clang的std库比如 std::string 的内存都是不一样的,因此如果调用链路里混用gcc与clang的stl库(loli内部实现有用到,以后也许会重构为不依赖stl的形式)
就会出现UB,就会崩,因为内存不一样,互相不认
因此当你选择gcc时,然后想用黑名单模式,需要把所有你的app会加载的clang编译的库都填进去
否则就会崩,排查起来也比较费体里,就是看崩在哪个库了,就把他加黑名单
建议刚开始还是用白名单模式

from loli_profiler.

sindney avatar sindney commented on May 16, 2024

暂时close掉了,有疑问再reopen

from loli_profiler.

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.