https://bugs.winehq.org/show_bug.cgi?id=46269
Bug ID: 46269 Summary: Metatrader 5 File handlers aren't flushed when calling FileFlush() / flush Product: Wine Version: 3.0.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: wineserver Assignee: wine-bugs@winehq.org Reporter: roberto@spadim.com.br Distribution: ---
Hi guys, there's a problem with metatrader 5 file handlers All calls to FileFlush / fflush aren't flush to disk A file being openned to shared read, can't be read since data isn't at disk, in other works no one see new data until application close. after application close all data can be read, but if application close with a signal (kill <pid>), all filewrite operations are lost
I can share some examples if you need, but the easiers is
start terminal64.exe with: terminal64.exe /portable
read logs/<current day>.log file with "tail -f logs/..." you don't see anything close the metatrader window with "X" windows button now you can see data at file
i don't know if wineserver have a buffer at memory or temporary files, but it's a bit strange. the normal windows behaviour is write to file at each "fileflush" / fflush operation, wine is working different
https://bugs.winehq.org/show_bug.cgi?id=46269
roberto@spadim.com.br changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roberto@spadim.com.br URL| |https://www.metatrader5.com | |/pt/download Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=46269
--- Comment #1 from roberto@spadim.com.br --- Created attachment 62977 --> https://bugs.winehq.org/attachment.cgi?id=62977 ProcessMonitor - Windows File Create,Write,Close
https://bugs.winehq.org/show_bug.cgi?id=46269
--- Comment #2 from roberto@spadim.com.br --- Created attachment 62978 --> https://bugs.winehq.org/attachment.cgi?id=62978 Source File To Write Every Second to File - MQL5 Program
https://bugs.winehq.org/show_bug.cgi?id=46269
--- Comment #3 from roberto@spadim.com.br --- Created attachment 62979 --> https://bugs.winehq.org/attachment.cgi?id=62979 EX5 Script File To Write Every Second to File - MQL5 Program
Use this to test and reproduce my print screen
https://bugs.winehq.org/show_bug.cgi?id=46269
--- Comment #4 from roberto@spadim.com.br --- doing some research...
from IRC chat:
ircuser 20:58:19
zf_ fileflush is working the problem is pobably other maybe winserver is caching it, or system cache isn't being save to disk on a regular time basis or someting like, i don't know if it's the default standard of windows i tested my script now with strace on linux, it don't work, but without strace it works what i did.... i open the metaeditor (a metatrader ide to create programas), and run a debug mode f11, on each line when i do f11 at FileFlush, at the console i see 0,1,2,3,4... using a "tail -f BUG46269-1.txt" probably the problem isn't at FileFlush at expert advisors or scripts the problem is at Metatrader logging file, the logs/<date>.log isn't flushing, that's a metaquoets problem probably, but i don't know how to solve, >i will strace it and check what happens news i post again here
https://bugs.winehq.org/show_bug.cgi?id=46269
--- Comment #5 from roberto@spadim.com.br --- please close this bug i will open other just to Terminal64.exe LOG file
https://bugs.winehq.org/show_bug.cgi?id=46269
roberto@spadim.com.br changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #6 from roberto@spadim.com.br --- please close this bug i will open other just to Terminal64.exe LOG file
https://bugs.winehq.org/show_bug.cgi?id=46269
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Gijs Vermeulen gijsvrm@gmail.com --- Closing.