Giter VIP home page Giter VIP logo

uoitdclibrarybooking's People

Contributors

gitter-badger avatar objectivetruth avatar

Watchers

 avatar  avatar  avatar

uoitdclibrarybooking's Issues

Possible Hang-Bug Found in Calendar_Generic_Page_Fragment

Dear developers,
I am developing a tool to detect hang-bugs of android apps. A hang-bug happens when the execution of heavy APIs on the main thread lead the main thread to be unresponsive for an amount of time longer than the human-eye perceivable delay. We tested the master version of your app and found that the usage of the following Timber library API:

timber.log.Timber.v

timber.log.Timber.i

cause hang-bugs with the user perceiving a freeze of almost 1 second. We detect this hang-bug specially when the app is opened but also in other interactions with the app. In particular, an extract of stack trace that calls the above API is the following:

1)com.objectivetruth.uoitlibrarybooking.Calendar_Generic_Page_Fragment.onCreateView(Calendar_Generic_Page_Fragment.java:114)

2)com.objectivetruth.uoitlibrarybooking.Calendar_Generic_Page_Fragment$CalendarAdapter.<init>(Calendar_Generic_Page_Fragment.java:293)

3)timber.log.Timber.v(Timber.java:13)

Moving heavy tasks off the main thread helps improving the responsiveness of the app. Therefore, we think that moving off the main thread (e.g., using AsyncTask for example) the execution of the Timber library APIs (Timber.i, Timber.v) in the CalendarAdapter method would fix this hang-bug and greatly help improving the responsiveness of your app.

Do you think that this approach would help improving the responsiveness of the app?

Thanks a lot for any reply,
Hope to help improving UoitDCLibraryBooking's responsiveness

Circle-CI tests take way too long (25+ minutes)

Linked to the use of the avd software emulator.

Found here

https://github.com/ObjectiveTruth/UoitDCLibraryBooking/blob/beta/circle.yml#L17-L19

test:
  override:
    # Run unit tests first (results will be collected at the last step)
    - ./gradlew test -PdisablePreDex
    # start the emulator
    - emulator -avd circleci-android22 -no-audio -no-window:
        background: true
        parallel: true
    # wait for it to have booted
    - circle-android wait-for-boot
    # unlock the emulator screen
    - sleep 30
    - adb shell input keyevent 82

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.