0 Replies Latest reply on Jan 28, 2013 4:48 AM by Neczgen

    InDesign crashed while using OCCI in Mac

    Neczgen

      I'm developing a plugin for InDesign using C++ and want to do a oracle connection to one of our databases.

       

      This is what I call:

      mOCCICon = mOCCIEnv->createConnection(pLoginUsername.GrabUTF16Buffer(nil), pLoginPassword.GrabUTF16Buffer(nil), pmFixedAlias.GrabUTF16Buffer(nil));

       

      mOCCIEnv is Environment object.

       

      Whenever I call with correct user and pass, everything is good, both in Mac and Windows build.

      But as soon as I login with false pass, windows gives an ORA error message while Mac crashes!!

       

      Anyone also got the same problem and have solved it?

      Please, it's an annoying problem.

       

      Here's the crash log from InDesign:

      -----------------------------------------------------------

      Process: Adobe InDesign CS6 [3769]

      Path: /Applications/Adobe InDesign CS6/Adobe InDesign CS6.app/Contents/MacOS/Adobe InDesign CS6

      Identifier: com.adobe.InDesign

      Version: 8.0.0.370 (8000)

      Code Type: X86 (Native)

      Parent Process: launchd [231]

       

       

      Date/Time: 2013-01-25 10:18:01.389 +0100

      OS Version: Mac OS X 10.6.8 (10K549)

      Report Version: 6

       

       

      Interval Since Last Report: 8055885 sec

      Crashes Since Last Report: 86212

      Per-App Interval Since Last Report: 1197871 sec

      Per-App Crashes Since Last Report: 66

      Anonymous UUID: 2842A1EE-9D7F-46F7-8088-EB5833340AB8

       

       

      Exception Type: EXC_BAD_ACCESS (SIGSEGV)

      Exception Codes: KERN_INVALID_ADDRESS at 0x00000000474e5543

      Crashed Thread: 0 Dispatch queue: com.apple.main-thread

       

       

      Thread 0 Crashed: Dispatch queue: com.apple.main-thread

      0 ??? 0x03ee04ec 0 + 65930476

      1 libSystem.B.dylib 0x94734f68 _Unwind_GetLanguageSpecificData + 24

      2 libstdc++.6.dylib 0x949c0d86 __gxx_personality_v0 + 120

      3 libocci.dylib.10.1 0x1cc2c160 _Unwind_RaiseException_Phase2 + 148

      4 libocci.dylib.10.1 0x1cc2c573 _Unwind_Resume + 127

      5 libocci.dylib.10.1 0x1cbba83d oracle::occi::ConnectionImpl::openConnection(OCIEnv*, OCIError*, void*, unsigned int, void*, unsigned int, void*, unsigned int, void*, unsigned int, unsigned int) + 2407

      6 libocci.dylib.10.1 0x1cbbdcb9 oracle::occi::ConnectionImpl::ConnectionImpl(oracle::occi::EnvironmentImpl*, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&) + 331

      7 libocci.dylib.10.1 0x1cbbdd3d oracle::occi::ConnectionImpl::ConnectionImpl(oracle::occi::EnvironmentImpl*, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&) + 45

      8 libocci.dylib.10.1 0x1cbb7da0 oracle::occi::EnvironmentImpl::createConnection(std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&, std::basic_string<unsigned short, std::char_traits<unsigned short>, std::allocator<unsigned short> > const&) + 202

      9 com.adobe.InDesign.DBManager 0x177d250c OCCIManager::loginToDatabase(PMString, PMString, PMString, long&, PMString&) + 3404 (OCCIManager.cpp:1442)

      10 com.adobe.InDesign.InBuilderUI          0x1ff8c47d InBldDBLoginDialog::ShowInBldDBLoginDialog() + 2397 (InBldDBLoginDialog.cpp:117)

      11 com.adobe.InDesign.InBuilderUI          0x1ff9812a InBldUIUtils::ShowLoginDialog() + 186 (InBldUIUtils.cpp:157)

      12 com.adobe.InDesign.InBuilderUI          0x1ffaf9d8 InBldUIActionComponent::DoAction(IActiveContext*, IDType<ActionID_tag>, SysPoint, IPMUnknown*) + 2520 (InBldUIActionComponent.cpp:283)

      ....

      ...

      ------------------------------------------------