Giter Site home page Giter Site logo

Comments (5)

Jinnrry avatar Jinnrry commented on July 28, 2024

是物理机还是虚拟机?啥型号的,有复现方法吗,我周末试试

from robothelper.

cpg868 avatar cpg868 commented on July 28, 2024

雷电虚拟机,64位,安卓7.1.2,
复现方法

        new Thread(new Runnable() {
            @Override
            public void run() {
                String stone = "";
                while (true) {
                    stone = TessactOcr.img2string(ScreenCaptureUtil.getScreenCap(358, 506, 375, 523), "chi_sim", "石", "");
                    if (StringUtils.isNotBlank(stone)) {
                        MLog.info("文字识别:"+stone);
                    }
                    sleep(100);
                }
            }
        }).start();

长时间运行时就会报错。

from robothelper.

Jinnrry avatar Jinnrry commented on July 28, 2024

长时间运行是多长时间?我跑了半个多小时都没复现出来

from robothelper.

Jinnrry avatar Jinnrry commented on July 28, 2024

看了一下代码,我猜测是虚拟机内存不够,系统把图片资源的内存回收掉了,因此出了这个错误。

你试试把虚拟机内存调大点呢。

from robothelper.

Jinnrry avatar Jinnrry commented on July 28, 2024

#41 你拉这个分支的代码试试,我添加了一个校验

from robothelper.

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.