openimsdk/open-im-sdk-ios

database is locked,Stuck on the login screen, spinning in circles

toxmc opened this issue · 0 comments

What happened?

版本:open-im-ios-demo
podfile

platform :ios, '13.0'

use_frameworks!
use_modular_headers!
inhibit_all_warnings!

target 'OpenIMSDKUIKit_Example' do
  pod 'OUICore', :path => '../'
  pod 'OUICoreView', :path => '../'
  pod 'OUIIM', :path => '../'
  
  pod 'Localize-Swift', '~> 3.2'
  pod 'RxGesture', '~> 4.0.4'
  pod 'ProgressHUD'
  pod 'MMBAlertsPickers'
  pod 'SGCodeTextField'
#  pod 'GTSDK', '2.7.1.0-noidfa'
end

post_install do |installer|

 installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
          config.build_settings['ENABLE_BITCODE'] = 'NO'
          config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
          config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
          config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
          config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
end

xcode : 14.2

卡在登入界面
image

xcode上面报错信息

2023-12-28 11:57:54.588361+0800 OpenIM-Native[82840:481797] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2023-12-28 11:57:54.598572+0800 OpenIM-Native[82840:481797] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
init log success
2023-12-28 11:57:56.519132+0800 OpenIM-Native[82840:481797] Unbalanced calls to begin/end appearance transitions for <OpenIM_Native.MainTabViewController: 0x7fe1c6036600>.
2023-12-28 11:57:57.062044+0800 OpenIM-Native[82840:482725] Error: execSQLStatement:onConnection:toCompletionWithRetry:writeLockHelp - SQL=BEGIN IMMEDIATE TRANSACTION;, error-code=5, error-message=database is locked
2023-12-28 11:57:58.166083+0800 OpenIM-Native[82840:482725] Error: stepSQLStatement:toCompletionWithRetry - stepping returned unhandled result=5, DB=/Users/xmc/Library/Developer/CoreSimulator/Devices/F4BFFB45-A68B-4F17-94AC-2A59D8515A18/data/Containers/Data/Application/26A37388-702D-48A2-9AE6-46E4F036A5BE/Library/Caches/cn.rentsoft.ios.openim/Cache.db
2023-12-28 11:57:58.169348+0800 OpenIM-Native[82840:482725] Error: execSQLStatement:onConnection:toCompletionWithRetry:writeLockHelp - SQL=COMMIT TRANSACTION;, error-code=1, error-message=cannot commit - no transaction is active
2023-12-28 11:58:48.525169+0800 OpenIM-Native[82840:481797] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
输入参数:{"password":"0192023a7bbd73250516f069df18b500","areaCode":"+86","platform":1,"phoneNumber":"15266666666"}
2023-12-28 11:59:09.466641+0800 OpenIM-Native[82840:484666] Error: execSQLStatement:onConnection:toCompletionWithRetry:writeLockHelp - SQL=BEGIN IMMEDIATE TRANSACTION;, error-code=5, error-message=database is locked
2023-12-28 11:59:11.635848+0800 OpenIM-Native[82840:484666] Error: stepSQLStatement:toCompletionWithRetry - stepping returned unhandled result=5, DB=/Users/xmc/Library/Developer/CoreSimulator/Devices/F4BFFB45-A68B-4F17-94AC-2A59D8515A18/data/Containers/Data/Application/26A37388-702D-48A2-9AE6-46E4F036A5BE/Library/Caches/cn.rentsoft.ios.openim/Cache.db
2023-12-28 11:59:11.640311+0800 OpenIM-Native[82840:484666] Error: execSQLStatement:onConnection:toCompletionWithRetry:writeLockHelp - SQL=COMMIT TRANSACTION;, error-code=1, error-message=cannot commit - no transaction is active

另外端口都是正常的,抓包数据能正常返回
image
image
image

服务端未出现异常日志信息,通过docker-composer logs 查看

What did you expect to happen?

期望不卡住正常登入

How can we reproduce it (as minimally and precisely as possible)?

用上面的podfile,安装demo复现

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

xcode 14.2

Install tools