Inhaltsverzeichnis 1 Introduction... 2 2 Environment... 3 2.1 New installed files... 3 2.2 After installing the updates (= base for my test)... 3 2.3 First start VS after installation... 4 3 Summary - (my) Conclusion... 5 4 Findings... 6 4.1 Problem object xx unknown... 6 4.1.1 ios (Emulator)... 6 4.1.2 WP (Device)... 7 4.1.3 WP (Emulator)... 7 4.1.4 Android (Device)... 9 4.1.5 Conclusion Problem object xx unknown... 9 4.2 Workaround for problem Port is already in use (WP)... 10 4.3 Problem debugging extremely slow with android... 12 4.3.1 Conclusion debugging extremely slow with android... 12 4.4 Problem VS has to be restarted after debugging (ConvertPdbToMdbTask-Errormessage)... 12 4.4.1 Conclusion (ConvertPdbToMdbTask error message)... 12 4.5 Problem debugging to iphone 5 device don t work... 13 4.5.1 Re-Test... 13 4.5.2 Try to find out the reason... 14 4.5.3 Conclusion Problem debugging to iphone 5 device don t work... 17 4.6 Problem strange behavior with break-points... 17 4.7 Further (general) Problems... 18 4.7.1 Problem Error-Messages on MAC to the -Certificate... 18 4.8 Problem is not reachable for check updates... 18 M:\Allgemeines_MATRIX\Internet_Strategie\Mobile_Entwicklung\\Test_Integations_Software_2015_05_21\Test Integrati on_sw_v_3_11_576.docx MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 1 / 18
1 Introduction Since months now, there are huge problems with the -Integration software and Visual Studio, like: Visual Studio has to be closed and restart after a debug-session Objects are unknown in debugger and can t be inspected although they exist (code run s) App can t be debugged on iphone-device (app is deployed but then cannot be started for debugging on device) Strange behavior with breakpoints (don t stop or stop but at false breakpoint) Extremely slow especially on Android (first breakpoint is reached in VS in normal time, but then a spinning wheel is showed for minutes until VS can be served) Problems with Windows-Emulator (don t start - Port is in use from another application Error-Messages on MAC to the -Certificate and so on Strange wise the behavior is not the same every day. One day, an app can be debugged in ios- Emulator only one time until the error message to ConvertPdbToMdbTask (cannot access as another process has the file in use): occurs, sometime the app can be debugged e.g. 4 times until the error is shown and VS has to be restarted. The same is true for the other problems. At 20.05.2015, Ian Ceicys ( -Ian ) has asked me, if I would try the newest pre-alpha - releases (as he know, that I have massive problems) and give him some feedback. As I think, it can t become worse as it is for me, I have invested the time and have done the test now (note: I don t have installed every new release since a few weeks now). As I think, my findings may also be interesting for other users, I have wrote this document, sent it to Ian and also post a Link in the Forum. Notes: I think, the problems depends on various things (including OS, VS-Version, etc.) so my findings are for my environment and can be false for your environment. MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 2 / 18
2 Environment 2.1 New installed files 1 Ian have sent me download-links to: monotouch-8.10.1.59.pkg ( 1 ) and.visualstudio_3.11.576.msi ( 2 ) 2 I have downloaded both on my windows-machine: I then have copied the.pkg on a network-share and from the network-share to the local-drive of the MAC (as I was not able to install it from the network-drive) Then I have unpaired the BuildHost on MAC, closed XS, XCode and BuildHost on the MAC and run the.pkg in the MAC After that, I have rebooted the MAC Then I have closed VS, run the.msi on my Windows machine and rebooted also the windows machine After all, I have paired the Mac to the Windows machine again and started the test 2.2 After installing the updates (= base for my test) VS2013 - Update 2 with: Integration: 3.11.576.0.Android: 5.1.2.0.iOS: 8.10.1.0 Mac with: Studio: 5.7.1 (Build 17): XCode; 6.1 (6A1052d.iOS: 8.10.1.59 Build Host 3.11.0.577:.Android: 4.20.0.28 RunTime Mono 3.12.0 MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 3 / 18
2.3 First start VS after installation 1 2 After the first start, I was asked, if I want to enable automatic error-reporting to ( 1 ), what I have done, as I have seen, that there is an new checkbox in the VS-option-settings to ( 2 ) where I can disable the automatic feedback, if I want. Note: I don t know since which version this is included as I have skipped some versions MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 4 / 18
3 Summary - (my) Conclusion By my short test, it seems (not sure right now!) as: The problem with error message ConvertPdbToMdbTask is in use by another process (workaround was to restart VS) has gone or at least has become much better The extremely slow debugging in Android (VS shows spinning wheel for minutes after the first break-point is reached) has gone or at least has become much better I further have found a workaround for the problem port is already in use with the WP-Emulator while I have investigated the new versions (My) other problems are the same: Debug to ios-device (iphone and ipad) is not possible (while ios Emulator still works) Some objects are still unknow in debugger, while they exists -Update service is not reachable sometimes If the following issues still exists, I don t know (as I don t was able to test it): Strange behavior with break-points (especially in Async functions) Problems with the certificate on the MAC So - although the old problems still are there, the new version is an improvement for me. You will find all the details in the chapter Findings. MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 5 / 18
4 Findings 4.1 Problem object xx unknown Since a few versions, I am not able to see (inspect) some objects in debugger as VS says, that they are unknow. As I have started developing with (August 2014), I don t had this problems. Later the problem have started with ios and Android and since a few versions, I also have it in WP. 4.1.1 ios (Emulator) 1 3 2 4 In my App.cs, I have set a breakpoint where I overtake the properties from the Application object ( 1 ) The code ( 1 ) works, but I can t inspect the XF-Variables ( 3 ) and ( 4 ) whereby I can see and inspect my own variables ( 4 ) MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 6 / 18
4.1.2 WP (Device) Same as in ios-emulator 4.1.3 WP (Emulator) First try: Since weeks I am not able to use the WP-Emulator. Every time I start it, it shows the errormessage that the communication-port is already in use of another application ( 1 ) 1 I then have searched the internet, checked all suggestions (what have cost a few hours) to find out a workaround (but not a solution) See also chapter Workaround for problem Port is already in use (WP) MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 7 / 18
WP-Emulator (after doing the workaround): Same as in ios-emulator MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 8 / 18
4.1.4 Android (Device) First and second try: Details: After rebuild the Android-project, I was able to debug to the Android-device: Same as in ios-emulator 4.1.5 Conclusion Problem object xx unknown Same as before Unfortunately, nothing has changed with the update. MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 9 / 18
4.2 Workaround for problem Port is already in use (WP) Since weeks I am not able to use the WP-Emulator. Every time I start it, it shows the errormessage that the communication-port is already in use of another application ( 1 ) 1 I then have searched the internet, checked all suggestions (what have cost a few hours) to find out a workaround (but not a solution) MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 10 / 18
As I wrote, I have tried various solutions : delete some files check ( 2 ), stop ( 3 ) and restart ( 4 ) the virtual machine to the WP-Emulator 2 3 4 where, b.t.w. the name has changed from vmm to vmms (in the (old) messages I found, the mentioned name was vmm) Shut down process for process in Task Manager to find out which process is capturing the WP Emulator-port (I was not able to find out which port is used b.t.w) All without luck. The only workaround I found (that works for me) is: Every time, I want to debug to the WP emulator, I first have to deploy the app to the emulator ( 1 ) 1 After that, I am able to debug one time to the emulator So.. I always have first to deploy and then to debug to the emulator Update: later in the test, I have tried to directly debug to the WP-Emulator and it have (strange wise) also worked without to deploy before (so maybe this has to be done only one time ) So.. it seems as this is an old problem to the WP Emulator, but I don t had this problems as I have started with XF. In the meantime I have installed the Android Player (don t use it, but have it installed), which installs various other software-peace s including another VM (I think it s from Oracle). maybe the problems came from this, maybe not MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 11 / 18
4.3 Problem debugging extremely slow with android As I wrote in the Introduction, the debugging in Android was incredible slow: If I have set a breakpoint (in app.cs), the break-point was reached in normal time, then a spinning wheel was showed for minutes until VS was servable Like many other issues, strange wise the behavior was not the same every day 4.3.1 Conclusion debugging extremely slow with android Checked with the new version: Compile, remove old version and store new version to the device (Samsung Tablet SM 900) takes about (long) 55 Seconds This is a long (but acceptable) time and has (felt) not changed The break-point is reached in normal time VS is now servable immediately So this seems to be fixed But as I wrote, the behavior is not every day the same the time will show, if really is fixed 4.4 Problem VS has to be restarted after debugging (ConvertPdbToMdbTask-Errormessage) As I wrote in the Introduction, I had since a long time the problem, that an error message to ConvertPdbToMdbTask (access not possible as it is in use of another process). Sometimes I had this problem immediately (after first debug session after boot the windows machine and start VS), sometimes the problem came after a time working I then had to close and restart VS to be able to debug further one time 4.4.1 Conclusion (ConvertPdbToMdbTask error message) I have tried to provocate the problem by doing a stress-test : Debug to ios-simulator a few times, then to Android-Device then to WP-Device, then to ios-simulator, and so on I was not able to provocate it So this seems to be fixed or at least much better But as I wrote, the behavior is not every day the same the time will show, if really is fixed MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 12 / 18
4.5 Problem debugging to iphone 5 device don t work As I wrote in the Introduction, I was not able to debug to/on my iphone 5 device (while the Emulator has worked). 4.5.1 Re-Test 1 3 2 If I debug to my iphone 5: The message Launching Application for debugging ( 1 ) is showed with a brown background (like it normally should be) After a while, the background-color change ( 2 ) and the error message ( 3 ) is showed ch Error-message in plain text (in German): Fehler 105 error MT1007: Failed to launch the application 'com.yourcompany.matrixguide' on the device 'iphone von Fredy Wenger': Look for earlier warnings returned: 0x454. You can still launch the application manually by tapping on it..ios Extension 0 0 The error-message suggest in my understanding, that I should be able to debug anyway, if I start the app on the device manually I was not able to do it.. MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 13 / 18
4.5.2 Try to find out the reason Note: If you don t know this function already, it may be useful for you anyway Some time ago, I have noted (randomly) that under Help ( 1 ) - ( 2 ) ther is an option Zip Logs ( 3 ) where I (you) can export some log-files to / for in a.zip-file ( 4 ) 1 2 3 4 5 I have done this and tried to check it out (see next page) MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 14 / 18
6 7 8 9 10 11 12 I have store the.zip-file in c:\temp\ ( 6 ), opened the.zip-file and sort it to datetime ( 7 ) Then, I have double-clicked the latest WCF Trace File ( 8 ), set a filter to Error or higher ( 9 ) and double-clicked the Item ( 10 ) Then I have tried to find the correct entry to the issue ( 11 ) and was able to find it ( 12 ) Plain-Text: Build server returned an Error. warning MT1003: Could not kill the application 'com.yourcompany.matrixguide'. You may have to kill the application manually. warning MT1108: Could not find developer tools for this 8.3 (12F70) device. Please ensure you are using a compatible Xcode version and then connect this device to Xcode to install the development support files. error MT1007: Failed to launch the application 'com.yourcompany.matrixguide' on the device 'iphone von Fredy Wenger': Look for earlier warnings returned: 0x454. You can still launch the application manually by tapping on it. Please ensure your device is connected... Connected to: iphone von Fredy Wenger MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 15 / 18
According to the (bold) error message I tried to check, if a new XCode-Update is available but don t find any option Search for updates or something similar in Code in the MAC. I then have found how to update XCode in StackOverflow: Done and found no update Then have noted, that there is an error-message to Android in the same second as the error message is to the ios-deploy: 12 Details: 13 Plain text: MonoTouchDebuggerSession Mono.Debugging.Soft.ConnectionException: Could not connect to the debugger. ---> System.IO.IOException: DWP Handshake failed. Server stack trace: bei Mono.Debugger.Soft.Connection.Connect() bei Mono.Debugger.Soft.VirtualMachine.connect() bei Mono.Debugger.Soft.VirtualMachineManager.Connect(Connection transport, StreamReader standardoutput, StreamReader standarderror) bei Mono.Debugger.Soft.VirtualMachineManager.ConnectInternal(Socket dbg_sock, Socket con_sock, IPEndPoint dbg_ep, IPEndPoint con_ep) MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 16 / 18
bei System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outargs) bei System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replysink) Exception rethrown at [0]: bei System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqmsg, Boolean bproxycase) bei System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgdata) bei Mono.Debugger.Soft.VirtualMachineManager.ConnectCallback.EndInvoke(IAsyncResult result) bei Mono.Debugger.Soft.VirtualMachineManager.EndConnect(IAsyncResult asyncresult) bei Mono.Debugging.Soft.SoftDebuggerSession.<>c DisplayClass9.<StartConnecting>b 8(IAsyncRes ult ar) --- Ende der internen Ausnahmestapelüberwachung --- So.. I think the error-messages are related I have sent this problem already to and also mentioned it on a thread posting in February 2015 here: http://forums.xamarin.com/discussion/comment/106850/#comment_106850 Comment (Brendan) Looks interesting I will fill a bug He then has filled a bug here: https://bugzilla.xamarin.com/show_bug.cgi?id=27776 Actual state in Bugzilla is still New 4.5.3 Conclusion Problem debugging to iphone 5 device don t work Bug still exists I have investigated it already in February 2015, a bug is filled, nothing heard about The same is true for my ipad So I m not able to debug in my ios-devices (iphone and ipad) So... please check it out and solve it! 4.6 Problem strange behavior with break-points As I wrote in the Introduction, I have noted some strange behaviors with break-points (especially in async functions). Unfortunately, I don t had the time to check this out with the new version yet. MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 17 / 18
4.7 Further (general) Problems 4.7.1 Problem Error-Messages on MAC to the -Certificate Since some time ago I have the problem, that Studio on the Mac shows error-messages to a -Certificate (unfortunately I don t have a Screenshot from). If the error message is showed, the messagebox has to be confirmed (felt) 30-40 times, before XS on the MAC becomes servable again. Don t had the error message since the update but that does not means, that the issue is gone. 4.8 Problem is not reachable for check updates Often (right now), the Update-server is not reachable ( 1 ), although the Internet connection works ( 2 ) 2 1 MATRIX Solutions AG Autor: Fredy Wenger Stand vom 21.05.15 Seite 18 / 18