PgAdmin sometimes crash when clicking SQL query button - postgresql

I know this question may be seen as a duplicate with this one. I even have almost the same configuration (PostgreSQL 9.1.3, pgAdmin III 1.14.3, 32 bit Windows). What is the difference and the reason I ask a new question is that my PgAdmin doesn't crash always (just mostly) and that the cause of the problem is different - in linked question the problem was with missing adminpack, but I have adminpack installed and it works well, so the answer for linked question doesn't work for me.
Do you have any ideas where the problem could be?
EDIT: PgAdmin doesn't crash at other occasions (well, unless I do someting that obviously deserves a crash), just while trying to open SQL query window. It's worse and worse as time goes on, now it's almost "always". The problem is not "connection specific" - frequence of crashing is the same for different server connections.
EDIT2: I reinstalled PgAdmin and nothing have changed. I'm starting to suspect PostgreSQL 9.1.3 or even PostGIS 2.0.1 of the problem.

Goto run and type %appdata% and go inside postgresql folder.
rename or delete pgadmin_histoqueries.xml file.
try opening the SQL query editor again.
Good luck!

PgAdmin crashes on me all of the time, but you eventually learn to be gentle with it.
Particularly, if it is waiting for a response from the PostgreSQL server, the window may freeze up until a reply is returned and parsed. When this happens, do not close the window, just wait.
Also, if you attempt to edit two different objects on the same parent, save one and click save on the other, this crashes the program.
My advice would be to only do one thing at a time, be patient, and don't be in a hurry to kill the process when it freezes up.

There can be a great many different possible reasons for crashes. Some of them have been fixed in the latest version 1.16.1, release just last week.
You could try the new version and see if that fixes your problem.

Pgadmin3 was really unstable after installation on my ubuntu 12.04 LTS. It either freezes or crashes even while doing very basic things like looking data in a table or list tables in a schema etc., I almost gave up and started using the command line psql and luckily stumbled on this blog which recommended to remove the pgadmin3 history file to solve the freezes and crashes. It worked for me.

Related

Visual Studio Code keeps crashing while working

My visual studio code seems fine and all of the sudden boom its crashed. Searched google for the error code No solution found. Any help would be appreciated.
error code = -536870904
Whenever anything stops working for no apparent reason then think:
Did it work before?
No, it is new or it has not worked yet.
Check your download, ensure it is compatible with your operating system and other running programs.
Yes, it used to work, but now it doesn't.
Look at the next step
Did you recently update the program, your operating system or any other programs?
Yes, I updated something.
Try rolling back your updates to see if it works again. New versions of software tend to be more error prone than the older, established versions.
No, I don't think I changed anything.
Either you are unaware of changes made to your system or some subscription has ran out. At this phase, the best option is to use common sense or uninstall and reinstall.
Another issue that you might be having is if you're running too many programs at once and your computer is force closing programs to protect itself. Try monitoring your Task Manager you may see a spike right before the crash. Also, make sure the crash isn't caused because of trying to run code (especially with code that has infinite loops)

Persistant "Error reading from database" error

I'm new to Moodle 3.7!
I was trying to get it installed in the AMP stack that already comes with the Mac (except for the MySQL 8.0.12 which I installed separately). It all went okay so far, except for a few Issues I stumbled upon and got them fixed until I face this persistent "Error reading from database" error at the end of the installation process. If I'm not mistaken, I'm supposed to be greeted with my first admin screen to change my password and whatnot.
I've searched for an entire day so far only to find my efforts were in vain. I suspect it is some issue emerging from "dml_read_exception".
Thank you in advance for your anticipated support.
After hours of research and digging into the code, I realized that I had erased the default prefix for database set by moodle, "mdl_". Apparently, this is important.
I'm really not very well versed with databases so not very good at its terminologies.
It would be appreciative if anyone explains how it works and why it affected my installation process. Thank you.

How to force Cloud SQL restart

I've seen variants of this question around, but I'm looking for a definitive answer if anyone has one...
We are running a Cloud SQL Postgres instance, and are stuck on restarting the DB after having an export crash out with an unspecified error.
For several hours now our DB has been out of action saying it's restarting.
The options to export, restart, all of that good stuff, are greyed out and unavailable.
There doesn't seem to be a way to force a restart either through the console, or via gcloud command.
Most of the replies I've seen to this question seem to end up with the poster being helped out by Google support. Don't get me wrong, I'd very much appreciate that, but I'd also like to know if there's a way of doing this myself?
Any help greatly appreciated.
Currently, the 'force restart' option is not available for 'PostgreSQL' instance.
There may be several reasons behind the 'stuck' stage of an SQL instance. Not every time, 'force restart' option wouldn't resolves the root/actual cause.
However, if you still think this option needs to be included in the 'PostgreSQL' instance, I strongly recommend opening a 'Feature Request' through the issue tracker. While opening the 'Feature Request', try to include a bit more details about your use case scenario(with or without an example) as well.

Can't find any log file explaining why Eclipse closes/crashes

After last Ubuntu 14.04 kernel update (current one: 4.4.0-36-generic) when I open Eclipse (Luna) in a matter of few seconds it closes or freezes and then closes (I can be simply editing a comment, or even stop typing for some seconds and then it happens, so I think it can't be related to the code itself).
I personally prefer when it freezes first, so it gives you some seconds to mentally prepare of what is about to happen with your last-hour work.
No clue on system.log or /.../my_workspace/.metadata/.log of what is happening.
Where could I look to try to understand what is happening?
Is it possible that Eclipse closes without leaving any clue/crash-report of why is it doing that?
After trying a lot of possible solutions because Eclipse was crashing every 10 minutes I've found this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=465693
According to this bug report it is not an Eclipse problem but an Eclipse-JRE relationship problem.
Since I've modified several lines in eclipse.ini I cannot be sure about the solution, but it seems it was adding this line on it:
-XX:-UseLoopPredicate
I've been without crashes for more than 1 hour so far. However I'll wait at least one or two days before assuming this solution really works.
EDIT/UPDATE: Confirmed; it works like a charm.
Whenever eclipse crashes you will get hs_err_pid4612.log this kind of file
inside eclipse folder.
For fixing this issue :
Add this to eclipse.ini file:
-Dorg.eclipse.swt.browser.DefaultType=mozilla

OS Booting Issue

Because my work will get lighter for the next month or so, I decided to mess around with OS's, just to see how they work. I found this website, and I'm trying to run the code he provided. I am following the instructions exactly (to the best of my ability), but when I go to try booting with QEMU, I get this text:
SeaBios (version-blahblah)
Booting from Hard Disk...
Boot failed: could not read the boot disk.
Booting from Floppy...
And it never actually boots. I am relatively new to Ubuntu, and hoping that somebody would be able to point me towards where I made a mistake. I hope this is enough information to diagnose my error, and thanks in advance!
EDIT: Alright, I tried another tutorial which took me through very similar steps (but with slightly different code), and I still had the same issue. I also booted MikeOS from the floppy image it comes with, and it worked fine.
EDIT 2: Aaaaah! I just realized that when I pressed Ctrl+C, the text that was supposed to appear appeared for just a moment, then went away, along with QEMU. What can I do to make the text appear sooner? I've tried moving the infinite loop to after the display command, but to no avail.
I want to start by saying that I didn't read the entire page you provided (as I don't have enough time). However, the error that you cannot boot from HDD, regardless of the OS, usually (always in my previous experiences) means that either the MBA (Master Boot Record) is messed up/incorrect or you don't have a partition with a boot flag on it.
When I have some time I'll look deeper into that page and see if i can find exactly what the problem could be.
Do you have the bytes 0x55, 0xAA at offset 510 of your MBR?