username1565 / uTox_winXP

µTox the lightest and fluffiest Tox client
https://utox.io
Other
6 stars 0 forks source link

uTox crushing when change the password. #7

Open username1565 opened 4 years ago

username1565 commented 4 years ago

Overview

  1. uTox version: v0.17.1
  2. Operating system: Windows XP
  3. Desktop Environment/Window Manager (Linux/BSD only): Desktop

Issue

uTox crushing when change the password. After encrypt the file with profile \Tox\tox_save.tox by password, uTox.exe is crushing, because this cann't be decrypted by inputed password, after encrypting this file. After new start, uTox.exe ask the password, and when this correct, tox_save.tox is runned automatically. This function in src/layout/settings.c is finished sucessfully, after changing the password. Then, new, encrypted tox_save.tox is saved.

Where this saving is running, I don't understand, and there need to save some temp-file, to leave uTox.exe runned, or prevent the crushing, remember the password, and decrypt the encrypted tox_save.tox, automatically after encrypting this by password, while program still working.

How to do this, anyone know??

P.S.: The same auto-crushing there is after changing in the settings IPv6, UDP, and Proxy Settings. After manually changing this values in \Tox\tox_save.ini:

enableipv6=true
disableudp=true
proxyenable=true
proxy_port=127.0.0.1
proxy_ip=8080

uTox is started good with this parameters.

Maybe, crushing processing, just because tox_save.ini cann't be saved or updated, correctly.

UPD: tox_save.ini saved, after close uTox.exe. So, tox_save.ini not saving before crush, and program not try to save this, because that method still not runned, but crushing. This means, crush on switch the parameters, and maybe this just because something try to activate, but not can be activated sucessful...

username1565 commented 4 years ago

After crush, when --debug enabled, there is in console the following text:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

This text contains inside msvcr71.dll, so, maybe, this is error inside this dll. Maybe, need to use some another methods and functions from the source code of this dll, to working with this dll correctly, after changing password, after switch IPv6, UDP, proxy, proxyIP, proxyPORT, where program is crushing. Maybe, some methods/functions program try to run from this dll, but this not found, because msvcr71.dll (for Windows XP), is deprecated, so there is program crushing...

So, need to change something in the source code...

P.S.: This seems like the source code of msvcr71.dll, but I don't know how to compile this.