brittneybrinsfield / sequel-pro

Automatically exported from code.google.com/p/sequel-pro
Other
0 stars 0 forks source link

Crash when importing file #1394

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When we try and import a UTF-8 encoded text/plain CSV file.  I have included a 
copy of the file and the crash report:

NSInvalidArgumentException

-[SPNotLoaded longLongValue]: unrecognized selector sent to instance 0x117a4b610

(
    0   CoreFoundation                      0x00007fff84310784 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00007fff86ce7f03 objc_exception_throw + 45
    2   CoreFoundation                      0x00007fff8436a110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
    3   CoreFoundation                      0x00007fff842e28ef ___forwarding___ + 751
    4   CoreFoundation                      0x00007fff842dea38 _CF_forwarding_prep_0 + 232
    5   Sequel Pro                          0x00000001000f728c -[SPFieldMapperController newTable:] + 1335
    6   Sequel Pro                          0x00000001000f53c7 -[SPFieldMapperController changeTableTarget:] + 919
    7   Sequel Pro                          0x00000001000f3956 -[SPFieldMapperController awakeFromNib] + 2265
    8   AppKit                              0x00007fff86ee08a1 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1515
    9   AppKit                              0x00007fff86edea91 loadNib + 226
    10  AppKit                              0x00007fff86eddfa1 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
    11  Sequel Pro                          0x000000010010f6b6 +[NSBundle(DMLocalizedNibBundle) deliciousLocalizingLoadNibFile:externalNameTable:withZone:] + 492
    12  AppKit                              0x00007fff86f5c3e1 -[NSWindowController loadWindow] + 233
    13  AppKit                              0x00007fff86f02f59 -[NSWindowController window] + 82
    14  Sequel Pro                          0x0000000100056e40 -[SPDataImport buildFieldMappingArrayWithData:isPreview:ofSoureFile:] + 1053
    15  Sequel Pro                          0x0000000100055eaa -[SPDataImport importCSVFile:] + 9772
    16  Sequel Pro                          0x000000010005920c -[SPDataImport _importBackgroundProcess:] + 209
    17  Foundation                          0x00007fff839c9114 __NSThread__main__ + 1429
    18  libSystem.B.dylib                   0x00007fff8631bfd6 _pthread_start + 331
    19  libSystem.B.dylib                   0x00007fff8631be89 thread_start + 13
)

Original issue reported on code.google.com by mkbri...@gmail.com on 6 Jul 2012 at 7:18

Attachments:

GoogleCodeExporter commented 9 years ago
Confirmed in r3714.
The exception happens when clicking on "New Table" on the import sheet.

The file encoding is broken too, though.
I don't see any UTF-8 characters, but I assume those once were UTF-8:

â€_ÄúAlaska Forwardâ€_ÄÃ_

89 DB 5F CC E3 CC BC

89 DB 5F CC E3 CC 5F

Chamberâ€_Äôs

89 DB 5F CC E3 CC AB

â€_Ä¢ Alaska

89 DB 5F CC E3 E5 A2

14c12

Original comment by schlabbe...@gmail.com on 6 Jul 2012 at 11:56

GoogleCodeExporter commented 9 years ago

Original comment by stuart02 on 24 Oct 2013 at 7:58