[TIMOB-25072] Windows: Liveview not working for windows application
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2019-03-18T02:26:01.000+0000 |
Affected Version/s | Release 8.0.0 |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Neeraj Mishra |
Assignee | Kota Iguchi |
Created | 2017-08-08T00:00:18.000+0000 |
Updated | 2019-08-07T23:46:32.000+0000 |
Description
Problem Description:
When we run windows application in LiveView, the application shows the splash screen and then crashes with no error log.Steps to Reproduce:
Run the attached project in LiveView -ti build -p windows -T ws-local --liveview
Actual Result:
App crashes without logging anything on Console.Expected Result:
App should continue working on LiveView mode wiothout crashing.Attachments
File | Date | Size |
---|---|---|
index.js | 2017-08-07T23:57:47.000+0000 | 63 |
index.tss | 2017-08-07T23:58:10.000+0000 | 155 |
index.xml | 2017-08-07T23:58:25.000+0000 | 114 |
log.txt | 2017-08-08T00:02:24.000+0000 | 105298 |
LogsOCT.txt | 2017-10-25T21:04:18.000+0000 | 342396 |
tiapp.xml | 2017-08-07T23:59:40.000+0000 | 2022 |
TiinfoOCT.txt | 2017-10-25T21:04:18.000+0000 | 8334 |
I am suspecting that this has to be something to with TIMOB-24893. In short, Titanium's network operation on Windows Store has to be done with async way but LiveView does not implement it like that, it waits for the network reply in
while
loop and it's blocking the network operations. I am thinking that waiting for server reply inwhile
loop in LiveView is a bad idea and we need to consider implement it based on async callback.https://github.com/appcelerator/liveview/pull/106 https://github.com/appcelerator/titanium_mobile_windows/pull/1075
Fixed in liveview@1.2.1.
That's right. It will be part of the studio 4.10.0. [~fmiao] [~nmishra]
[~fmiao] Customer is reporting that they are getting continuous crashes with LiveView on 1.2.1 on Windows. [^TiinfoOCT.txt] [^LogsOCT.txt]
[~fmiao]is there any update on this?
[~fmiao][~kiguchi] I have a customer who cannot use liveview on windows projects and just verified that it is not working on our end. Can we please reopen this ticket?
Re-opening, [~vvazquezmontero] Can you provide details about the errors? Also please refer to [troubleshooting section in the doc](http://docs.appcelerator.com/platform/latest/#!/guide/LiveView-section-src-43298669_LiveView-ConfiguringLiveView).
I uploaded their ti info and logs to the ticket from October and they currently have CLI 5.0.14 and the LiveView is not working in CLI app crashes right after it launches
Titanium SDK 7.0.0 beta released recently. Would you give this a try? [Beta Release of Titanium SDK 7.0.0 (includes Hyperloop 3.0.0) & CLI 7.0.0](https://www.appcelerator.com/blog/2017/11/beta-release-of-titanium-sdk-7-0-0-includes-hyperloop-3-0-0-cli-7-0-0/)
Customer updated: I check with SDK 7.0.0 RC and it seems to be working for a newly created application. when an existing application is run with live view, app crashes right after launch. I'm testing with CLI.
Thanks for the info. Hmm for me liveview works on an exiting app too. For me following code worked:
I would wonder if old build cache is remaining, or old liveview being used. Which version of liveview do you use? For me it is
1.2.0
You might want to update Appc Studio too in order to update liveview if that's the case.
[~mrahman] Thanks for the info, which version of liveview did you use? (
liveview --version
) Do you still get the error even on Titanium Android too?Hello, Is there any update on this issue? The customer is using LiveView version 1.2.1 and LiveView is not launching. Here is the Customers latest log:
I can see that IP address that LiveView is using is not configured (defaults to 0.0.0.0). Would you explicitly specify your ip address? Check out http://docs.appcelerator.com/platform/latest/#!/guide/LiveView-section-src-43298669_LiveView-ConfiguringLiveView if you're using Studio, or pass in
--liveview-ip <your_ip_addr>
if using CLI. If you are uncertain where to connect, following might help to know your network interfaces.[~kiguchi] Propelics tested with setting up their IP address and are still not seeing LiveView launch at all. Do we have any other suggestions for this?
I am still unable to reproduce this particular issue, but I found different potential issue around networking codes that causes app crash without any error log, which looks similar to this LiveView issue. I started looking into it.
Status Update: I'm pushing a new PR: https://github.com/appcelerator/titanium_mobile_windows/pull/1173 which potentially fix the crash issue in liveview. I'll let you guys know when it's merged so that you can try the nightly build out.
[~kiguchi] Thank you
[~vvazquezmontero] Would you try our nightly build
7.1.0.v20180223174212
? It should contain potential fix for the crash issue. It may be logging error messages when something wrong happens on liveview instead.[~vvazquezmontero] Would you try our 7.1.0.RC to see how liveview works for you? It should have included a potential fix for the crash issue around liveview.
Closing, I believe this has been addressed with Titanium SDK 7.1.1.GA and [Hyperloop 3.0.5](https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v3.0.5). Feel free to re-open if that's not the case.
[~kiguchi] Using 7.2.0.GA and the Hyperloop build from Hyperloop 3.0.5 (https://github.com/appcelerator-modules/hyperloop-builds/releases/tag/v3.0.5) the application just closes when trying to run and the console keeps outputting.
I also see:
[~smohammed] the
Address in use, retrying...
will be because there is a server running, liveview can be very iffy on Windows when you kill a build process and the server can be left lying around sometimes (TIMOB-25821). You can try killing all running node processes usingtaskkill /im node.exe /f
. The second error might be related to the first[~eharris] After killing all node process i no longer get the
Address in use, retrying...
message but I still get:[~smohammed] The
localStrings
error message sounds familiar to me...I found it once happened on an old liveview (TISTUD-7747) Maybe it could happen on old Appcelerator Studio? I'm using Appcelerator Studio5.0.0.201712081732
andliveview --version
prints1.2.0
for me.I'm trying to remember that one, if I remember right if the app cannot load the file from the liveview server it will try and load it as a native module which fails with that error. I _think_ that the liveview app may not be able to connect to the server, on Windows you may need to [configure the ip](https://docs.appcelerator.com/platform/latest/#!/guide/LiveView-section-src-43298669_LiveView-ConfiguringLiveView), I can't remember what the right settings are though :/
[~kiguchi] I'm currently using Appc studio version
5.1.0.201806130735
(RC- Candidate) and according to Appc studio when running an application the version is:As of right now the application just launches and then closes without showing an error on the emulators same is happening on the windows device. [~eharris] When configuring the IP for windows - Android devices. I use the
File Server
andEvent Server
ports mentioned in preferences with the ipv4 address from myEthernet adapter Ethernet
and this works. But if I remember correctly this should also work for Windows devices?[~smohammed] Just to be clear, do you mean you tested it on emulator and windows 10 mobile device? Did you test it on Windows desktop (ws-local)? If not, would you try it on Windows desktop?
I was able to reproduce this on my Windows 10 mobile device. So like Ewan described it happens when Windows 10 mobile device can't connect to the liveview server and it worked for me when I specify correct host ip address by using
--liveview-ip xx.xx.xx.xx
. {quote}When configuring the IP for windows - Android devices. I use the File Server and Event Server ports mentioned in preferences with the ipv4 address from my Ethernet adapter Ethernet and this works. But if I remember correctly this should also work for Windows devices? {quote} For me my PC has several interfaces forEthernet adapter vEthernet
and I chose the same network that Windows 10 mobile device is using. For the emulators I would guess we want to choose the interface named "Windows Emulator" or something. I hope this helps.[~kiguchi], Still no luck getting LiveView to work (ws-local, windows emulators, windows devices) even with trying a range of ip address (either from
ipconfig
or by getting the address from the emulator it self). Depending on which address I use the application either launches and closes or the following error is shown:*Test Environment*
[~kiguchi] I am also experiencing issues with liveview on windows, with the error Samir has seen in the past and this error below on SDK;
8.0.0.v20190129200738
{noformat} [LiveView] { Error: read ECONNRESET at TCP.onread (net.js:622:25) --------------------------------------------- at _destroy (internal/streams/destroy.js:34:15) at Socket._destroy (net.js:568:3) at Socket.destroy (internal/streams/destroy.js:32:8) at TCP.onread (net.js:622:17) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' } {noformat}[~jlongton] For me LiveView did not work at all for the first time & rebooting my PC makes LiveView work. I'm not quite sure what's happening there but probably relates to TIMOB-26725? Then LiveView works but as soon as I exit the app I got similar error:
[~jlongton] For me I saw error messages that only happens at the end of applicaitoin exit like I stated before. I'm trying to narrow down the issue, would you give us more details? Which error do you see?
LiveView does not work at all, or it causes application shutdown at startup
LiveView launches but causes error at reloading app (Classic? Alloy?)
LiveView works but causes error at application exit
For me only 3) happens locally. I created TIMOB-26796 to track down the issue.Closing this as "Needs more info" for now. Feel free to create new ticket if this still happens & then reproducible test case would be much appreciated.