Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabnine cannot work properly in Webstorm 2021.1; BinaryCannotRecoverException #162

Closed
Lutra-Fs opened this issue Jun 21, 2021 · 33 comments
Closed

Comments

@Lutra-Fs
Copy link

Lutra-Fs commented Jun 21, 2021

Tabnine is not able to function properly. Contact [email protected]

com.tabnine.binary.exceptions.BinaryCannotRecoverException
at com.tabnine.binary.BinaryProcessRequesterProvider.onDead(BinaryProcessRequesterProvider.java:64)
at com.tabnine.binary.BinaryRequestFacade.executeRequest(BinaryRequestFacade.java:43)
at com.tabnine.binary.BinaryRequestFacade.executeRequest(BinaryRequestFacade.java:23)
at com.tabnine.lifecycle.BinaryStateService.updateState(BinaryStateService.java:32)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:223)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)

Tabnine is not able to function properly. Contact [email protected]

com.tabnine.binary.exceptions.BinaryCannotRecoverException
at com.tabnine.binary.BinaryProcessRequesterProvider.onDead(BinaryProcessRequesterProvider.java:64)
at com.tabnine.binary.BinaryRequestFacade.executeRequest(BinaryRequestFacade.java:43)
at com.tabnine.binary.BinaryRequestFacade.executeRequest(BinaryRequestFacade.java:23)
at com.tabnine.lifecycle.BinaryNotificationsLifecycle$poll$1.run(BinaryNotificationsLifecycle.kt:26)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)

Error on Windows 10 Webstorm 2021.1 Reinstall Tabnine hasn't solved the problem

gz#2103

@maya-tabnine
Copy link

Can you send Tabnine's logs and your config file?

Your config file should be located at:
{FOLDERID_RoamingAppData}\TabNine (example: C:\Users\Alice\AppData\Roaming\TabNine)

To get Tabnine's log in Webstorm, please open: Help -> Edit Custom Properties...
and insert:
TABNINE_LOG_FILE_PATH = some path to a file
Then restart IDE and wait for the problem to happen.

@Lutra-Fs
Copy link
Author

intellij log:
idea.log
Tabnine Config (Github doesn't support .json upload, so I archived the file):
tabnine_config.zip
I cannot get a Tabnine log with the setting, I use

TABNINE_LOG_FILE_PATH = "%appdata%\TabNine\tabnine.log"

for the log, but there is no file generated.

@Lutra-Fs
Copy link
Author

I am also using Tabnine for VSCode. It works well.

@Lutra-Fs
Copy link
Author

refers to #99

@Lutra-Fs
Copy link
Author

I meet this problem after I update Tabnine for Webstorm.

@Lutra-Fs Lutra-Fs changed the title Tabnine cannot work properly in Webstorm 2021.1 Tabnine cannot work properly in Webstorm 2021.1; BinaryCannotRecoverException Jun 21, 2021
@maya-tabnine
Copy link

Hi try to enter the full path, for example c:\users\maya\AppData\Roaming\Tabnine\tabning.log
Thanks for the config file! We need your logs too to investigate the issue and find the cause of the crash.

@Lutra-Fs
Copy link
Author

Hi Maya, I tried the full path, no files generated either.

@maya-tabnine
Copy link

Try typing 'tabnine::logs' inside the IDE's editor, it should give you the location of the log file.

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jun 27, 2021

Hi Maya, the autocomplete function from Tabnine is not available in my WebStorm.

@Lutra-Fs
Copy link
Author

I've deleted "%userprofile%/.tabnine", and the error has now disappeared. There is no 3.5.12 in that folder. After the deletion, the 3.5.12 goes to the newest one. But now, my Tabnine cannot give me any suggestion and will create many zombies while running, and I have already added the path to the windows defender exclusions list.

@Lutra-Fs
Copy link
Author

wd_log_rCURRENT.txt
This is the new log file.

@Lutra-Fs
Copy link
Author

Update: After I fully reinstall Tabnine extension and Webstorm, the extension now back to work

@Lutra-Fs
Copy link
Author

I will keep this issue open as the issue still exists

@Lutra-Fs
Copy link
Author

For me, the original issue looks like the extension doesn't pull 3.5.12 binaries from your server, when it tries to call the 3.5.12 binaries it will throw errors. After deleting the binaries, the error has been resolved. But the extension cannot communicate with binaries, it cannot provide any suggestions. From the log, the binaries were called and called again, created more than 10 dead processes. Killing the IDE didn't kill all the processes.

@Lutra-Fs
Copy link
Author

After getting the newest binaries, instead of reinstalling the extension, I have to reinstall Webstorm to make the connection again.

@Lutra-Fs
Copy link
Author

@maya-tabnine

@boaz-codota
Copy link
Contributor

Wow that is something we need to look further into, but let me just repeat what your conclusions are we are on the same page:

  1. Engine binaries tried to update to 3.5.12
  2. You had those binaries in the versions folder, and Tabnine tried to run it.
  3. They did not work, so Tabnine just kept spinning more and more instances of those, resulting in an overflow of them.
  4. You deleted the 3.5.12 folder, Tabnine downloaded a new version (What version? Or was it the same version?)
  5. It still didn't work. You uninstalled Webstorm (did you uninstall and reinstall only Tabnine before?), and only then Tabnine started working again (With what engine version?)

Anything else we should know? Something special about your setup?

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

nope.
The 3.5.12 has not been downloaded until I clear the folder

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

They did not work, so Tabnine just kept spinning more and more instances of those, resulting in an overflow of them.

That’s the things happens after I clear the folder.

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

It still didn't work. You uninstalled Webstorm (did you uninstall and reinstall only Tabnine before?)

Yes, I tried reinstalling Tabnine only first.

@boaz-codota
Copy link
Contributor

So clearing the folder did not help? Or it did?

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

What version? Or was it the same version?

I delete all the things in .tabnine folder, then tabnine get the 3.5.12 ver

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

Also I tried to copy the 3.5.12 binary from vscode extension before I clear the folder but it didn't work.

@boaz-codota
Copy link
Contributor

Just to be clear, now you have version 3.5.12 and it works?

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

Yes It works now

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

So clearing the folder did not help? Or it did?

Clearing folder solve the error listed. But they did not work, so Tabnine just kept spinning more and more instances of those, resulting in an overflow of them.

And then I reinstalled tabnine extension but it doesn't solve the problem.

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

Wow that is something we need to look further into, but let me just repeat what your conclusions are we are on the same page:

  1. Engine binaries tried to update to 3.5.12
  2. You had those binaries in the versions folder, and Tabnine tried to run it.
  3. They did not work, so Tabnine just kept spinning more and more instances of those, resulting in an overflow of them.
  4. You deleted the 3.5.12 folder, Tabnine downloaded a new version (What version? Or was it the same version?)
  5. It still didn't work. You uninstalled Webstorm (did you uninstall and reinstall only Tabnine before?), and only then Tabnine started working again (With what engine version?)

Anything else we should know? Something special about your setup?

  1. Engine binaries tried to update to 3.5.12 (I don't know if that happened)
  2. You had those binaries (<=3.5.11) in the versions folder, and Tabnine tried to run it.
  3. They did not work, and Tabnine throw BinaryCannotRecoverException
  4. Tried to copy the 3.5.12 binary from the vscode extension folder as the vscode extension working properly
  5. Delete all the binaries
  6. Tabnine now download 3.5.12 version. Although it solved the exception, it didn't provide any suggestions. Tabnine just kept spinning more and more instances of those, resulting in an overflow of them.
  7. It still didn't work. You uninstalled Webstorm (did you uninstall and reinstall only Tabnine before?), and only then Tabnine started working again (With what engine version?)
  8. The problems have now been solved.

I wonder if this info clarifies the situation.

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

Because the binary is dead, I cannot get any logs.

@boaz-codota
Copy link
Contributor

Do you still have the binary that did not work? (In the recycle bin maybe?)

@Lutra-Fs
Copy link
Author

Lutra-Fs commented Jul 1, 2021

I am sorry that I am not able to provide that info as I have updated to Windows 11

@boaz-codota
Copy link
Contributor

We will look into that, let us know if something like that ever happen again, or if you have any more information.

Thank you for your time!

@Lutra-Fs Lutra-Fs closed this as completed Jul 7, 2021
@toduyen
Copy link

toduyen commented Jan 10, 2022

hi everyone i found the simplest fix. My Tabnine is running fine.
Step 1: uninstall tabnine on WebStorm
Step 2: Delete file .tabnine at C/Users/Username
Step 3: Delete file TabNine at C/Users/Username/AppData/Roaming/TabNine
Step 4: Open WebStorm install tabnine

Good luck to you

@houtan-rocky
Copy link

hi everyone i found the simplest fix. My Tabnine is running fine. Step 1: uninstall tabnine on WebStorm Step 2: Delete file .tabnine at C/Users/Username Step 3: Delete file TabNine at C/Users/Username/AppData/Roaming/TabNine Step 4: Open WebStorm install tabnine

Good luck to you

Did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants