Opened 18 years ago

Closed 18 years ago

#10717 closed defect (fixed)

BUG: pgAdmin3-1.4.3 - won't run: Cannot set locale to...

Reported by: mont@… Owned by: yeled@…
Priority: High Milestone:
Component: ports Version: 1.3.2
Keywords: PgAdmin3 locale Cc: markd@…
Port:

Description

I can't get pgAdmin3 to run.

1) Tried double clicking /Applications/DarwinPorts/pgAdmin3 with no success (and no feedback).

2) Tried running ./pgAdmin3 manually from /Applications/DarwinPorts/pgAdmin3.app/Contents/MacOS. Error:

dyld: Library not loaded: @executable_path/Contents/Frameworks/libssl.0.9.8.dylib
  Referenced from: /Applications/DarwinPorts/pgAdmin3.app/Contents/MacOS/./../../Contents/Frameworks/libpq.4.dylib
  Reason: image not found
Trace/BPT trap

3) Same as 2, but set DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib/ first. Now I get a pgAdmin3 splash screen, followed by a requester:

pgAdmin III
An error has occured:
Cannot set locale to 'nb_NO'

I have tried setting LANG and LC_ALL to C as well, to avail.

Change History (11)

comment:1 Changed 18 years ago by mont@…

The last sentence should of course end with "to no avail". Also, I might just mention that I use Mac OS X 10.4.7, and that pgAdmin crashes with an "unexpected error" dialog.

Here's a piece of the error report:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x000001e2

Thread 0 Crashed:
0   libwx_macu-2.6.0.dylib     	0x0298375d wxWindow::MacGetBoundsForControl(wxPoint const&, wxSize const&, int&, int&, int&, int&, bool) const + 29
1   libwx_macu-2.6.0.dylib     	0x029838fd wxMacGetBoundsForControl(wxWindow*, wxPoint const&, wxSize const&, bool) + 73
2   libwx_macu-2.6.0.dylib     	0x029879dc wxWindow::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) + 154
3   libwx_macu-2.6.0.dylib     	0x0293f14b wxControl::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxValidator const&, wxString const&) + 61
4   libwx_macu_stc-2.6.0.dylib 	0x01210cbc wxStyledTextCtrl::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) + 82
5   org.postgresql.pgadmin     	0x000def68 0x1000 + 909160
6   org.postgresql.pgadmin     	0x000dfd87 0x1000 + 912775
7   org.postgresql.pgadmin     	0x00100680 0x1000 + 1046144
8   org.postgresql.pgadmin     	0x00005147 0x1000 + 16711
9   org.postgresql.pgadmin     	0x002eb9eb 0x1000 + 3058155
10  libwx_macu-2.6.0.dylib     	0x02040240 wxEntry(int&, wchar_t**) + 52
11  org.postgresql.pgadmin     	0x00002994 0x1000 + 6548
12  org.postgresql.pgadmin     	0x00002912 0x1000 + 6418
13  org.postgresql.pgadmin     	0x0000282d 0x1000 + 6189

comment:2 Changed 18 years ago by mont@…

I got it to work, with more DYLD_LIBRARY_PATH magic:

DYLD_LIBRARY_PATH=/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/:/opt/local/lib ./pgAdmin3

I still get the locale error, but the program doesn't crash afterwards.

comment:3 Changed 18 years ago by mont@…

The story goes on:

If I change User Language in Preferences -> General to en_US, I don't get the locale error anymore.

I still have to start pgAdmin3 with the DYLD_LIBRARY_PATH in the previous comment, though.

comment:4 Changed 18 years ago by markd@…

Summary: [pgAdmin3] Won't run: Cannot set locale to...BUG: pgAdmin3-1.4.3 - won't run: Cannot set locale to...

comment:5 Changed 18 years ago by jquinteiro@…

I experience pretty much exactly the same problem described here, bu the workarounds do not work.

I'll get a splash screen if I set DYLD_FALLBACK_LIBRARY_PATH and DYLD_LIBRARY_PATH as described above, but the program crashes with a bus error. The stack trace is very similar to the one reported above.

Otherwise pgAdmin3 fails to run 'cause it can't find a library (varies.)

I do not get any locale errors at all.

OS X 10.4.8 on an iMac

comment:6 Changed 18 years ago by markd@…

Cc: markd@… added

pgAdmin3 was updated to 1.6.1. Does that solve the locale problems?

comment:7 Changed 18 years ago by markd@…

Resolution: fixed
Status: newclosed

No response. It may be reopened if the problem remains.

comment:8 Changed 18 years ago by mont@…

Resolution: fixed
Status: closedreopened

With pgAdmin3 1.6.1:

/Applications/DarwinPorts/pgAdmin3.app/Contents/MacOS$ ./pgAdmin3 
dyld: Library not loaded: @executable_path/Contents/Frameworks/libssl.0.9.8.dylib
  Referenced from: /Applications/DarwinPorts/pgAdmin3.app/Contents/MacOS/./../../Contents/Frameworks/libpq.4.dylib
  Reason: image not found
Trace/BPT trap

The packages from http://www.pgadmin.org/download/macosx.php seems to work OK, though.

comment:9 Changed 18 years ago by markd@…

PgAdmin3 was updated to 1.6.2 a month ago. So perhaps you haven't done a selfupdate recently. Run 'port outdated' and see if openssl is outdated. If so, update it and then the latest pgadmin3 and see if that helps.

comment:10 Changed 18 years ago by mont@…

Thanks, 1.6.2 works for me now.

comment:11 Changed 18 years ago by markd@…

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.