-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when connecting #106
Comments
+1 |
+1 Was working fine until yesterday. I have no idea what changed. |
This problem also occurs for me with version 1.4.4 on OS X 10.11.5 a month after it was first reported. I tried with previous versions and they all behaved in the same way. There are tickets created since this issue was raised, which suggests it still works for some people. Is there something I can do to make it work on my computer? |
For some reason, I launched it now and it works properly. I have a different Mac now, so the problem may be hardware related for some reason? Or related to a corrupted system file that a new Mac would have a clean version of? |
@willmm @RealSkeptic I have no idea what causes this problem as I'm unable to reproduce the crash. Could be related to system files like you said, or configuration of your databases, or something else...If you would like to help, could you allow me to connect to your database? |
Yes. Some more investigation suggests it's something on the computer. I installed it on a different computer and got an error message there when trying to connect to a non-existent Postgres installation. On my own computer it crashes when trying to connect to a non-existent Postgres installation. That suggests it's not the database. Here is the what the system log says when it crashes:
There is nothing in the system log on the computer where it does not crash. Later I will try starting the computer is safe mode to see if it works then. This is an old computer (iMac Early 2008) but I don't see why that would make a difference. |
OK, I have tried it with a new user and with safe boot and with a combination of both. It crashes when I click the connect button in every case. I no longer get the messages in the system log about security when it crashes. The failure in safe boot says it's something in the system, not an add-on I have installed. The failure to get an error message when Postgres is not running suggests it's not a problem in the database. I don't know what you could see by connecting to here, but let me know if you can think of anything. |
@willmm By "non-existent Postgres installation", do you mean the host doesn't exist, or the host exists but no Postgres server is running on that host and port? I tried both cases and PSequel was able to report correct error messages. I'm also using PSequel 1.4.4 on OS X 10.11.5. |
I mean the host exists (localhost) but no Postgres server is running. Last night I reinstalled the operating system and it still does not work. The computer where it doesn't work is running from an external disk because the internal one is faulty. Later this week I intend to install a new internal disk. If the computer still works after that, I'll then try again. |
I tried this again after changing my hard disk. It still does not work. I also tested on another computer and it doesn't work there either. Now I have concluded the problem is related to the hardware or some combination of the way it was compiled and the hardware. Neither of the computers where it does not work will be able to use the next version of the operating system (Sierra). They are an iMac (24-inch, Early 2008) and a Mac mini (Early 2009). The one on which it does work is a Mac mini (Late 2014). All of them are running El Capitan (10.11.5). I will have to use something else to access my database :-( |
Note that the machine for which it failed for me was iMac from 2010, so it's not related to Sierra, though it may well be a hardware issue. |
Same happens to me on iMac 27 late 09 with El Capitan 10.11.5 (which is OK for Sierra afaik) :( |
Looks like this happens on 2009 and 2010 iMac's only. You may try compiling psqlodbc on your machine and overwriting the one shipped with PSequel.
|
No, it's not only 2009 and 2010 iMacs. As I said before it happens on an iMac (24-inch, Early 2008) and a Mac mini (Early 2009). Your instructions for compiling psqlodbc assume Homebrew is installed. Perhaps that is the problem for older computers. |
PSequel doesn't assume homebrew installed though. Homebrew is just an easy way to compile psqlodbc if it's supported by your computer. You could |
I forgot to say, I downloaded this source code bundle rather than using git. When compiling it put the file psqlodbcw.so into a folder called .libs, which means it is hidden in the finder. At first I though it had not worked correctly because I could not see the file. Then I ran the compile again and noticed it was putting files into this hidden folder. |
@willmm Awesome! Thanks for sharing your experience. This confirms that psqlodbc compiled on my machine doesn't work on early Mac's |
The same happens to me. When I hit the button to connect (working server and database; tested with other clients) it crashes. |
For those who are using an early Mac, please try @willmm's solution for compiling psqlodbc on your own Mac in the meantime. |
I can confirm that @psequel's solution works for me. I had Homebrew, so that was the easiest solution. I have a 2008 Intel Core 2 Duo T9300 MacBook Pro. I am attaching the compiled |
This issue is happening on my Mid 2009 Macbook Pro. The homebrew copy of psqlodbc does fix it, although t-anjan's compiled copy does not. |
👍 Thanks @psequel! |
The homebrew copy of psqlodbc worked for me as well (MBP, 10.10.5, mid-2009). The only change I had to make was to the directory name. Homebrew included the git short hash in the directory name when I ran it, so the commands ended up being: brew install psqlodbc --HEAD
cp /usr/local/Cellar/psqlodbc/HEAD-7de22ff/lib/psqlodbcw.so /Applications/PSequel.app/Contents/Frameworks/psqlodbcw.so Thanks for the help! |
That fix worked for me. I am on a 2008 Mac Pro so it may be an old computer thing ? |
I'm wondering if it's a CPU thing. For those who have this issue, are your Macs using 32-bit CPUs? |
No, I think OS X is only 64 bit now. I could only find this as pdf for Yosemite and for El Capitan. Under "Kernel" both say "OS X now exclusively uses a 64-bit kernel". This page says everything after Core 2 Duo is a 64 bit CPU and mine says it Core 2 Duo in About This Mac. |
I have an 8 Core 64 bit machine, Quad-Core Intel Xeon, all 64 bit. OS X past 10.7 or later won’t run on 32 bit ones. —Tom Tom Andersen Access all your files anywhere with Spotdox
|
I got this crash on my mid-2009 Macbook Pro, running OSX 10.10.5 The fix outlined at by @psequel at issuecomment-227052216 worked, although homebrew put the file in a slightly different place. The second line that worked for me was:
|
You need to add the keychain entitlement to this project Here is the crash:
Known issue with Keychain handling. You could try this in your code: If this project was opensource I could fix it... |
@lkraider are you reporting a separate issue? The OP is reporting a crash on an older Mac, where the bundled libodbc was not compiled for. |
@psequel I tried to build libodbc and it also fixes my issue. |
Confirming the same issue with a 2009 Mac Pro running Mojave, and that the homebrew-based fix works here as well. Is there any reason this version of psqlodbcw.so can't be bundled with the app? Does it not work with newer Macs? |
Thank you all who suggested to install I ran into this issue on a 2010 Macbook Pro running High Sierra and the suggestion worked perfectly! |
I downloaded and installed psequel. Launched it, and it shows the connect dialog, but when I fill in the connection details and click the connect button, it crashes immediately and invariably. I tried entering a different user for the database, or using the host IP instead of its name, but to no avail.
OS: Mac OS X El Capitan 10.11.4.
Crash Log
The text was updated successfully, but these errors were encountered: