Comments (11)
Hi @diomark, thanks for the feedback. Which version of Windows are you using?
When you say that the wallet was running in the background, do you mean that there was a window open and hidden behind other windows? Or that all windows of the application were closed and the process was still running in the background?
Was this the screen you saw when you opened the application the second time, after already creating a wallet?
Thanks a lot for the valuable feedback!
from desktop-wallet.
@nop33 @mvaivre is this related to our latest fix PR? If so, we need to assign a bounty for this issue report
from desktop-wallet.
I haven't been able to reproduce this on my macbook, waiting for input from @diomark. I can check with @Arbaba who is using Windows, when I see him on Friday.
from desktop-wallet.
Windows 10 [Version 10.0.19043.1348]
The existing wallet window was just hiding behind other windows (i.e. functioning correctly/not crashed)
This is pretty easy to replicate -
Start alephium wallet, login
Start alephium wallet again (from start menu. It will give the options of new wallet or importing wallet (vs just focusing on the already opened wallet)
from desktop-wallet.
btw - yes - that's the screen that shows up when launching a second time. (option for new wallet or importing)
from desktop-wallet.
I managed to reproduce the issue. I still haven't found a solution. Some notes during my debugging:
- We create new windows only when 2 events get triggered:
ready
andactivate
. - Even when commenting out the callback of the
activate
event completely, when clicking the installed Windows Alephium app it still opens a second window. The only place wherecreateWindow
is now called is in theready
event callback. Updating the callback to the following snippet does not solve the problem (second window opens again):app.on('ready', () => { if (mainWindow === null) createWindow() })
- I tried this, also no success:
app.on('ready', () => { if (BrowserWindow.getAllWindows().length === 0) createWindow() })
- I tried updating the snippet to the following, again, without success:
app.whenReady().then(() => { if (mainWindow === null) createWindow() })
- It would seem that every time the installed
exe
is launched on Windows (located atC:\Users\<my-user-name>\AppData\Local\Programs\alephium-wallet\Alephium.exe
), themainWindow
variable is set tonull
.
Need to keep debugging...
from desktop-wallet.
I managed to reproduce the issue. I still haven't found a solution. Some notes during my debugging:
- We create new windows only when 2 events get triggered:
ready
andactivate
.- Even when commenting out the callback of the
activate
event completely, when clicking the installed Windows Alephium app it still opens a second window. The only place wherecreateWindow
is now called is in theready
event callback. Updating the callback to the following snippet does not solve the problem (second window opens again):app.on('ready', () => { if (mainWindow === null) createWindow() })- I tried this, also no success:
app.on('ready', () => { if (BrowserWindow.getAllWindows().length === 0) createWindow() })- I tried updating the snippet to the following, again, without success:
app.whenReady().then(() => { if (mainWindow === null) createWindow() })- It would seem that every time the installed
exe
is launched on Windows (located atC:\Users\<my-user-name>\AppData\Local\Programs\alephium-wallet\Alephium.exe
), themainWindow
variable is set tonull
.Need to keep debugging...
Is this the same for Macos ?
from desktop-wallet.
Is this the same for Macos ?
No. Everything works fine there.
from desktop-wallet.
It turns out that this is not a bug. This is the expected behavior on Windows. Here is an example with another popular electron app (Visual Studio Code). As you can see in the demo, double-clicking the executable opens a new window, exactly as it happens with our wallet.
Kapture.2021-12-21.at.15.36.24.mp4
from desktop-wallet.
However, if an account has already been created, the second window should display the Login page, not the new wallet creation/import page.
from desktop-wallet.
For the record, here's a demo of the problem:
Kapture.2021-12-21.at.15.48.54.mp4
from desktop-wallet.
Related Issues (20)
- v2.1.1 crashes on Ubuntu HOT 1
- Blank interface after the wallet update HOT 3
- [To reproduce] Infinite token list loading HOT 1
- Show the transaction hash in the transaction modal
- Update default localhost settings to match those of alephium-stack
- Total wallet worth growth percentage is misleading compared to chart
- Update alephium services endpoints
- appimaged removes %U from Exec key in .desktop file. HOT 2
- Show address derivation path HOT 1
- Auto-update system doesn't work HOT 1
- 1D chart isn't displaying anything HOT 4
- Multiple dapp connections HOT 2
- Dapp connection loss when changing webpage HOT 2
- Wallet Error. Please, help me. What to do? HOT 2
- Cannot send tokens out of wallet. HOT 1
- spot rate time frame selector has no effect HOT 1
- Refresh rate for incoming transactions is too slow HOT 1
- Wallet is all white HOT 3
- Connection to Ayin Swap
- hello HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from desktop-wallet.