Discussion:
[Libreoffice-bugs] [Bug 112536] New: soffice --help displays nothing (Windows command line)
b***@bugs.documentfoundation.org
2017-09-20 22:07:34 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

Bug ID: 112536
Summary: soffice --help displays nothing (Windows command line)
Product: LibreOffice
Version: 6.0.0.0.alpha0+ Master
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-***@lists.freedesktop.org
Reporter: ***@caesar.elte.hu
CC: ***@hotmail.com

I'm uncertain if I tried it after the fix to bug 111908 (possibly not), but now
I get no results when calling "soffice --help" from the command line.
Works from Cygwin shell, but not from Windows command line.

Observed using 6.0 daily build from 2017-09-18.

Mike, are you able to reproduce it?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2017-09-21 04:33:31 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

--- Comment #1 from Mike Kaganski <***@hotmail.com> ---
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?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2017-09-21 21:40:49 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

--- Comment #2 from Aron Budea <***@caesar.elte.hu> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2017-09-22 04:21:49 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

Mike Kaganski <***@hotmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Assignee|libreoffice-***@lists.free |***@hotmail.com
|desktop.org |
Ever confirmed|0 |1

--- Comment #3 from Mike Kaganski <***@hotmail.com> ---
Aron, could you please check https://gerrit.libreoffice.org/42612?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2017-12-25 14:43:45 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

Xisco Faulí <***@libreoffice.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
CC| |***@libreoffice.org
Assignee|***@hotmail.com |libreoffice-***@lists.free
| |desktop.org

--- Comment #5 from Xisco Faulí <***@libreoffice.org> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-02-20 05:54:35 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

--- Comment #6 from Aron Budea <***@caesar.elte.hu> ---
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
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-11-19 14:36:40 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

Mike Kaganski <***@hotmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.documentfounda
| |tion.org/show_bug.cgi?id=12
| |1498
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-11-21 05:56:56 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

Aron Budea <***@caesar.elte.hu> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.documentfounda
| |tion.org/show_bug.cgi?id=10
| |0826
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-11-21 07:21:03 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

Commit Notification <libreoffice-***@lists.freedesktop.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Whiteboard| |target:6.3.0
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-11-21 07:21:06 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

--- Comment #7 from Commit Notification <libreoffice-***@lists.freedesktop.org> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-12-11 04:12:23 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

Luke <***@hotmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.documentfounda
| |tion.org/show_bug.cgi?id=12
| |1685
--
You are receiving this mail because:
You are the assignee for the bug.
b***@bugs.documentfoundation.org
2018-12-11 04:14:09 UTC
Permalink
https://bugs.documentfoundation.org/show_bug.cgi?id=112536

--- Comment #8 from Luke <***@hotmail.com> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...