Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program is starting but gui doesnt consistently show up #22

Closed
katchy3132 opened this issue Sep 5, 2021 · 28 comments
Closed

program is starting but gui doesnt consistently show up #22

katchy3132 opened this issue Sep 5, 2021 · 28 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@katchy3132
Copy link

Description:

#21 seems to be fixed - program is starting but gui doesnt consistently show up it just hangs in the background.

Steps to Reproduce:

I tried pausing kaspersky and malwarebytes but I didn't see a difference.
It did start with the GUI a couple times but I'm not sure what was different.

Screenshots:

notice I can't switch to the window in Process Explorer :

image

Device (please complete the following information):

  • OS: windows 10
  • Version: 19043.1165
  • Go version:
  • Wormhole-gui version: 2.3.1
@katchy3132 katchy3132 added the bug Something isn't working label Sep 5, 2021
@Jacalz
Copy link
Owner

Jacalz commented Sep 5, 2021

Thanks for filing the issue. I know that there have been errors in the past with old graphics cards/drivers not supporting a new enough version of OpenGL. Would you mind sharing what CPU and GPU model your system contains? I should be able to spin up a debug build tomorrow for extracting more information about why it doesn't start.

@katchy3132
Copy link
Author

Ryzen 5 2600X
Nvidia GeForce GT 710

@Jacalz
Copy link
Owner

Jacalz commented Sep 5, 2021

Thanks for confirming. On first glance it doesn't look likely to be an issue with OpenGL support. I'll spin up the debug binary tomorrow.

@Jacalz
Copy link
Owner

Jacalz commented Sep 16, 2021

I have decided not to spin up a debug build until I have found the reason for #21.

@Jacalz
Copy link
Owner

Jacalz commented Sep 16, 2021

I'd recommend trying out the binaries on the new v2.3.1 release. I have also attached a debug build here just in case:
wormhole-gui-v2.3.1-debug.zip

@katchy3132
Copy link
Author

The window wasnt starting on the regular release, so the first time I started the debug build I got the following error with the window displaying correctly :

2021/09/16 22:42:46 Fyne error:  Preferences load error:
2021/09/16 22:42:46   Cause: EOF
2021/09/16 22:42:46   At: /go/pkg/mod/fyne.io/fyne/v2@v2.0.4/app/preferences.go:63

the second time there was no debugging text but also no window.
since then I get this error but no window.

@Jacalz
Copy link
Owner

Jacalz commented Sep 16, 2021

Thanks for the report. I'll look into it and possibly get back with more questions. Looks like it might be an upstream issue in Fyne.

@Jacalz Jacalz added the upstream-issue An issue in a dependency or other upstream tool label Sep 16, 2021
@Jacalz Jacalz removed the upstream-issue An issue in a dependency or other upstream tool label Oct 6, 2021
@Jacalz Jacalz added the help wanted Extra attention is needed label Oct 29, 2021
@Jacalz
Copy link
Owner

Jacalz commented Oct 29, 2021

I’m sorry but I don’t quite know how to diagnose this. Are you sure that you are not getting any other messages when using the above debug binaries?

The only idea I have for diagnosing this would be to if you could try and remove the preferences files for wormhole-gui. They should be in something like AppData/Roaming/Fyne/wormhole-gui or similar.

@Jacalz
Copy link
Owner

Jacalz commented Nov 15, 2021

Ping @katchy3132 per the above comment.

@katchy3132
Copy link
Author

hi - I tried this again and was getting the error I had before , then I removed the prefs file you described, and now it seems to be working consistently without the error message. thanks!

@Jacalz
Copy link
Owner

Jacalz commented Nov 16, 2021

Great. Thanks for confirming.

@katchy3132
Copy link
Author

FYI I just replaced the debug binaries with the regular ones and Kaspersky is flagging it https://www.virustotal.com/gui/file/07d58ec83fb74fdf160e3d23241e12854a02d5e31977551e4db75a488b055eb9

@katchy3132
Copy link
Author

I may have spoken too soon - it's hanging again. but I have more info:
I excluded and paused Kaspersky to test this again.

I don't know what happens but if I clear out the Fyne prefs file it starts normally and closes normally.
on the second start it seems to zero out the prefs file which causes the GUI not to open and the program to hang in the background.

killing the process and deleting the prefs resets it back to step 1.

it was not happening when I was using the debug build before. now it happens with both.

@katchy3132 katchy3132 reopened this Nov 16, 2021
@Jacalz
Copy link
Owner

Jacalz commented Nov 16, 2021

Thanks. Then we have something to go on. Sounds like there is something wrong with the preferences code.

@Jacalz
Copy link
Owner

Jacalz commented Nov 16, 2021

FYI I just replaced the debug binaries with the regular ones and Kaspersky is flagging it https://www.virustotal.com/gui/file/07d58ec83fb74fdf160e3d23241e12854a02d5e31977551e4db75a488b055eb9

I don't think there's anything to do about that. Bad virus software will always be bad virus software with many false positives.

@smaragdus
Copy link

Both version 2.3.1 and version 2.3.1-debug do not open, the process starts but it immediately closes, screen:

wormhole-gui 2 3 1 - 2021-12-06 - 001

This happens on Windows 8 x64. Perhaps my OS is not supported?

@Jacalz
Copy link
Owner

Jacalz commented Dec 7, 2021

Do you not get any output into the terminal using the debug binaries?

Windows 8 should be supported, I think. I don't personally know anyone that runs Windows 8 so I haven't tested it before though.

I'm sorry that I haven't been able to do anything about this yet. There is a lot to do at the university and I just have limited access to a Windows 10 computer since I switched to daily-driving Linux on my laptop.

@smaragdus
Copy link

@Jacalz

Do you not get any output into the terminal using the debug binaries?

No.

I suppose that without access to Windows 8 machine it would be close to impossible to be able to reproduce and investigate the problem. Perhaps if there was an option to run the program in portable mode (the configuration file- preferences.json, saved in program folder, not in AppData) it would be easier to investigate the issue as the configuration would be isolated and one could try to test different versions with different settings.

@Jacalz
Copy link
Owner

Jacalz commented Dec 8, 2021

Hmm, interesting idea but I'm not sure it should be necessary with a portable version. I'll have to get my Windows 10 machine up and running to see if I can replicate there. If it is possible, this should be much easier to fix.

Just as a double-check, @smaragdusm, do you think that you could try the steps mentioned in #22 (comment)? If that's the case, this might be an issue with how the directory structure is generated in Fyne.

@Jacalz
Copy link
Owner

Jacalz commented Dec 8, 2021

I just checked on my Windows 10 computer and I can't replicate this. I even tried to remove the preferences folder and it is being created without any issues.

@smaragdus Could you also confirm what CPU and GPU hardware you have as well as any installed virus software?

@smaragdus
Copy link

@Jacalz

Short hardware information:

===================================================================================

Computer: TOSHIBA QOSMIO X870
CPU: Intel Core i7-3630QM (Ivy Bridge-MB SV, E1)
2400 MHz (24.00x100.0) @ 3195 MHz (32.00x99.8)
Motherboard: TOSHIBA Portable PC
Chipset: Intel HM76 (Panther Point)
Memory: 16384 MBytes @ 798 MHz, 11-11-11-28
- 4096 MB PC12800 DDR3 SDRAM - Samsung M471B5273CH0-CK0
- 4096 MB PC12800 DDR3 SDRAM - Samsung M471B5273CH0-CK0
- 4096 MB PC12800 DDR3 SDRAM - Samsung M471B5273CH0-CK0
- 4096 MB PC12800 DDR3 SDRAM - Samsung M471B5273CH0-CK0
Graphics: NVIDIA GeForce GTX 670M [Toshiba]
Drive: TOSHIBA MQ01ABD100, 976.8 GB, Serial ATA 3Gb/s @ 3Gb/s
Drive: HGST HTS541010A9E680, 976.8 GB, Serial ATA 3Gb/s @ 3Gb/s
Drive: TSSTcorp BDDVDW SN-506AB, BD-RE
Sound: Intel Panther Point PCH - High Definition Audio Controller [C1]
Sound: NVIDIA GF114 - High Definition Audio Controller
Network: Qualcomm/Atheros AR8161/8165 PCI-E Gigabit Ethernet Controller
Network: Intel Centrino Wireless-N 2230 BGN 2x2 HMC WiFi/Bluetooth Adapter
OS: Microsoft Windows 8 (x64) Build 9200

===================================================================================

If this not enough I may provide more detailed hardware information.

About the anto-virus, I am sure it is not causing the problem as I disabled it when I was trying to run your program, but it did not help. Anyway, I have an old free version of 360 Total Security which I keep only for one reason- to prevent programs to add items to Windows shell so I won't need to manually edit Windows registry later to remove unwanted context menu items,

I doubt whether it is worth the effort to investigate this. Sooner or later I will have to switch to Linux (most likely Mint or Manjaro) because I won't go any further than Windows 8.

@Jacalz
Copy link
Owner

Jacalz commented Dec 10, 2021

Thanks for the information. Your system specs, most notably the GPU, seems to be all up to the task. My best bet would be that it is the anti virus not letting the application start, but if it doesn't work with it disabled either, then I have no idea. I'm sorry.

@smaragdus
Copy link

@Jacalz

I appreciate your helpfulness. What I can do more is to install Windows 8 on a virtual machine and then try to run wormhole-gui. My guess is that this problem is specific to my system and it is hard to reproduce.

@Jacalz
Copy link
Owner

Jacalz commented Dec 12, 2021

You're welcome. I am happy to help if I can. These kind of issues are far from ideal.

I might have an idea to test, when I have some time left in the week to do so. The loading of the preferences on startup currently triggers the values to be saved as well. Will see if I can fix that and if that might cause some sort of corruption by reading and writing to the same file at the same time.

I'll also see if I can spin up some new debug binaries running the latest code in the main branch, that will become the 3.0.0 release some time early next year. A lot has changed, especially with using Fyne 2.1.2 over 2.0.3, so we might see something different hopefully (I doubt it, but it doesn't hurt to try).

Jacalz added a commit that referenced this issue Dec 14, 2021
This changes how we store the settings and most importantly how we read them on startup.
The old way of doing it had the undesired consequence that it also saved the preferences
to disk after having loaded them. With that fixed, we should now avoid multiple
unnecessary disk writes on startup. The application should
thus start faster and hopefully avoid other issues in the process.

It also switched some fo the values to reading booleans instead. Should be faster but is a breaking change.

Hopefully a step in the right direction for #22.
@Jacalz
Copy link
Owner

Jacalz commented Dec 14, 2021

I have now pushed 244967f which hopefully makes things better at least. It may or may not solve the issues, I have no idea honestly. However, it should make things a lot better either way :)

Here is a debug build running on the development version of v3.0.0. It should feature a lot of changes over the old debug build, so hopefully something can help out there. Feel free to test and see if it makes anything better for you :)

@Jacalz
Copy link
Owner

Jacalz commented Jan 3, 2022

I have removed the old debug binary and attached a new one with all of the latest changes. I would really appreciate if you two could test it out and see if it solves anything.
wormhole-gui-v3.0.0-debug2-windows-amd64.zip

@smaragdus
Copy link

smaragdus commented Jan 4, 2022

@Jacalz

First, Happy New Year!

Second, sorry for the late reply.

Third, when I start the debug executable for a second or less a console window appears but it closes almost immediately as the process is terminated.

Fourth, it is not the anti-virus blocking the process as I had disabled it before running the debugger.

Fifth, I am almost sure that the problem is within my system (Windows has been installed 7 or 8 years ago).

Sixth, I cannot imagine what else you can do for debugging. I hope you have not wasted too much time. I highly appreciate your good will and the efforts you have put into trying to investigate the problem.

Best regards!

@Jacalz
Copy link
Owner

Jacalz commented Jan 5, 2022

Happy new year! 💥
Thanks for the detailed answer. I will close this issue then. I’ll reopen in the future if I suddenly can replicate or more users show that they have the same problem.

No worries. I haven’t wasted any time on improving this project. Thanks for all the help :)

@Jacalz Jacalz closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants