tasmota / tasmotizer

ESP... The time has come to... Tasmotize!
GNU General Public License v3.0
1.37k stars 179 forks source link

Windows 1.1a GUI Quits before flashing #39

Closed richard-scott closed 4 years ago

richard-scott commented 4 years ago

I have tried to use the Windows 1.1a EXE and as soon as I click on the "release" or "development" selectors in the middle the app quits. I want to be able to select from the dropdown the release to install but the app just quits.

I have tried both the x86 one, and the other.

richard-scott commented 4 years ago

Odd, it's working today.... seems to be network related.

To test that theory, I've just disconnected from the Internet, loaded the app and it quit when trying to select a firmware release to install.

richard-scott commented 4 years ago

I get this error in the console from the latest build form the develop branch:

2020-05-05 12_22_20-Window

The only way I've been able to stop it quitting is to do the following:

2020-05-05 12_39_15-Window

golddragon007 commented 4 years ago

It seems for me from the error like the decoder doesn't get JSON in time. With another project I had a problem because they set the timeout for 2 seconds and I've needed appr. 4... maybe similar here too, however for me it's perfectly working the selectors.

richard-scott commented 4 years ago

@golddragon007 yes, I agree the timeout may be too low. To test you could disable Internet access on your computer by switching off WiFi, or disconnecting the network cable. The lack of a JSON response from the Internet isn't handled gracefully.

golddragon007 commented 4 years ago

As I've dug into this now a bit, I just realized, I don't know python well :D. Well, I see there's a lot of places where I can improve this (after now I've flashed 15 devices in a row), just the knowledge missing :(. Besides that, I've fount the location I can't put there anything because the library doesn't support such stuff (like timeout parameter), you need your implementation for that. Soooo... I'm dead. What I've fount it waits around 2 seconds and then it will exit (at least the comment says that).

richard-scott commented 4 years ago

No worries @golddragon007 I'm going to have a look over the weekend. I know Python a bit, so may be able to fix it.

andykams commented 4 years ago

I think I am having a similar issue too . When I select backup firmware and flash the device I get the progress bar stuck on writing done. image

Then errors out: image

If I do not check "Back up original firmware" it completes flashing fine.

golddragon007 commented 4 years ago

Ahh, you get an error message? After how much time? Because I think I've waited for half a min and nothing happened. And every time, when it's in this state and I disconnecting the device, it's crashing the application.

mrekin commented 4 years ago

So the same thing (GUI close) happens when com port is busy by other app\terminal.

andykams commented 4 years ago

It was about 2-3 mins after I get an error. That was 2 out of 5 times and rest I did not get a error.

Mark-Muc commented 4 years ago

same issue here by selecting "development", waiting cursor show up for 2 sec and then it "quits" itself "release" 8.3.1 works as expected

Morphy99 commented 4 years ago

same issue here by selecting "development", waiting cursor show up for 2 sec and then it "quits" itself "release" 8.3.1 works as expected

Have you got a link for 8.3.1 please? I'm trying to use this to backup an ESP8266 and without using ESPTOOL the only way on windowz

richard-scott commented 4 years ago

They are on Github:

https://github.com/arendst/Tasmota/releases/tag/v8.3.1

Morphy99 commented 4 years ago

They are on Github:

https://github.com/arendst/Tasmota/releases/tag/v8.3.1

Sorry, I thought it was an earlier version of Tasmotizer! I'm not backing up tasmota, using it to backup WLED and ESPHome. Guess I'll have to boot into Linux live and use esptool command line to backup the ESP for now until this is fixed.

theetron commented 4 years ago

Same issue here, after selecting release or develop, application crashes. What can be done to fix this?

PreferHardware commented 4 years ago

Same here: open Tasmotizer on Windows and Linux (Mint) and it crashes as soon as Release or Development is selected. On Windows it just closes and on Linux I get:

Traceback (most recent call last): File "tasmotizer.py", line 557, in setBinMode self.processReleaseInfo() File "tasmotizer.py", line 577, in processReleaseInfo reply = json.loads(str(self.release_data, 'utf8')) File "/usr/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Mark-Muc commented 4 years ago

same by me .. now it "chrashes" also selecting release .. I guess the URL's to release and Developemd has changed ..

PreferHardware commented 4 years ago

In https://tasmota.github.io/docs/ and elsewhere the download location for Tasmota binaries is linked to http://thehackbox.org/tasmota/release/. This is no longer accessible. On reflection, I wonder if this is what is causing Tasmotize to fail.

As a workaround, I used the NodeMCU Py-Flasher from https://github.com/marcelstoer/nodemcu-pyflasher/releases and manually downloaded the binary I needed from https://github.com/arendst/Tasmota/releases/tag/v8.4.0. This worked well for me.

NB If you use Py-Flasher, you must select DOUT or it will fail and appear to brick the device.

Jason2866 commented 4 years ago

Can you try latest release version?

PreferHardware commented 4 years ago

Hi Jason, I've just tried 1.1c and it works as designed although I've not checked the version it actually downloads, but since you've changed the source to the OTA repo I'm assuming it is the latest release version. Well done, so quick, thank you. Resolved.

discip commented 4 years ago

@Jason2866 Good evening sir, thank you for the almost immediate response!

BUT unfortunately it is still not working for me. 😩

Every single release beginning with tasmotizer-1.1a.exe is behaving the same when either 'Release' or 'Development' is selected: It just closes. The only working one is the tasmotizer-1.0.exe.

I am on latest Win10 (64bit, if that matters).

regards

PreferHardware commented 4 years ago

1.1c has just worked for me.

discip commented 4 years ago

@PreferHardware Good evening sir, may I please get to know, what you are running?

PreferHardware commented 4 years ago

W10-64. Just checked again: I get the release/development drop-down lists, where 1.1a quit.

discip commented 4 years ago

@PreferHardware Strange! πŸ€” Have you plugged in any 'flash-able' device? I am running it without anything being hooked up.

PreferHardware commented 4 years ago

No, the first time. Yes, the second. It works either way.

https://github.com/tasmota/tasmotizer/releases/download/v.1.1c/tasmotizer-1.1c.exe

discip commented 4 years ago

That leaves me clueless, because there seems to be no way for me to get it to work. I re-downloaded it at least once more and even tried your link, but both ways without any luck. The 1.0 however works as expected.

Jason2866 commented 4 years ago

@discip Have you checked Backup or Erase? Try with uncheck both.

theetron commented 4 years ago

Same issue here, after selecting release or develop, application crashes. What can be done to fix this?

Version 1.1a is working now, and the 1.1c is also working.

discip commented 4 years ago

@Jason2866 I have tried every possible combination with and without a device being plugged in. It just keeps closing. πŸ€·β€β™‚οΈπŸ˜΅

By the way: Backup saves only 1MB. I have used a Shelly2.5 and its backup should be 2MB.

thanks regards

Jason2866 commented 4 years ago

The new version (no release date yet) will have a option to do different backup sizes

discip commented 4 years ago

@Jason2866 Sorry for off topic content. Will it detect the flash size by itself, like "NodeMCU-PyFlasher-4.0" does? If you check Erase before flashing does it erase only 1MB or according to the actual flash size of the attached device?

discip commented 4 years ago

@Jason2866 Now the lastest Version 1.1c works as intended. All I did was executing different flashing software like:

  1. ESP.Easy.Flasher.exe & its updater Update.exe
  2. NodeMCU-PyFlasher-4.0-x64.exe
  3. Tasmota-PyFlasher-1.0.exe

Just in case someone stumbles across the issue I had as well. Maybe somebody is able to figure out, why it suddenly started to work, after I did what is mentioned above. Maybe the Updater.exe did the trick. πŸ€·β€β™‚οΈ

Jason2866 commented 4 years ago

Flash erase does erase the whold flash. It does not matter if it is 1M 2M 4M or 16M

discip commented 4 years ago

@Jason2866

Thank you for you consistency in replying. Please keep it this way. πŸ‘πŸ˜€

I hope yo did not get me wrong, about me, being some kind of taciturn in terms of saying THANK YOU for your effort, while mentioning the issues I had. It was due to the fact that there are so many issues opened and it seemed the developer dropped this project, than, all of a sudden, YOU popped out of nowhere (I did not know until recently, that you were involved in developing this besides @jziolkowski.), so I thought HE (meaning you) might be the one, being able to solve all the grievances, and I jumped just right at you. πŸ˜”

πŸ‘THANK YOU πŸ‘

Jason2866 commented 4 years ago

@jziolkowski did not drop support of his program Tasmotizer. He is working on features requested here. In everyones life are changes... Priorities do change or have to be changed. Keep in mind Tasmota and all around is done in (rare) free time. There will be a new version. It is there when it is done😎

discip commented 4 years ago

No no, please do not get me wrong. 😱 I did not say @jziolkowski dropped this project. But it rather seemed, that this was the fact.

I do appreciate all the people, who participate in opensource and do beautiful things like "Tasmotizer" . And I, of course understand, that people have higher priorities than programming software.

So, I am willing to wait until it is finished.

jziolkowski commented 4 years ago

Thanks for all the kind words ;) I completely agree that the project might have looked as abandoned, but it's really not. As I write this, there are new features being tested (available under 1.1d branch) to be released this week. And indeed @Jason2866 deserves the praise, as his stepping up to fix the OTA server issue gave me the needed kick to get back to Tasmotizer.

discip commented 4 years ago

@jziolkowski Oh no. I am the one, who should thank you, for developing such beautiful piece of software! That's good news! But please do not push yourself and take your time. I am used to go with these sayings: "A good thing takes time!" and "Good things come to those who wait!".