scakemyer / plugin.video.quasar

Quasar add-on for Kodi
https://quasar.surge.sh/
346 stars 94 forks source link

BoltDB issue on Android/ARM causing crash on start up after clean install #811

Open cali4nick8 opened 7 years ago

cali4nick8 commented 7 years ago

I'm using android 6 and after reinstalling Kodi I installed arm version of quasar. It crashes right after start. I have changed the control permissions and rebooted the phone. Still not working. Cleared app data and did everything all over again and still not working. Do you know what might be? Log: http://pastebin.com/35DjfiZc

elgatito commented 7 years ago

Looks like your library.db is broken. You can try to uninstall Quasar and delete plugin directory in userdata. See http://kodi.wiki/view/Userdata , delete "plugin.video.quasar" directory in userdata. And then re-install Quasar.

@scakemyer , more often library.db makes Quasar crash. Maybe a global catch/recreate needed to avoid such things.

elgatito commented 7 years ago

@scakemyer also we can test existing database, if it's fine - do a backup of it, if database not good - delete and restore a backup.. it's better than just delete everything.

cali4nick8 commented 7 years ago

Thanks! I did that but it didn't work. Actually I did more than that. I uninstalled Kodi, cleaned all the files, searched for that library file and delete it. I installed Kodi back again. Activated the services, installed quasar and it loaded and asked me to put the library path. I did and pressed OK and then it asked to install burst, but it failed. I noticed i didn't have the quasar repo so I installed burst from the website as soon as I installed it, quasar crashed. I closed Kodi and opened it again and quasar was crashing again. Here's the new log. http://pastebin.com/u2tjJexS

scakemyer commented 7 years ago

This is a BoltDB issue, looks like a fix was already merged; I'll just make sure our next release includes it.

maxmithun commented 7 years ago

The same thing happens with the version 0.9.75 for arm_v7 . I need to downgrade the version to 0.9.6x to make it working correctly.

Device : Raspberry Pi2 Memory card : 32GB sandisk Class 10 SDHC Image : OSMC_TGT_rbp2_20170322.img

Error log states libtorrent: Failed to find device

I am not getting the logs properly, Since the request to get menu in Movies are getting timedout.

scakemyer commented 7 years ago

I'll try to release v0.9.76 later today, mostly so that we get an updated BoltDB to solve this issue here.

maxmithun commented 7 years ago

I tried using the above version as well, but quasar keeps on crashing more times and after that it quits restarting on timeout

I am getting the following error from the log

22:59:10.893 T:1486877680  NOTICE: [plugin.video.quasar] ERRO  libtorrent   ▶ logAlerts        lsd_error_alert: Local Service Discovery error: No such device
22:59:10.899 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        dht_bootstrap_alert: DHT bootstrap complete
22:59:10.905 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6881
22:59:10.908 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6881
22:59:10.910 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [UDP] 0.0.0.0:6881
22:59:10.914 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6882
22:59:10.917 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6882
22:59:10.920 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6883
22:59:10.923 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6883
22:59:10.925 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [UDP] 0.0.0.0:6883
22:59:11.233 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        external_ip_alert: external IP received 103.XX.XX.XX
22:59:11.854 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  tmdb         ▶ CheckApiKey      TMDB API key check passed, using ae4bd1b...
22:59:11.865 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/028119b1cb98657989d91d3f55ece13f2cb32309.torrent
22:59:11.870 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/0477c03a7c27555bee24f123d774662ade08d23f.torrent
22:59:11.872 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        add_torrent_alert: added torrent: Real Steel (2011) [1080p]
22:59:11.886 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        torrent_added_alert: Real Steel (2011) [1080p] added
22:59:11.889 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        add_torrent_alert: added torrent: Tangled (2010) [1080p]
22:59:11.891 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/06e2a9683bf4da92c73a661ac56f0ecc9c63c5b4.torrent
22:59:11.894 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        torrent_added_alert: Tangled (2010) [1080p] added
22:59:11.898 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        add_torrent_alert: added torrent: Mission Impossible II (2000) [1080p] [YTS.AG]
22:59:11.900 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        torrent_added_alert: Mission Impossible II (2000) [1080p] [YTS.AG] added
22:59:11.904 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/0797d83a34cb6d5d8229eb162b871505b7ce8924.torrent
22:59:11.907 T:1486877680  NOTICE: [plugin.video.quasar] terminate called after throwing an instance of 'libtorrent::libtorrent_exception'
22:59:11.909 T:1486877680  NOTICE: [plugin.video.quasar]   what():  Success
22:59:11.911 T:1486877680  NOTICE: [plugin.video.quasar] SIGABRT: abort
22:59:11.917 T:1486877680  NOTICE: [plugin.video.quasar] System information: linux_armv7 4.4.27-9-osmc
22:59:11.919 T:1486877680  NOTICE: [plugin.video.quasar] Kodi build version: 17.1
22:59:11.921 T:1486877680  NOTICE: [plugin.video.quasar] OS type: Linux
22:59:11.922 T:1486877680  NOTICE: [plugin.video.quasar] uname: ('Linux', 'Mad-Pi', '4.4.27-9-osmc', '#1 SMP PREEMPT Tue Mar 14 20:54:19 UTC 2017', 'armv7l', '')
22:59:16.949 T:1486877680  NOTICE: [plugin.video.quasar] quasard: starting quasard
22:59:16.953 T:1486877680  NOTICE: [plugin.video.quasar] Kodi's JSON-RPC service is available, starting up...
22:59:16.957 T:1486877680  NOTICE: [plugin.video.quasar] Deleting stale files set([])
22:59:16.959 T:1486877680 WARNING: [plugin.video.quasar] Existing process found from lockfile, killing...
22:59:16.960 T:1486877680   ERROR: [plugin.video.quasar] OSError(3, 'No such process')
22:59:20.585 T:1486877680  NOTICE: [plugin.video.quasar] DEBU  main         ▶ main             ________
22:59:20.588 T:1486877680  NOTICE: [plugin.video.quasar] DEBU  main         ▶ main             \_____  \  __ _______    ___________ _______
22:59:20.590 T:1486877680  NOTICE: [plugin.video.quasar] DEBU  main         ▶ main              /  / \  \|  |  \__  \  /  ___/\__  \\_  __ \
22:59:20.599 T:1486877680  NOTICE: [plugin.video.quasar] DEBU  main         ▶ main             /   \_/.  \  |  // __ \_\___ \  / __ \|  | \/
22:59:20.602 T:1486877680  NOTICE: [plugin.video.quasar] DEBU  main         ▶ main             \_____\ \_/____/(____  /____  >(____  /__|
22:59:20.609 T:1486877680  NOTICE: [plugin.video.quasar] DEBU  main         ▶ main                    \__>          \/     \/      \/
22:59:20.611 T:1486877680  NOTICE: [plugin.video.quasar] DEBU  main         ▶ main
22:59:20.612 T:1486877680  NOTICE: [plugin.video.quasar] INFO  main         ▶ main             Version: v0.9.76 Go: go1.8
22:59:20.620 T:1486877680  NOTICE: [plugin.video.quasar] INFO  config       ▶ Reload           Reloading configuration...
22:59:20.700 T:1486877680  NOTICE: [plugin.video.quasar] INFO  config       ▶ Reload           Using download path: /home/osmc/Movies
22:59:20.735 T:1486877680  NOTICE: [plugin.video.quasar] INFO  config       ▶ Reload           Using library path: /home/osmc/Movies
22:59:20.844 T:1486877680  NOTICE: [plugin.video.quasar] INFO  main         ▶ main             Addon: plugin.video.quasar v0.9.76
22:59:20.856 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ configure        Applying session settings...
22:59:20.858 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ configure        UserAgent: Quasar/v0.9.76 libtorrent/1.1.1.0
22:59:20.860 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ configure        Applying encryption settings...
22:59:20.865 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ startServices    Starting LSD...
22:59:20.867 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ startServices    Starting DHT...
22:59:20.872 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ startServices    Starting UPNP...
22:59:20.875 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ startServices    Starting NATPMP...
22:59:20.879 T:1486877680  NOTICE: [plugin.video.quasar] INFO  tmdb         ▶ CheckApiKey      Checking TMDB API key...
22:59:20.881 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ alertsConsumer   Consuming alerts...
22:59:20.885 T:1486877680  NOTICE: [plugin.video.quasar] ERRO  libtorrent   ▶ logAlerts        lsd_error_alert: Local Service Discovery error: No such device
22:59:20.889 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        dht_bootstrap_alert: DHT bootstrap complete
22:59:20.892 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6881
22:59:20.894 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6881
22:59:20.896 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [UDP] 0.0.0.0:6881
22:59:20.898 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6881
22:59:20.900 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6881
22:59:20.901 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6882
22:59:20.903 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6882
22:59:20.904 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        listen_succeeded_alert: successfully listening on [UDP] 0.0.0.0:6882
22:59:21.074 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        external_ip_alert: external IP received 103.XX.XX.XX
22:59:21.953 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  tmdb         ▶ CheckApiKey      TMDB API key check passed, using ae4bd1b...
22:59:21.962 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/028119b1cb98657989d91d3f55ece13f2cb32309.torrent
22:59:21.972 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        add_torrent_alert: added torrent: Real Steel (2011) [1080p]
22:59:21.974 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        torrent_added_alert: Real Steel (2011) [1080p] added
22:59:21.977 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/0477c03a7c27555bee24f123d774662ade08d23f.torrent
22:59:21.986 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/06e2a9683bf4da92c73a661ac56f0ecc9c63c5b4.torrent
22:59:21.988 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        add_torrent_alert: added torrent: Tangled (2010) [1080p]
22:59:21.991 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        torrent_added_alert: Tangled (2010) [1080p] added
22:59:21.993 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        add_torrent_alert: added torrent: Mission Impossible II (2000) [1080p] [YTS.AG]
22:59:21.995 T:1486877680  NOTICE: [plugin.video.quasar] NOTI  libtorrent   ▶ logAlerts        torrent_added_alert: Mission Impossible II (2000) [1080p] [YTS.AG] added
22:59:21.998 T:1486877680  NOTICE: [plugin.video.quasar] INFO  btservice    ▶ loadTorrentFiles  Loading torrent file /home/osmc/Movies/Torrents/0797d83a34cb6d5d8229eb162b871505b7ce8924.torrent
22:59:22.000 T:1486877680  NOTICE: [plugin.video.quasar] terminate called after throwing an instance of 'libtorrent::libtorrent_exception'
22:59:22.002 T:1486877680  NOTICE: [plugin.video.quasar]   what():  Success
22:59:22.004 T:1486877680  NOTICE: [plugin.video.quasar] SIGABRT: abort
22:59:22.006 T:1486877680  NOTICE: [plugin.video.quasar] PC=0x76cbf8e6 m=3 sigcode=4294967290
22:59:22.009 T:1486877680  NOTICE: [plugin.video.quasar] signal arrived during cgo execution
22:59:22.011 T:1486877680  NOTICE: [plugin.video.quasar] System information: linux_armv7 4.4.27-9-osmc
22:59:22.012 T:1486877680  NOTICE: [plugin.video.quasar] Kodi build version: 17.1
22:59:22.014 T:1486877680  NOTICE: [plugin.video.quasar] OS type: Linux
22:59:22.015 T:1486877680  NOTICE: [plugin.video.quasar] uname: ('Linux', 'Mad-Pi', '4.4.27-9-osmc', '#1 SMP PREEMPT Tue Mar 14 20:54:19 UTC 2017', 'armv7l', '')
scakemyer commented 7 years ago

This doesn't seem to be related to BoltDB at all...

maxmithun commented 7 years ago

What could be the issue ?? Do you need anything more to add to it ?

23:17:48.160 T:1958519728   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
23:17:52.446 T:1958519728   ERROR: GetDirectory - Error getting plugin://plugin.video.quasar/
23:17:52.447 T:1958519728   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.quasar/) failed
scakemyer commented 7 years ago

First, your libtorrent: Failed to find device error shouldn't be a problem, and this last log shows a libtorrent exception, so, this isn't related to the BoltDB issue at hand here. Please file a separate issue, filling the issue template as best as you can, and we can look into it over there. Also, try to get new logs of your issue, the stacktrace isn't long enough to see where it's coming from (it gets randomly cut off despite many efforts to make those more reliable, just let it crash / gather logs until it shows from which file the exception occurs).

maxmithun commented 7 years ago

Ok I will do that

scakemyer commented 7 years ago

Thanks!