Problem with Wine....

rbachl
Posts: 20
Joined: Mon Apr 17, 2006 6:14 pm

Post by rbachl »

I have tried the following:

1) I have added manually the missing Rt directory to the old setup and a subsequent download worked ok.

2) I removed the entire application data directory and installed it fresh with the program that you have mailed. The program was causing the same error, no difference with the previous version.

3) I have manually added the missing directory to the new setup and a subsequent download worked.

4) After waiting for a few more seconds, any further download failed again, the directory Rt was automatically removed again.

It seems that UE contains some code for removing the directory Rt and therefore every subsequent download fails. Apparently I have been lucky to get it working at the first time, probably I was creating the Rt directory with different permissions at that time. I have the impression that the error is not a Wine error.
rbachl
Posts: 20
Joined: Mon Apr 17, 2006 6:14 pm

Weird

Post by rbachl »

Something weird going on. The Rt directory is also erased even if the user running Wine does not have the permissions to do so.
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

ok i think i understand the behaviour now.

i'm almost certain the Wine bug is when you call ::DeleteFile with directory name it deletes the directory if the directory is empty.

try to report it so they confirm it.

just when i'm clearing the temp dir i don't check with what argument i call ::DeleteFile as to deleting an empty directory in Windows there is another function ::RemoveDirectory which i don't call.

if you uncheck "autoclear temp dir" and press "apply" (properties->general), create Rt directory and then press "clear temp dir" if this is the bug you should observe the directory disappear.

to handle it in the meantime try to create e.g. another dummy subdirectory inside the Rt directory so it won't be empty and i'll add a line not to call ::DeleteFile with directory name in the next version, but i guess they want to fix it too.
rbachl
Posts: 20
Joined: Mon Apr 17, 2006 6:14 pm

Post by rbachl »

Yes, you are right. When I remove the "Autoclear" in UE general properties, the directory remains there. When I start "clear now", the directory vanishes as well.

If that is the problem, we should be able to reproduce the Wine problem with a few lines of source code. Would you be willing to send me such a small sample source code file and the corresponding executable file? I would then set up the test case with Wine and verify the behavior. Once we have verified the behavior, we could report that at the Wine bugtracker with the sample source code attached. What do you think?

The problem is really severe as the directory permissions are not honored in that case. Even creating the directory with the root user and setting the sticky bit does not preclude Wine from erasing the directory.
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

i don't think we need a sample.

e.g. if we have an empty directory c:/ue/temp/rt

and the program is:

void main()
{
::DeleteFile("c:/ue/temp/rt");
}

it will delete the rt directory :)
try to open the case like that, if there will be further questions i'll make a sample.
rbachl
Posts: 20
Joined: Mon Apr 17, 2006 6:14 pm

UE v1.3, Wine v0.9.12

Post by rbachl »

To summarize the problems/solutions of UE version 1.3 under a standard Wine version 0.9.12 environment without any additional dll files:

Problem 1:
"Icon in system tray" entry in the "Edit" menu not working. When that functionality is enabled, UE creates a separate system tray somewhere on the desktop, and after closing and opening UE with the window manager the UE window is no longer refreshed.
Workaround: Disable and do not use "Icon in system tray"

Problem 2:
UE cannot download any messages or attachments at all. When downloading, an error message is displayed for example:
"Couldn't create temp file c:\ue\Temp\Rt\5BEE0338". This seems to be a Wine bug, whereby a deletion of all files in a directory erases the entire directory.
Solution:
Create manually the directory <Data base directory>/Temp/Rt and create manually a file inside that directory that cannot be erased by the user starting Wine. For example:

mkdir <Data base directory>/Temp/Rt
touch <Data base directory>/Temp/Rt/dummy

Problem 3:
The icon for "Open default save folder" does not work.
Workaround:
Use Linux native file browser outside of UE.

Problem 4:
There are some of these warnings upon start of UE with Wine at the command line:
"This program tried to use a DOMDocument object, but
libxml2 support was not present at compile time."
The effect of this warning on program execution of UE is not clear.
Solution:
Wine needs the 32 bit library for libxml2 to be available when it is compiled.

Problem 5:
There are some of error messages when running UE with Wine at the command line. Examples:

err:listview:LISTVIEW_WindowProc unknown msg 052f wp=00000000 lp=55baede0
err:listview:LISTVIEW_WindowProc unknown msg 0533 wp=00000000 lp=5bf19118
err:listview:LISTVIEW_WindowProc unknown msg 052d wp=00008064 lp=55baebcc
err:tooltips:TOOLTIPS_Timer How did this happen?

The effect of these errors on program execution of UE is not clear.
Workaround:
Ignore the errors, program can also be executed in the background with no open terminal.
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

try to check v1.3.1 shouldn't trigger the remove directory bug and maybe you can open the default save directory.
rbachl
Posts: 20
Joined: Mon Apr 17, 2006 6:14 pm

Post by rbachl »

Thank you, I have downloaded version 1.3.1 and I am using it right now. I did not check yet on the remove directory bug. But the icon for "open default save directory" in the menu bar won't open save directory. A menu is opening for folder selection when "downloading and saving attachments" though.
Post Reply