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

Nvda crashes when selecting whole text in specific source files in Android studio #17418

Open
PeterLecky opened this issue Nov 19, 2024 · 9 comments
Labels
bug/crash component/java-access-bridge needs-technical-investigation A technical investigation is required to progress the issue. p1 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.

Comments

@PeterLecky
Copy link

Actually do not know what causes this. It happens in larger files but not in all large files. I prepared file which is not compillable (see zipped attachment, it defines few constants a lot of times), but this happens also in syntactically correct files.

Steps to reproduce:

  1. Open Android studio and attached java file in code editor
  2. Press ctrl+a to select whole file
  3. Nvda now completely crashes

It is also possible to reproduce this crash from python console

  1. Open Android studio and attached java file in code editor
  2. invoke python console (nvda+ctrl+z)
  3. invoke import textInfos;len(focus.makeTextInfo(textInfos.POSITION_ALL).text)

Actual behavior:

Nvda completely crashes and there are no any relevant information in %tmp%\nvda-old.log

Expected behavior:

NVDA logs, crash dumps and other attachments:

BadConstants.zip

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

Nvda 2024.4

Windows version:

Windows 10 22H2,

Name and version of other software in use when reproducing the issue:

Android Studio Koala | 2024.1.1 Patch 1
Build #AI-241.18034.62.2411.12071903, built on July 10, 2024
Runtime version: 17.0.11+0--11852314 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Non-Bundled Plugins:
io.wisetime.plugins.window.branch (1.1.0)

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

Reproducible on older versions of NVDA

If NVDA add-ons are disabled, is your problem still occurring?

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

@PeterLecky PeterLecky changed the title Nvda crashes when selecting whole text in specific source files Nvda crashes when selecting whole text in specific source files in Android studio Nov 19, 2024
@Adriani90
Copy link
Collaborator

@PeterLecky Please test with Android studio 2024.2.1 since INtelliJ is updated there as well. are you still having this issue with that version?
Can you also test with IntelliJ 2024.3 which has been released shortly? Most of the times Android studio lags behind IntelliJ, so IntelliJ current version should always be tested as well when encountering issues with Android Studio in general.

@PeterLecky
Copy link
Author

PeterLecky commented Nov 20, 2024 via email

@Adriani90
Copy link
Collaborator

What happens if indentnav is disabled? Is still crashing?
Is there any possibility to test with narator?
and I see you enabled experimental UI, at least it‘s set to true. Where does that setting come from? And does it have any effect when you set it to false?

@PeterLecky
Copy link
Author

PeterLecky commented Nov 21, 2024 via email

@PeterLecky
Copy link
Author

I have few more info. I have installed Jaws (full installer has 1.2GB, unbeliewable) and i can select and copy whole code in code editor without any crashes of jaws.
Peter

@github-actions github-actions bot added this to the 2025.1 milestone Nov 22, 2024
@Adriani90 Adriani90 reopened this Nov 22, 2024
@PeterLecky
Copy link
Author

PeterLecky commented Nov 22, 2024 via email

@CyrilleB79 CyrilleB79 removed this from the 2025.1 milestone Nov 22, 2024
@seanbudd seanbudd added bug/crash component/java-access-bridge triaged Has been triaged, issue is waiting for implementation. p1 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority labels Nov 26, 2024
@seanbudd
Copy link
Member

It seems likely this is a bug in Java Access Bridge. Unfortunately we are stuck on an out of date version until we upgrade NVDA to 64bit see #16304

@seanbudd seanbudd added the needs-technical-investigation A technical investigation is required to progress the issue. label Nov 26, 2024
@mltony
Copy link
Contributor

mltony commented Nov 28, 2024

cc: @dmitrii-drobotov -in case you can come up with some kind of workaround for this.

@dmitrii-drobotov
Copy link
Contributor

Thanks for the heads-up @mltony. Here are my observations after quickly looking into this:

  • I can reproduce it with a basic Java Swing app using the default JTextArea component if I paste the same text there. So it's not specific to Android Studio/IntelliJ.
  • The size of the text doesn't seem to be the cause, I tried much larger files with 50000+ lines of code, and with them NVDA works slower or might freeze for a bit, but at least it doesn't crash.
  • I also don't get anything related in NVDA logs even with the most verbose level, and the debugger doesn't stop on any uncaught exception before crashing. Does anybody have any tips on how I could debug this?
    If I remember correctly, there was a way to enable more logs in the Java Access Bridge, so I could try looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/crash component/java-access-bridge needs-technical-investigation A technical investigation is required to progress the issue. p1 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

6 participants