8262829: Native crash in Win32PrintServiceLookup.getAllPrinterNames() #2836
Yet the list of printers or the names of printers can change between the two calls. If it happens, the second call to
I couldn't reproduce the crash myself. However, I reproduced the failure in the second call to
During my testing,
The crash dumps show that
raises Access Violation exception.
Without the fix, the list of available printers was empty occasionally because
The text was updated successfully, but these errors were encountered:
@aivanov-jdk This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 43 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
Most of the time, the crash happens when a client reconnects to their active session where a JVM is already running. On reconnect, the list of printers is synced with the local printers on the client. In such a scenario, other software could also update its list of printers as well as repaint its UI. If the system is under high load, it's not impossible to have a long enough pause between the calls.
@aivanov-jdk Since your change was applied there have been 79 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit a6e34b3.