Coder Social home page Coder Social logo

dd-l / lproxy-local-android Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5.37 MB

lproxy-local-android 目前是试验性质的项目,仅支持部分 Android 机型

License: MIT License

QMake 6.04% CSS 2.10% HTML 11.06% JavaScript 31.45% C++ 46.93% QML 2.42%

lproxy-local-android's People

Watchers

 avatar  avatar

lproxy-local-android's Issues

ASSERT: "object" in file signalhandler_p.h, line 253

相关链接:

  1. https://bugreports.qt.io/browse/QTBUG-51366
  2. https://bugreports.qt.io/browse/QTBUG-47678
  3. https://github.com/yuri-sevatz/qtwebchannel/commit/b732f71d843803459582052501418e0561fd6b61

好像是在说 “QWebChannel cannot emit signals from SIGNALS in different Thread”

local/log.cpp:

sdata_t lproxy::mobile::log::output_format(const std::shared_ptr<LogVal>& val) {
    std::ostringstream oss;
    oss << log_tools::time2string(val->now)
        << " ["
        //<< std::right << std::setw(5)
        << val->log_type
        << "] " << val->msg << "\t[tid:"
        //<< val->tid << "] "
        << val->tid << "]"
        //<< lproxy::log::basename(val->file_name)
        //<< ":" << val->line_num
        //<< ' ' << val->func_name
        //<< val->extra
        << std::endl;
    return oss.str();
    /*

    CommunObject* obj = CommunObject::get_instance();
    if (obj) {
        // 这里是在日志输出线程中, 而 sendlog 函数中有 emit 发信号给 QWebChannel。日志输出线程是有主线程启动的。
        obj->sendlog(oss.str());
    }
    return "";
    */
} // function lproxy::log::output_format

这好像是个 Qt 中 QWebChannel 的 bug, 暂时注掉了,遗留 (Qt 5.5.1)

注释掉的后果是,html 端无法更新 日志信息,还好只是 Android,日志可有可无。

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.