Giter Club home page Giter Club logo

Comments (5)

panyiho avatar panyiho commented on May 30, 2024

We found a crash about sqlite,is a little troublesome

from tray.

passsy avatar passsy commented on May 30, 2024

Please provide more information.
Which tray version are you using? What was the device this is happening and which Android version? Are you calling it in Application#onCreate()?

from tray.

yunair avatar yunair commented on May 30, 2024

Is there any problem calling new AppPreference() in Application#onCreate()??

from tray.

passsy avatar passsy commented on May 30, 2024

I have in mind that I've seen crashes there because the ContentProvider isn't ready yet or the Application is too busy on slow phones causing such problems.

But without more information from your side I can't help you.

from tray.

zrzhong avatar zrzhong commented on May 30, 2024

I got this problem too.I found this message in traces.txt.

"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x41601400 self=0x415394b8
  | sysTid=4780 nice=0 sched=0/0 cgrp=apps handle=1074598228
  | state=D schedstat=( 20041969115 428330280 3159 ) utm=1890 stm=114 core=0
  #00  pc 00020788  /system/lib/libc.so (fdatasync+12)
  #01  pc 00017317  /system/lib/libsqlite.so
  #02  pc 00004a17  /system/lib/libsqlite.so
  #03  pc 0002abb9  /system/lib/libsqlite.so
  #04  pc 0002af49  /system/lib/libsqlite.so
  #05  pc 0002b111  /system/lib/libsqlite.so
  #06  pc 0002b761  /system/lib/libsqlite.so
  #07  pc 0003d157  /system/lib/libsqlite.so
  #08  pc 00033779  /system/lib/libsqlite.so (sqlite3_step+1316)
  #09  pc 0005fb89  /system/lib/libandroid_runtime.so
  #10  pc 0005fbe5  /system/lib/libandroid_runtime.so
  #11  pc 0001db4c  /system/lib/libdvm.so (dvmPlatformInvoke+112)
  #12  pc 0004e003  /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
  #13  pc 00026f60  /system/lib/libdvm.so
  #14  pc 0002deec  /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
  #15  pc 0002b598  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
  #16  pc 00060711  /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
  #17  pc 00068743  /system/lib/libdvm.so
  #18  pc 00026f60  /system/lib/libdvm.so
  #19  pc 0002deec  /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
  #20  pc 0002b598  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
  #21  pc 0006042f  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+338)
  #22  pc 00049beb  /system/lib/libdvm.so
  #23  pc 0004d52f  /system/lib/libandroid_runtime.so
  #24  pc 0004e253  /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
  #25  pc 0000105b  /system/bin/app_process
  #26  pc 0000e3eb  /system/lib/libc.so (__libc_init+50)
  #27  pc 00000d7c  /system/bin/app_process
  at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
  at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:782)
  at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
  at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
  at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1469)
  at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1339)
  at net.grandcentrix.tray.provider.SqliteHelper.insertOrUpdate(SqliteHelper.java:148)
  at net.grandcentrix.tray.provider.TrayContentProvider.insertOrUpdate(TrayContentProvider.java:200)
  at net.grandcentrix.tray.provider.TrayContentProvider.insert(TrayContentProvider.java:179)
  at android.content.ContentProvider$Transport.insert(ContentProvider.java:220)
  at android.content.ContentResolver.insert(ContentResolver.java:1190)
  at net.grandcentrix.tray.provider.TrayProviderHelper.persist(TrayProviderHelper.java:128)
  at net.grandcentrix.tray.provider.ContentProviderStorage.put(ContentProviderStorage.java:257)
  at net.grandcentrix.tray.provider.ContentProviderStorage.put(ContentProviderStorage.java:229)
  at net.grandcentrix.tray.core.Preferences.put(Preferences.java:117)
  at com.commen.utils.PreferencesLoader.setObject(PreferencesLoader.java:47)
  at com.commen.utils.MyPreferensLoader.setForwardRevertMap(MyPreferensLoader.java:192)
  at com.liefeng.singleusb.usbhostdemo.USBSever.assemblyCmd(USBSever.java:651)
  at com.liefeng.singleusb.usbhostdemo.USBSever.initDevices(USBSever.java:522)
  at com.liefeng.singleusb.usbhostdemo.USBSever.access$100(USBSever.java:114)
  at com.liefeng.singleusb.usbhostdemo.USBSever$2.onNext(USBSever.java:392)
  at com.liefeng.singleusb.usbhostdemo.USBSever$2.onNext(USBSever.java:376)
  at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139)
  at rx.internal.operators.OperatorSubscribeOn$1$1.onNext(OperatorSubscribeOn.java:53)
  at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:207)
  at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
  at android.os.Handler.handleCallback(Handler.java:733)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:136)
  at android.app.ActivityThread.main(ActivityThread.java:5001)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:815)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)
  at dalvik.system.NativeStart.main(Native Method)

I use this version: net.grandcentrix.tray:tray:1.0.0-rc3 at an android-tv box which android version is 4.2.2.
And I calling new AppPreference() in Application#onCreate(),is that the reason ?

from tray.

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.