Jump to content

marcelser

Members
  • Content Count

    10
  • Joined

  • Last visited

About marcelser

  • Rank
    New Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, The Ransomware Protection of the newest Malwarebytes release kills the proper operation of the "Terminal" tab which starts an embedded cmd.exe in Android Studio 3.5.3 (latest) and IntelliJ 2019.3 (latest) . The part which seems to be breaking is in the so called "winpty" java library (in the case of Android Studio) or "winpty-agent.exe" and "winpty.dll" in case of IntelliJ. As Android Studio is based on IntelliJ it's no wonder both products are now affected. The point is Malwarebytes doesn't report a ransomware beeing found but it kills the functionality of the embedded terminal which start cmd.exe in that it reports "Cannot start Local Terminal" in both Programs. Looking at the support forums for IntelliJ revealed that you can work around it be excluding "winpty-agent.exe" and "winpty.dll" from scanning to fix it. In Android Studio winpty library is not externalized into a .exe & dll but the same java "winpty" package is used and it shows exactly the same error. To fix it I had to exclude "Android Studio" Folder in C:\Program Files from scanning too. The logs in Android Studio is showing this error: 020-01-12 17:35:36,560 [ thread 10] INFO - erminal.AbstractTerminalRunner - Cannot open Local Terminal java.util.concurrent.ExecutionException: Failed to start [cmd.exe] in C:/src/projects/cupboard_manager_ui at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:211) at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:58) at org.jetbrains.plugins.terminal.AbstractTerminalRunner.lambda$openSessionInDirectory$4(AbstractTerminalRunner.java:208) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:312) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Couldn't create PTY at com.pty4j.windows.WinPtyProcess.<init>(WinPtyProcess.java:75) at com.pty4j.windows.WinPtyProcess.<init>(WinPtyProcess.java:50) at com.pty4j.PtyProcessBuilder.start(PtyProcessBuilder.java:109) at com.pty4j.PtyProcess.exec(PtyProcess.java:78) at com.pty4j.PtyProcess.exec(PtyProcess.java:49) at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.lambda$createProcess$0(LocalTerminalDirectRunner.java:202) at org.jetbrains.plugins.terminal.TerminalSignalUtil.computeWithIgnoredSignalsResetToDefault(TerminalSignalUtil.java:41) at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:200) ... 8 more Caused by: com.pty4j.PtyException: Error starting winpty: ConnectNamedPipe failed: Windows error 232 at com.pty4j.windows.WinPty.<init>(WinPty.java:93) at com.pty4j.windows.WinPtyProcess.<init>(WinPtyProcess.java:72) ... 15 more This more or less means that Malwarebytes is interfering with proper Terminal Allocation (see the "Couldn't create PTY" message) in this case. This needs to be fixed soon as IntelliJ and Android Studio are updating regularly and every new release installs into a version specific directory to keep previous isntallation working. So with every new release of Android Studio or IntelliJ it will break again and I will have to add another excluded folder to make it work and I also need to remember how I solved it please. Fix asap. Best regards, Marc PS: For testing purposes it's probably enough to either install IntelliJ Community Edition or Android Studio and then open some dummy project and trying to open the embedded terminal in the bottom tabs while newest Malwarebytes is running. As soon as you disable "Ransomware Protection" from Realtime Scanning it works.
×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.