QtCreator won't open any project after a crash - qt-creator

After a crash of QtCreator it won't open any project anymore.
If I try to open a project (that worked perfectly well before the crash) the QtCreator seems to ignore me (I tried several ways of opening a project through the QtCreator).
If I open the QtCreator directly via a *.pro file it opens the project file as plain text without any syntax-highlighting.
If I try creating a new project it tells me "No valid kits found". None of the solutions I found to this problem helped me, though.
To fix the problem I've tried:
restarting the Computer ;-)
cloning the auto-detected compiler settings and verified each path
I'm using QtCreator 3.0.0 with MinGW 4.8 32bit based on Qt 5.2.0 (all precompiled)
I would like to avoid a reinstallation of QtCreator, if possible.
Solution:
I fixed the problem by myself - I figured out one of my config files got corrupted; see full answer below.

I tracked the issue down by myself:
In the FAQ I found the entry how to reset all QtCreator settings. After doing this the QtCreator worked again.
I wrote I didn't want to reinstall the QtCreator (because of the settings), so I restored the old config from the bin and tried deleting the corrupted config file only.
When I finally deleted QtProject/qtcreator/mimetypes/modifiedmimetypes.xml QtCreator worked again. I remember messing with the mimetypes prior to the crash, so I guess that's it.

Related

When closing and opening vscode, all extensions need to be downloaded again (after mac migration)

I migrated my Mac to another Mac and after doing so I changed the user directory name. This has already caused many issues in other applications but I haven't been able to solve the code issue.
The problem:
Every time I open a new instance of vscode it opens with no installed extensions at all despite having installed many.
I am not very familiar with Mac yet and I have tried removing the App and redownloading as well as deleting some files from the ~/Library folder (cookies, preferences).
I have found the issue on Github with a workaround at the bottom of the issue:
https://github.com/microsoft/vscode/issues/168579
Basically, every new extension installed correctly but in the extensions.json file the path was wrong. It was looking for the extension in the wrong user directory (the old one before migrating).

Why my pycharm can not debug forever?

My computer version is Win7.
And what ever .py I debug, this pycharm will show me en error like this:
ValueError: bad marshal data (string ref out of range)
So what's wrong with pycharm, I tried to user newest version of pycharm but I helpless, the same error will show again.
I used to reinstall my win7 (becauser I have Shadow Mode software) and it work for a period.
Is there body have a good solution?
I don't think the problem is directly related to the pydev debugger in this case... my bet is that for some reason you're having corrupted .pyc files (don't know why thought).
Try cleaning your .pyc files from your pycharm installation and your own files and run it again (you may try running with pydev which has the same debugger backend if you want to see if you reproduce the issue there).

Aptana crashes on windows 7 until .metadata folder is deleted

I have used Eclipse and Apatana for years on Linux, but have recently switched to Windows 7 in order to be compatible with my business partners. I have installed the 'Aptana Studio 3.4.0 Microsoft Windows, x86' standalone version of Aptana, and after install it runs great until I close it. When I try to re-open it, it hangs ('not responding' message) and I have not found any way to resolve the issue other than deleting the .metadata directory in my aptana workspace, which of course deletes all my project references, deployment settings, and any other tweaks I've made to the app, and setting this back up every time I restart the app is a waste of my time. Can anyone identify the problem? I have a pastebin of my log at:
http://pastebin.com/2J0AWTNR
Any help would be greatly appreciated!
instead of deleting the whole .metadata, you can try to delete the .markers file for any open project:
in this folder:
...\.metadata\.plugins\org.eclipse.core.resources\.projects\[myProject]
Delete (if it exists), then add an empty .metadata folder inside your project directory.
I had the same problem on Windows 7, Aptana hanging for eternity on startup.
Following posts like this one I looked for the .metadata folder inside the project directory but didn't see any there.
I tried creating an empty .metadata folder in the project directory, and Aptana started up.
Have had the same problem and I've reinstalled which makes no difference. So I deleted the .metadata/.plugins/org.eclipse.core.resources/.projects folder and it fixed it and with no settings/data etc loss amazingly :-)
I used this fix at first and then ran into more problems after a while. The sidebars and other objects in the program were not working and as a result the program just stopped responding. I have finally found a fix here http://youtu.be/RYobTLq_hms?list=UUtL_0WLPWmHZE_HcX48F96w and I hope that this helps for all! We can finally get back to work!
I wouldn't call the following a fix, but it helped me so here it goes:
My Aptana didn't start. It would just hang and when you click anywhere in the blank screen Windows would say the program isn't responding...
This is what "fixed" it for me:
Navigate to: C:\Users\YOURNAME\Aptana Studio 3 Workspace\
Create a new dir and move the ".metadata" dir into it.
Start Aptana
Aptana will run now, but all your projects will be gone.
Remove the new ".metadata" directory that Aptana just created at startup.
Move the ".metadata" folder out of the one you just created, back to its
original location.
Now run Aptana again.
This fixed my problem.

not able to open VB project, getting error "C:\windows\system32\mscomctl.ocx" could not be loaded

I have a VB project was able to work without any issues, but now when i open the project i am getting the error with mscomctl.ocx.
I have re-registered the ocx but still am not able to load the project.
How can I fix this problem?
I was having this issue when I open the project on Windows 7 64-bit environment, it works correctly on win XP machine. I did a very simple change in project file earlier it says
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; MSCOMCTL.OCX
I changed 2.1 to 2.0 because I have seen it like that in many forums and it worked like charm.
The updated reference in VBP file is
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
it seems to me your project has lost its reference to the ocx (while it still tries to use some of the controls)
click on 'components' in the 'project' menu in the ide
in the list make sure 'microsoft windows common controls 6.0 (sp6)' is checked ... if it already is, try removing it, close (and save) the project, open the project, and turn it on again
I had the same problem. user1272267 answer worked (thanks), but it bothered me that I didn't understand why, I also wasn't sure if I would end up breaking the project for my colleagues who it worked fine for.
So I did a bit more digging and found that in the registry there was a key; reg hkcr\typelib{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}\2.0 (Note the 2.0)
I changed the 2.0 to 2.1 and hey presto, everything worked fine. I also checked the DLL and it turned out my copy was older than my colleagues copy. I think this may be because when I installed service pack 6 I kept some of the original files when asked since the replacement files were for American english and I had the UK version, but i'm not 100% certain of this
I had a similar problem when my Windows 7 32 bit laptop crashed and the company replaced it with a 64 bit machine... first I tried registering the .ocx using regsvr32 - on the 32 bit machine it would get unloaded from time to time... this did not work at all on the refurbished 64 bit machine...
I tried changing the .vbp file settings as noted in some of the earlier responses without success... I set the .vbp back to 2.0 and later on another issue I was searching the registry and decided to search for mscomctl.ocx and found 3 keys - 2.0, 2.1 and 2.2... since it wasn't working I decided to delete the 2.1 and 2.2 keys and voila! the controls loaded without a problem. Clearly the .vbp and registry have to match.
you can also open the project file (.vbp file) in notepad where you see something like the following :
Type=Exe
Form=frmComFX.frm
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\Windows\SysWOW64\stdole2.tlb#OLE Automation
Object={648A5603-2C6E-101B-82B6-000000000014}#1.1#0; MSCOMM32.OCX
Object={5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0; MSFLXGRD.OCX
Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX
Form=frmSetup.frm
Module=modFX; modFX.bas
IconForm="frmComFX"
Startup="frmComFX"
HelpFile=""
Title="ComFX"
Command32=""
Name="comFX"
the lines that start with 'object-' contain the registry key with which the ocx is registered ... you can now open regedit (start - execute - regedit) and search for this key .. be careful though what you do in regedit, you might screw up your visual basic installation or even your complete windows :)
of course you can also remove visual basic and reinstall it to get the registrations back
I had this same error. These 2 things worked for me:
Start Visual Studio 6 by right-click Run as Admin
or
Disable the UAC prompt.
hope it helps.
Try re-registering MSCOMCTL.OCX:
download the file: http://www.ocxdump.com/ocxfiles/M/MSCOMCTL.OCX
copy it in location c:\windows\system32\
open command prompt and run this:
cd c:\windows\system32
regsvr32 MSCOMCTL.OCX
Than try to run your application again.
Windows 7 64 bit; just installed VS6 and VS6 SP6 (with difficulty)but my project from Win XP gave the "MSCOMCTL.OCX could not be loaded" error.
I found Nathan Hadley's answer gave me the clue and allowed me to open the project....
My userinterface.vbp file for the project (copied from Win XP) had #2.2 next to the MSCOMCTL.OCX reference but my registry class id had only 2.1.
So I changed my userinterface.vbp entry to 2.1 and the project opened ok.
However the next day I ran the VB6 SP6 cumulative update VB60SP6-KB2708437-x86-ENU again (may have not installed properly the first time) and now I have version 2.2 in the registry.
So I changed my userInterface.vbp file back so the OCX reference has #2.2 once more and now the project still opens correctly and all runs ok.

Unable to Activate Windows Store App

I installed a retail version of Windows 8 Pro. I downloaded and installed Visual Studio Express 2012. I asked for and received a developers certificate. Then I tried to create a hello world app.
From there I get a "Unable to Activate Windows Store App" message box when I try to debug the app. Most commentary on the web says delete build directories. This didn't work for me
Does anyone have a solution for how to fix this and debug my app?
This happened to me once too, but the deleting build directories advice fixed it. Specifically, you just need to delete the bin\Debug and bld\Debug folders in your projects. Their contents will be regenerated by Visual Studio when you rebuild. I assume that this is only one project since it's a Hello World app; otherwise I would ask if you deleted build directories from all projects in your solution.
You can also try running "Clean Solution" from the BUILD menu in Visual Studio.
I'm sorry...it's horrible if this is happening on a clean install as you describe.
I ran into the same issue, and tried rebuilding, cleaning, deleting temp files, rebooting the computer, etc... and nothing helped.
Then finally I made a release build then went back to debug. And now it works.
I have no idea what happened, nor if that really helped, but it's worth a try.
For me a RESTART of pc solved this error message.
For me the problem was that I created the app on a TrueCrypt mounted virtual drive and when I moved the project files to a normal drive then everything worked just fine. Weird.
I was getting the exact same error. In my case the culprit was a NuGet package. It had added an app.config file to the project and it was confusing VS. I removed the app.config file and it solved my issue.
I got the solution at Iris Classon's site.
This can be solved by Uninstalling the app from the start screen then again building the app from Visual Studio.
I had a similar problem, and the cause was creating the project on a USB thumb drive. Creating a project on a normal hard drive volume works.
this can happen when the application signing key (.pfx file) is missing.
Try the following:
Open the Package.appxmanifest file in Visual Studio
Go to the register "Packaging"
Select [Choose Certificate…]
Select the test certificate using [Configure Certificate…] [From File…], or create a new one using [Configure Certificate…] [Test Certificate…]
When using a test certificate, ensure that it is in the .gitignore file. There should be an entry like !**\*_TemporaryKey.pfx to include the key in Git.
Note: The certificate for release build should only be available to the build server and not included in Git.
Rebuild the project
This has happened to me in the past and I have always found that deleting the build directories resolves it.
However this time this is not working for me.
I have tried
- Rebooting
- Deleting build directories
- Running Build | Clean Solution in VS
- Renewing Developer Account
The only thing that will work for me is changing my Package name under the Package.appxmanifest
However I am not overly happy with this as a solution. I will keep investigating.
The issue might be caused because NuGet will try to add an app.config with binding redirects to Windows Store apps if it thinks it is needed. However, Windows Store apps don’t need app.config, and will actually fail to start with a very confusing error message if it is present.
And the solution in this case would be to Remove the App.config
This error generally comes when you try to deploy in debug mode.
I would suggest, deploy the app first in release mode and then try in debug mode.
This worked for me.
Making a new certificate works for me. For this, go to Package.manifest->Packaging, and follow the Choose certificate.... Click on Configure certificate and select Create test certificate. Give it a name and press OK.
Increasing the revision number of the package worked for me
Tried so many of the above fixes. Nothing worked (deleting bin, obj dirs, editing the manifest, editing the registry, changing package name, etc, etc.) My Avast antivirus software was running and so I uninstalled it completely. That was it. App now runs fine.
This sort of problems are common with Windows 8 Visual Studio. Such errors encounters when your developer license of Visual Studio has expired so you may want to renew or get a new developer license here's how you get that. How to get a developer license in Windows 8
And similar problem may also encounter with E_Fail issues here's how to solve Unable to activate Windows Store app E_Fail Issue
For me, the fix was a combination of two of these answers -
Renew the developer license (How to get a developer license in Windows 8)
And deleting the build directories (though I deleted more then the screenshot depicted) Delete the Build directories
NuGet will try to add an app.config with binding redirects to Windows Store apps if it thinks it is needed. However, Windows Store apps don’t need app.config, and will actually fail to start with a very confusing error message if it is present.
Solution:
Remove the App.config
and build again
For those who get a similar error but who are searching for a solution while debugging an IOT background app on a local machine specifically - you can find it here.
Using the search term "unable to activate windows store app the activation request failed with error" brought me here.
Because of Two things i resolved this issue.
Basically, we just need to delete the bin\Debug and bld\Debug folders in our projects. Those contents will be regenerated by Visual Studio when you rebuild project.
Just Restart the Visual Studio. And Clean Build and Rebuild the solution and RUN it.
Hope this helps.,
Playing with this issue for 3 days, tried every suggestions, nothing works. Until now!!!
The solution was this for me:
renew developer licence
build and deploy solution in Release mode (after this step it still not worked, but VS installed some packages in rpi)
start VS remote debugger with default account (http://:8080/#Debug%20settings)
configure remote device with Universal authentication mode (VS2017 -> Project settings -> debug -> target device: remote machine, authentication mode: Universal (unencrypted protocol))
...and now I can sleep.
Hope it helps somebody.
This gift was courtesy of Microsoft's automatic updates for VS2015 which was one of the 2 culprits:
KB3022398
KB3165756
It also broke SourceTree and other apps that draw the GUI - making an outline of the app but not drawing the contents.
For me changing the Package Name in Package.appxmanifest fixed the problem
In my case, the C# UWP app had a native library which failed in the application startup code, and called exit(1). The symptoms were identical to those in the question, though. Visual Studio would throw a message:
Unable to activate Windows Store app '88888888-6666-5555-4444-111111111111_abcdefgh!App'. The Acme.exe process started, but the activation request failed with error 'Operation not supported. Unknown error: 0x80040905'.
In addition, there was a message in the UWP app Windows log under Microsoft\Windows\Apps\Microsoft-Windows-TWinUI/Operational: event ID 5961, message:
Activation for 88888888-6666-5555-4444-111111111111_abcdefgh!App failed. Error code: Unknown HResult Error code: 0x80040905. Activation phase: COM App activation
Internally, the C# part would try to construct a native class instance from the App constructor, the native class constructor would encounter an unrecoverable error and bail. From the UWP subsystem standpoint, and from the debugger standpoint, though, this looked as something distinct from the mere programmatic exit. I'll leave this answer here, 'cause I've spent some time chasing various UWP failure scenarios instead of running under a native debugger.
I've replaced the exit() call with throw ref new Exception(E_INVALIDARG). At least this way the error manifests in the managed debugger, and the message is descriptive.
I've been having this problem a lot with a UWP Windows 10 app on Visual Studio 2019...for me the reliable workaround is to bump the Build number in the Package.appxmanifest file (Packaging tab). It's a huge pain...really hope Microsoft will sort this out soon
Any existing error in the code can also cause this issue. Make sure your previous version of the code is working fine. Compare the difference and make sure all looks good.
I was getting this error and nothing else worked so I had to dissect my program. Turns out I referenced a StaticResource in my App.xaml that didn't exist.
Seems like a silly error but you'd also think Visual Studio would pick up on something like that and throw a different error so if nothing else works, double check your application resources.
As suggested by #Iman in a comment, in the UWP project settings, enable "Compile with .NET Native tool chain".
(After trying just about every answer in this question)

Resources