m4heshd / offlinebay

Official repository of the project OfflineBay
MIT License
118 stars 23 forks source link

Search icon loads forever - Mac OS 10.13.5 #6

Open syedwaseemjan opened 6 years ago

syedwaseemjan commented 6 years ago

I was able to open and import the dump file but I cannot see the list of torrents. When I try to search something, the searching icon loads forever like this

screen shot 2018-06-27 at 9 14 42 pm

Logs from Mac console

error   21:22:19.362052 +0500   OfflineBay  nw_path_close_fd Failed to close guarded necp fd 32 [9: Bad file descriptor]

Logs from terminal

» /Applications/OfflineBay.app/Contents/MacOS/OfflineBay                                                                          1 ↵
2018-06-27 22:48:07.414 OfflineBay[6429:288242] *** WARNING: Textured window <AtomNSWindow: 0x7fd1fbc47200> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindows -titlebarAppearsTransparent=YES instead.

objc[6429]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff864b3c90) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1103d9cd8). One of the two will be used. Which one is undefined.

Import process ended
Search process ended

Dump Files

I tried to load both csv and gz. Files permissions are

$ ls -l torrent_dump_full.csv*
$ -rw-r--r-- 1 waseem 189397230 Jun 27 21:07 torrent_dump_full.csv
$ -rw-r--r-- 1 waseem  93037900 Jun 27 20:48 torrent_dump_full.csv.gz
techtacoriginal commented 6 years ago

Looks like the error is returned from a file descriptor which only used in the download and import processes. Since you didn't download through the app I'm assuming the error is originated from Import process. But that doesn't describe the infinite search loop. Did you get the import successful notification? Can you try to do following things in this order so i can get some clarity on this?

  1. Find the log file from OfflineBay.app > Contents > Resources > app > app > data > logger.log
  2. If you know how to tail it, go ahead and start tailing
  3. Open OfflineBay and do an import. Don't do anything other than that
  4. Check the error log for any errors. If there are any errors keep a copy of that separately
  5. Close and open up OfflineBay again
  6. Do a search and check the log file again. If there are any errors record those separately just like before.

Please post those errors referring to each action. Also screenshot any visible error notifications in the app.

syedwaseemjan commented 6 years ago

Yes I do get import successful notification. This is what I got in logs

» tail -f /Applications/OfflineBay.app/Contents/Resources/app/app/data/logger.log
[2018-06-28 11:28:24] : Import process ended
[2018-06-28 11:29:02] : Search process ended
tail: /Applications/OfflineBay.app/Contents/Resources/app/app/data/logger.log: file truncated
[2018-06-28 11:29:19] : Search process ended

Also, how do I download the dump file through the app ?

techtacoriginal commented 6 years ago

It's weird. No errors are there. 🤔 This just became super hard to reproduce. I want you to do something. Just search for "asdasdas" and observe the result. Search for that exact term.

syedwaseemjan commented 6 years ago

For asdasdas it showed one result.

screen shot 2018-06-28 at 6 33 40 pm
techtacoriginal commented 6 years ago

That's what i thought. This seems to be some weird random rendering issue. But i can't say for sure till i diagnose this properly. Unfortunately it's really hard for me to test because i'm using a Mac VM. So my test result could differ vastly from an actual Mac. We need Mac devs for the project. #4 seems to be the same issue but it was fixed somehow. Stay tuned because i'm definitely gonna get to the bottom of this.

UPDATE: Users who are experiencing this issue can use Instant search till this bug is fixed.

fcarsenal12 commented 6 years ago

i have the same issue its stuck on searching when i search for anything except : " asdasdas " it give me 2 results i have the latest dump file loaded succefully OS X 10.12

Rob-Rychs commented 6 years ago

my PR #11 fixes this issue tested on Mac OS X 10.13.6 (sorry to clarify: my PR solves the infinite search bug when the user performs an empty search. though it might be related)

rafata125 commented 6 years ago

Same as fcarsenal12 Instant search working fine OS X 10.13.6

liquidchild101 commented 5 years ago

hi, thought id chime in. ive got the same problem but i was able to get a search result from a game "abzu".

im not a programer but it seems like anything from the top "a" doesnt take too much time so it can give the result. anything further down the dump file takes longer and gets the stuck in the loop or what ever the problem is.

of course this is only my experience. good luck peeps

mac os x 10.11.16 instant search working fine