Re: [Qgis-user] Qgis settings corrupted after crash.
Hi Jürgen, After a lot of testing, we were able to reproduce the error regularly and we found (drum roll) that the culprit was the network, specifically Samba Oplocks, which was doing internal file caching. Since our users profile directories were organized so that the path to qgis2.ini was the same for all users (even though it was pointing to a different file for each user), Samba was letting QGIS read from the cached copy of the file if the file was locked, and that could have been last cached from any user. Moral of the story- either turn oplocks off on a networked profile directory or make sure that each user’s path to the ini or any files on that directory look different. If we had used the username to build the path, we probably would have been fine. Ta Da! (That wasn’t at all fun though.) Thanks for the help, Heather Von: Jürgen E. Fischer [via OSGeo.org] [mailto:ml-node+s1560n5189874...@n6.nabble.com] Gesendet: Mittwoch, 25. Februar 2015 10:15 An: Hillers Heather Betreff: Re: Qgis settings corrupted after crash. Hi Heather, On Wed, 25. Feb 2015 at 00:39:21 -0800, Heather Hillers wrote: We call our qgis like this in the .bat: start QGIS /B %OSGEO4W_ROOT%\bin\qgis-bin.exe --configpath U:/qgis %* Ok, that also moves the configuration from the registry to ini files. Did you verify that U:/qgis was still pointing at the right directory when it happend? I suspect that it wasn't and was pointing to some other users configuration - but that hard to tell. What else does restarting qgis involve in your setup? Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode ___ Qgis-user mailing list [hidden email]/user/SendEmail.jtp?type=nodenode=5189874i=0 http://lists.osgeo.org/mailman/listinfo/qgis-user [http://osgeo-org.1560.x6.nabble.com/images/icon_attachment.gif]signature.asc (844 bytes) Download Attachmenthttp://osgeo-org.1560.x6.nabble.com/attachment/5189874/0/signature.asc If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.x6.nabble.com/Qgis-settings-corrupted-after-crash-tp5189649p5189874.html To unsubscribe from Qgis settings corrupted after crash., click herehttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5189649code=SGVhdGhlci5IaWxsZXJzQGVyZnR2ZXJiYW5kLmRlfDUxODk2NDl8LTE2NjY0MDg4NTg=. NAMLhttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Qgis-settings-corrupted-after-crash-tp5189649p5191218.html Sent from the Quantum GIS - User mailing list archive at Nabble.com.___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis settings corrupted after crash.
I have a 3rd incident Report, and this time we were able to look more carefully. The user crashed qgis again. He restarted qgis. He was a different user. He did not touch anything. We looked at his U:, and it was indeed pointed to his Directory. His qgis/qgis2.ini had been overwritten by that of the other user. His plugins were still installed, but no longer active. His processing Directory was still there with his logs in it. New Information: 1. The 2 users were logged into .different. machines in the Win Farm at the time of the incident. yes. Each machine has ist own qgis Installation. 2. The user Profile that was read was that of the user on the Network who had last started qgis, we believe in both instances. So, the users see a completely different qgis Installation, a completely different C:\, a completely different u:\ for their Profile. The only Thing that they have in common is their home Directory, I:\ and a shared Directory T:\ As far as we can see, nothing in the Environment points here. We are going to try to provoke the incident again tomorrow. Any ideas for where to look after the incident? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Qgis-settings-corrupted-after-crash-tp5189649p5189957.html Sent from the Quantum GIS - User mailing list archive at Nabble.com. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis settings corrupted after crash.
Hi Jürgen, Restarting Qgis involves the user clicking on QGIS Desktop 2.6 in the start menu, which runs qgis.bat. Standard OSGeo4W setup. My user from the second instance of the error said that when qgis crashed, it closed with a Windows App Crash. He was at the time using one of my plugins, where I build a virtual memory layer with the results of a cx_Oracle query. The query results were huge, resulting in what appeared to be a standard seg fault. The Win Farm environment was functioning fine after the crash. He did restart the Win Farm instance before restarting qgis. In this case, by the time we saw his Desktop, he had restarted qgis again, so we could not verify if U had been pointing to the wrong profile. In the first instance, there was no crash involved. I was showing my colleague how to write a plugin. We both made a plugin with plugin builder, each entering our own names and titles in the metadata. We installed plugins in our respective profile directories. (Again, it is impossible to see or write to another person’s profile.) We then both restarted QGIS. We opened the Plugin Manager. My colleague saw her metadata shown in the plugin manager. I saw !!! my colleagues metadata (author name, title). At this point, we both looked in our plugin metadata in the profile under U. My U:/qgis had my plugin with my metadata.txt in it. She also had her own. But QGIS was showing me that of my colleague. We restarted qgis, and the problem resolved. We were not able to reproduce the problem and hoped it was a fluke. The second instance, which happened yesterday, confirms the problem but we are not any better able to reproduce it. I cannot with 100% certainty say that U for a moment was pointing to the wrong directory and we did not catch it. My System Administrator says that theoretically, technically, it is possible, however, U is used house wide for all of our software profiles (windows, oracle, office). If U was not stable, then we would be seeing many errors. How would I even test that? What if I create a file in my profile with a unique name, and then make a script that runs in the background and checks every 5 seconds to see if it is there? Heather Von: Jürgen E. Fischer [via OSGeo.org] [mailto:ml-node+s1560n5189874...@n6.nabble.com] Gesendet: Mittwoch, 25. Februar 2015 10:15 An: Hillers Heather Betreff: Re: Qgis settings corrupted after crash. Hi Heather, On Wed, 25. Feb 2015 at 00:39:21 -0800, Heather Hillers wrote: We call our qgis like this in the .bat: start QGIS /B %OSGEO4W_ROOT%\bin\qgis-bin.exe --configpath U:/qgis %* Ok, that also moves the configuration from the registry to ini files. Did you verify that U:/qgis was still pointing at the right directory when it happend? I suspect that it wasn't and was pointing to some other users configuration - but that hard to tell. What else does restarting qgis involve in your setup? Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode ___ Qgis-user mailing list [hidden email]/user/SendEmail.jtp?type=nodenode=5189874i=0 http://lists.osgeo.org/mailman/listinfo/qgis-user [http://osgeo-org.1560.x6.nabble.com/images/icon_attachment.gif]signature.asc (844 bytes) Download Attachmenthttp://osgeo-org.1560.x6.nabble.com/attachment/5189874/0/signature.asc If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.x6.nabble.com/Qgis-settings-corrupted-after-crash-tp5189649p5189874.html To unsubscribe from Qgis settings corrupted after crash., click herehttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5189649code=SGVhdGhlci5IaWxsZXJzQGVyZnR2ZXJiYW5kLmRlfDUxODk2NDl8LTE2NjY0MDg4NTg=. NAMLhttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Qgis-settings-corrupted-after-crash-tp5189649p5189897.html Sent from the Quantum GIS - User mailing list archive at Nabble.com.___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis settings corrupted after crash.
We call our qgis like this in the .bat: start QGIS /B %OSGEO4W_ROOT%\bin\qgis-bin.exe --configpath U:/qgis %* -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Qgis-settings-corrupted-after-crash-tp5189649p5189867.html Sent from the Quantum GIS - User mailing list archive at Nabble.com. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis settings corrupted after crash.
Hi Heather, On Wed, 25. Feb 2015 at 00:39:21 -0800, Heather Hillers wrote: We call our qgis like this in the .bat: start QGIS /B %OSGEO4W_ROOT%\bin\qgis-bin.exe --configpath U:/qgis %* Ok, that also moves the configuration from the registry to ini files. Did you verify that U:/qgis was still pointing at the right directory when it happend? I suspect that it wasn't and was pointing to some other users configuration - but that hard to tell. What else does restarting qgis involve in your setup? Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode signature.asc Description: Digital signature ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Qgis settings corrupted after crash.
Hello, We have QGIS 2.6 running on a Windows Farm environment. We are currently testing the installation with a few users to judge stability. We have twice seen the following: 1. Qgis crashes or ends badly for some reason. 2. Qgis is restarted by the user. 3. The user sees the settings from another user. (network settings, database connections, last used projects, everything) We cannot reproduce this error. We can only confirm that on 2 separate occasions in the last 2 months, 2 separate users have seen the error in the presence of reliable witnesses, and that on one occasion it happened in a workshop in which the 2 affected users, of which I was one, were sitting next to each other and could view each other's screens. Our user profiles are on a networked drive K:\qgis, so that we have the same QGIS profile everywhere in the farm. One upshot of this is that from the Windows machine it is not possible to see the profile of another user. How one user's QGIS instance is reading another user's profile is a mystery. Our theory is, that when QGIS crashes, perhaps it tries to restore its state from some ... place, that is central, and not separate to the user, or they are in memory somewhere. And maybe in that way it somehow grabs the in memory or in cache settings from the most recent active user in order to restore the state? Does anyone have an idea what this problem might be, what kind of diagnostic I could run, where I could look for clues? This is clearly going to be really bad if it happens often with all our users on the system. I need a fix badly. Thanks, Hasel Hillers ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Qgis settings corrupted after crash.
Hi Heather, On Tue, 24. Feb 2015 at 13:13:27 +0100, Hillers Heather wrote: Does anyone have an idea what this problem might be, what kind of diagnostic I could run, where I could look for clues? This is clearly going to be really bad if it happens often with all our users on the system. I need a fix badly. Sounds weird. Are you running QGIS with settings in the registry (default) or with --optionspath? I suppose the latter - that one use sees the registry of another sound very unlikely. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode signature.asc Description: Digital signature ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user