Summary: | soffice --help displays nothing (Windows command line) | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Aron Budea <aron.budea> |
Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mikekaganski, xiscofauli |
Priority: | medium | ||
Version: | 6.0.0.0.alpha0+ | ||
Hardware: | All | ||
OS: | Windows (All) | ||
See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=111908 https://bugs.documentfoundation.org/show_bug.cgi?id=121498 https://bugs.documentfoundation.org/show_bug.cgi?id=100826 https://bugs.documentfoundation.org/show_bug.cgi?id=121685 https://bugs.documentfoundation.org/show_bug.cgi?id=117312 https://bugs.documentfoundation.org/show_bug.cgi?id=129713 https://bugs.documentfoundation.org/show_bug.cgi?id=151446 |
||
Whiteboard: | target:6.3.0 | ||
Crash report or crash signature: | Regression By: |
Description
Aron Budea
2017-09-20 22:07:34 UTC
Cannot reproduce with master from tonight; OS is Windows 10 x64. Aron, could you please try debugging it? A codepointer is void displayCmdlineHelp(OUString const & unknown) in desktop/source/app/cmdlinehelp.cxx; supposedly some function in lcl_Console ctor doesn't return success? Thanks for the code pointer! What I see in lcl_Console constructor is that this is false: if (GetStdHandle(STD_OUTPUT_HANDLE) == nullptr) If I move into the 'if' in the debugger (set next statement), then it does display the help. However, it's not correct, because 'soffice --help' returns immediately, so it's not holding an active console to print the text to, it just spews the text out while the user already has the console. Aron, could you please check https://gerrit.libreoffice.org/42612? With the current version of the patch, after this line: HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); hOut is 0x00000007, the big 'if' section is skipped and unfortunately nothing is output afterwards with the fprintf call. Dear Mike Kaganski, This bug has been in ASSIGNED status for more than 3 months without any activity. Resetting it to NEW. Please assigned it back to yourself if you're still working on this. I wonder why the return value is ERROR_ARENA_TRASHED. It's really hard to find info on this, not sure if any of these forum threads make sense: https://www.experts-exchange.com/questions/10008619/Why-can't-I-write-to-MFC-GUI-console.html http://www.vbforums.com/showthread.php?730181-Console-Application-ReadConsoleOutputCharacter-or-NET-alternative Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/506173a7f42f34821238a63f3f8c7362c9fae9d9%5E%21 tdf#112536 related: make soffice.bin a proper console application on Win It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. The fix for this caused Bug 121685. When you have have Settings->Display->Scale=125%, both the UI and content become blurry and hard to read. |