iFunEngine / iFunEngine

4 stars 0 forks source link

DedicatedServerManager.GetGameState 호출시 crash 발생 문의 #230

Closed newtrocode closed 4 years ago

newtrocode commented 4 years ago

버전 및 환경 값

crash 해결 방법 문의

DedicatedServerManager.GetGameState(match_id, GameStateCallback) 호출시 crash 발생 합니다.

해결 방법이 궁금합니다.

로그는 다음과 같습니다.

I0521 03:18:48.498340  8357 (Mono)dedicate_helper.cs:30] OnUserEnteredCallback match_id=0000022f-9ac9-83c2-ad45-a0cae28af2bc,account=YZ3XYAM5RYFT
cant resolve internal call to "funapi.DedicatedServerManagerInternal::GetGameState" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "funapi.DedicatedServerManagerInternal::GetGameState" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
F0521 03:18:48.513099  8357 runtime.cc:916] Unhandled Exception In C#
============================================================
System.MissingMethodException: Attempted to access a missing method.
  at (wrapper managed-to-native) funapi.DedicatedServerManagerInternal.GetGameState(System.Guid,funapi.DedicatedServerManager/GetGameStateCallback)
  at funapi.DedicatedServerManager.GetGameState (System.Guid match_id, funapi.DedicatedServerManager+GetGameStateCallback callback) [0x00000] in /ramfs/workspace/mono/funapi/dedicated_server_manager.cs:80 
  at BforceIfunCsV2.DedicateHelper.OnUserEnteredCallback (System.Guid match_id, System.String account) [0x00026] in /home/ubuntu/bforce_ifun_cs_v2/mono/dedicate_helper.cs:39 
  at (wrapper delegate-invoke) <Module>.invoke_void_Guid_string(System.Guid,string)
============================================================
*** Check failure stack trace: ***
E0521 03:18:48.515599  8357 main.cc:512] Fatal log information: thread=event
I0521 03:18:48.515668  8357 fault.cc:339] Caught signal(thread=event): 6 (Aborted)
E0521 03:18:48.629701  8357 fault.cc:547] Crashdump written to /home/ubuntu/bforce_ifun_cs_v2/build/dumps/15049446-6d2a-4daa-0f6ae592-a252859a.dmp
E0521 03:18:48.629804  8357 main.cc:210] Crashed: Thread=event, Event=
E0521 03:18:48.629856  8357 fault.cc:406] Waiting for finalization.
E0521 03:18:48.629894  8276 framework.cc:91] System has been crashed. (Thread=event, 1.0.0-5295bionic)
E0521 03:18:48.629947  8276 framework.cc:106] Shutdown SessionService.
E0521 03:18:48.630009  8276 framework.cc:106] Shutdown EventDispatcher.
E0521 03:18:48.630147  8276 framework.cc:106] Shutdown ObjectLeaser.
E0521 03:18:48.631075  8276 framework.cc:106] Shutdown ObjectTransaction.
E0521 03:18:48.631218  8276 framework.cc:106] Shutdown ObjectDatabase.
I0521 03:18:48.631258  8276 object_database.cc:4145] Flushing 0 update queries
E0521 03:18:48.631270  8276 framework.cc:106] Shutdown RpcService.
I0521 03:18:48.632124  8276 redis_rpc_service.cc:1990] FlushMyObsoleteObjectsOnShutdown() started.
W0521 03:18:48.632159  8276 redis_rpc_service.cc:1656] Flushing ownerships: peer_id=0255134e-648c-4f1f-0000-000000000000, connection_id=daf05baf-ba92-4c94-8edc-d15fcf37907a
W0521 03:18:48.632642  8356 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0255134e-648c-4f1f-0000-000000000000, type=account 2/2/2
W0521 03:18:48.653053  8356 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0255134e-648c-4f1f-0000-000000000000, type=object 1000/1000/1000
W0521 03:18:48.653981  8356 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0255134e-648c-4f1f-0000-000000000000, type=object_key 0/0/0
W0521 03:18:48.655778  8356 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0255134e-648c-4f1f-0000-000000000000, type=world 0/0/0
I0521 03:18:48.655949  8276 redis_rpc_service.cc:1998] FlushMyObsoleteObjectsOnShutdown() done.
E0521 03:18:48.657176  8276 framework.cc:106] Shutdown IoService.
The terminal process terminated with exit code: 134

mono 버젼 문제인가 싶어서 6.8 로 설치하니 런타임 시작시 바로 에러가 발생합니다.

dkmoon commented 4 years ago

안녕하세요.

올려주신 call stack 을 보면

System.MissingMethodException: Attempted to access a missing method.
  at (wrapper managed-to-native) funapi.DedicatedServerManagerInternal.GetGameState(System.Guid,funapi.DedicatedServerManager/GetGameStateCallback)
  at funapi.DedicatedServerManager.GetGameState (System.Guid match_id, funapi.DedicatedServerManager+GetGameStateCallback callback) [0x00000] in /ramfs/workspace/mono/funapi/dedicated_server_manager.cs:80 
  at BforceIfunCsV2.DedicateHelper.OnUserEnteredCallback (System.Guid match_id, System.String account) [0x00026] in /home/ubuntu/bforce_ifun_cs_v2/mono/dedicate_helper.cs:39 
  at (wrapper delegate-invoke) <Module>.invoke_void_Guid_string(System.Guid,string)

라고 되어있어서 dedicate_helper.cs 의 39번째 줄에서 Guid 와 string 관련된 어떤 함수를 부르다가 crash 하는 것 같습니다. 혹시 그 줄이 어떤 코드인지 올려주실 수 있을까요?

newtrocode commented 4 years ago

    public static void Install()
    {
            // Dedicated Server Callback
            DedicatedServerManager.RegisterMatchResultCallback(OnMatchResultCallback);
            DedicatedServerManager.RegisterUserEnteredCallback(OnUserEnteredCallback);
            DedicatedServerManager.RegisterUserLeftCallback(OnUserLeftCallback);
            DedicatedServerManager.RegisterCustomCallback(OnCustomCallback);
        }

...
    public static void OnUserEnteredCallback(Guid match_id, string account)
    {
      // 데디케이트 서버에서 SendJoined(유져 접속)을 호출 했을 때
      Log.Info("OnUserEnteredCallback match_id={0},account={1}", match_id.ToString(), account);

      DedicatedServerManager.GetGameState(match_id, GameStateCallback);
    }

위와같이 유져 접속시 GameState를 호출 하는 코드 입니다.

Log.Info는 정상적으로 출력되고 있습니다.

jwlee-ifun commented 4 years ago

안녕하세요.

Visual Studio Code 의 C# 또는 Mono debug 플러그인의 최근 버전이 mono 버전 6.8 이하는 정상적으로 지원하지 않는 것으로 알고 있습니다.

따라서 mono 버전 6.8 을 사용하시는 것이 좋을 것 같습니다만, mono 버전을 업그레이드 했을 때, 크래시 상황의 로그에는 어떤 내용이 출력되는지 알려주시겠어요?

newtrocode commented 4 years ago

mono 6.8시 crash 로그는 다음과 같습니다.

C# 은 1.21.10(기존), 1.21.18(최신) 모두 결과는 동일합니다.

인텔리센스도 동작하지 않습니다.

I0521 15:52:47.598147 18648 main.cc:633] Engine version: 1.0.0-5295bionic
I0521 15:52:47.598417 18648 main.cc:634] Locale: C.UTF-8
I0521 15:52:47.598430 18648 main.cc:641] Command line arguments: [/usr/bin/funapi_runner]
I0521 15:52:47.598436 18648 main.cc:642] Server flavor: default
I0521 15:52:47.805230 18648 main.cc:666] License info: {"production":true,"expires":"2020-Dec-31 23:59:59"}
I0521 15:52:47.816501 18648 manifest_handler.cc:359] Reading "/home/ubuntu/bforce_ifun_cs_v2/build/manifests/default/MANIFEST.json"
I0521 15:52:47.859951 18648 manifest_handler.cc:757] /home/ubuntu/bforce_ifun_cs_v2/build/src/libbforce_ifun_cs_v2.so loaded.
I0521 15:52:47.860450 18648 main.cc:728] Loading Mono runtime and managed app: mono_dll_path=/home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/BforceIfunCsV2.dll
I0521 15:52:48.859989 18648 runtime.cc:153] Mono assembly loaded: BforceIfunCsV2, Version=1.0.7445.34067
I0521 15:52:48.868010 18648 runtime.cc:153] Mono assembly loaded: Newtonsoft.Json, Version=9.0.0.0
I0521 15:52:48.873366 18648 runtime.cc:153] Mono assembly loaded: funapi, Version=1.0.7430.26677
I0521 15:52:48.877730 18648 runtime.cc:153] Mono assembly loaded: protobuf-net, Version=2.0.0.668
I0521 15:52:48.877866 18648 runtime.cc:127] Mono assembly loaded: mscorlib, Version=4.0.0.0
I0521 15:52:48.878121 18648 runtime.cc:127] Mono assembly loaded: System, Version=4.0.0.0
cant resolve internal call to "System.RuntimeTypeHandle::internal_from_name(string,System.Threading.StackCrawlMark&,System.Reflection.Assembly,bool,bool,bool)" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /usr/lib/mono/4.5/mscorlib.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "System.RuntimeTypeHandle::internal_from_name(string,System.Threading.StackCrawlMark&,System.Reflection.Assembly,bool,bool,bool)" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /usr/lib/mono/4.5/mscorlib.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
Runtime critical type Mono.RuntimeStructs/HandleStackMark not found
I0521 15:52:48.898474 18648 fault.cc:339] Caught signal(thread=funapi_runner): 6 (Aborted)
E0521 15:52:48.948783 18648 fault.cc:547] Crashdump written to /home/ubuntu/bforce_ifun_cs_v2/build/dumps/c92ce7b6-390c-4cbb-98d2c29a-74838146.dmp
The terminal process terminated with exit code: 134
newtrocode commented 4 years ago

추가적으로 OmniSharp Log는 다음과 같습니다.

Starting OmniSharp server at 5/21/2020, 4:14:08 PM
    Target: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.sln

OmniSharp server started with Mono 6.8.0.
    Path: /home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.11/.omnisharp/1.34.11/omnisharp/OmniSharp.exe
    PID: 20135

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 16.3 - "/usr/lib/mono/msbuild/Current/bin"
            2: StandAlone 16.3 - "/home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.11/.omnisharp/1.34.11/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 16.3 - "/usr/lib/mono/msbuild/Current/bin"
            CscToolExe = csc.exe
            CscToolPath = /home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.11/.omnisharp/1.34.11/omnisharp/.msbuild/Current/Bin/Roslyn
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/ubuntu/bforce_ifun_cs_v2/mono'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/ubuntu/bforce_ifun_cs_v2/mono'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/ubuntu/bforce_ifun_cs_v2/mono' on host 19989.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj'.
/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The expression ""utility.cs".GetPathsOfAllDirectoriesAbove()" cannot be evaluated. Method 'System.String.GetPathsOfAllDirectoriesAbove' not found.  /usr/lib/mono/msbuild/Current/bin/Roslyn/Microsoft.Managed.Core.targets
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00040] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject[T1,T2] (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0, T2 arg1) [0x00003] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1,T2] (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0, T2 arg1) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+Function`1[P,I,T].Execute (System.Object objectInstance, Microsoft.Build.Evaluation.IPropertyProvider`1[T] properties, Microsoft.Build.Evaluation.ExpanderOptions options, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00425] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+IntrinsicItemFunctions`1+<ExecuteStringFunction>d__13[P,I,S].MoveNext () [0x000a3] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+<Transform>d__0`1[P,I,S].MoveNext () [0x00110] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+<Transform>d__0`1[P,I,S].MoveNext () [0x000b1] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander[P,I].ExpandExpressionCapture[S] (Microsoft.Build.Evaluation.Expander`2[P,I] expander, Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.IItemProvider`1[T] evaluatedItems, Microsoft.Build.Shared.IElementLocation elementLocation, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, System.Collections.Generic.List`1[Microsoft.Build.Shared.Pair`2[System.String,S]]& itemsFromCapture) [0x0014c] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander[P,I].ExpandExpressionCaptureIntoItems[S,T] (Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.Expander`2[P,I] expander, Microsoft.Build.Evaluation.IItemProvider`1[T] items, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00093] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2[P,I].ExpandExpressionCaptureIntoItems[S,T] (Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.IItemProvider`1[T] items, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+IncludeOperation[P,I,M,D].SelectItems (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00114] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemOperation[P,I,M,D].Apply (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00017] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+MemoizedOperation[P,I,M,D].Apply (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00006] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D].ComputeItems (Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D] lazyItemList, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00119] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D].GetItemData (System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x0001d] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+<>c[P,I,M,D].<GetAllItemsDeferred>b__28_0 (Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D] itemList) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToArray () [0x00028] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0001e] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Framework.BuildEventContext buildEventContext) [0x00333] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData`4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary`1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.BackEnd.SdkResolution.ISdkResolverService sdkResolverService, System.Int32 submissionId, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext, System.Boolean interactive) [0x0002f] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0005e] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00035] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00007] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.Initialize (System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00126] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00093] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion) [0x000f7] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.String toolsVersion) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore (System.String filePath) [0x0003f] in <1e06c83a1b2d4fef9a43b0a67a73f545>:0 
  at OmniSharp.MSBuild.ProjectLoader.BuildProject (System.String filePath) [0x0000d] in <1e06c83a1b2d4fef9a43b0a67a73f545>:0 
  at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load (System.String filePath, OmniSharp.MSBuild.ProjectIdInfo projectIdInfo, OmniSharp.MSBuild.ProjectLoader loader) [0x00015] in <1e06c83a1b2d4fef9a43b0a67a73f545>:0 
  at OmniSharp.MSBuild.ProjectManager+<>c__DisplayClass29_0.<LoadProject>b__0 () [0x00000] in <1e06c83a1b2d4fef9a43b0a67a73f545>:0 
  at (wrapper delegate-invoke) System.Func`1[System.ValueTuple`3[OmniSharp.MSBuild.ProjectFile.ProjectFileInfo,System.Collections.Immutable.ImmutableArray`1[OmniSharp.MSBuild.Logging.MSBuildDiagnostic],OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs]].invoke_TResult()
  at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject (System.String projectFilePath, System.Func`1[TResult] loader) [0x0001b] in <1e06c83a1b2d4fef9a43b0a67a73f545>:0 

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj
jwlee-ifun commented 4 years ago

추가로 dpkg --list | grep libmono 결과를 올려주시면 감사하겠습니다.

newtrocode commented 4 years ago
ii  libmono-2.0-dev                                             6.8.0.105-0xamarin3+ubuntu1804b1                            amd64        Mono JIT library - Development files (Default version)
ii  libmono-accessibility4.0-cil                                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Accessibility library (for CLI 4.0)
ii  libmono-btls-interface4.0-cil                               5.20.1.34-0xamarin4+ubuntu1804b1                            amd64        Mono Mono.Btls.Interface library (for CLI 4.0)
ii  libmono-cairo4.0-cil                                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Cairo library (for CLI 4.0)
ii  libmono-cecil-private-cil                                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono.Cecil library
ii  libmono-cil-dev                                             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Base Class Libraries (BCL) - Development files
ii  libmono-codecontracts4.0-cil                                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono.CodeContracts library (for CLI 4.0)
ii  libmono-compilerservices-symbolwriter4.0-cil                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono.CompilerServices.SymbolWriter library (for CLI 4.0)
ii  libmono-corlib4.5-cil                                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono core library (for CLI 4.5)
ii  libmono-cscompmgd0.0-cil                                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono cscompmgd library (for CLI 4.0)
ii  libmono-csharp4.0c-cil                                      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono.CSharp library (for CLI 4.0)
ii  libmono-custommarshalers4.0-cil                             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono CustomMarshalers library (for CLI 4.0)
ii  libmono-data-tds4.0-cil                                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Data Library (for CLI 4.0)
ii  libmono-db2-1.0-cil                                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono DB2 library
ii  libmono-debugger-soft4.0a-cil                               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Soft Debugger library (for CLI 4.0)
ii  libmono-http4.0-cil                                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono.Http library (for CLI 4.0)
ii  libmono-i18n-cjk4.0-cil                                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono I18N.CJK library (for CLI 4.0)
ii  libmono-i18n-mideast4.0-cil                                 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono I18N.MidEast library (for CLI 4.0)
ii  libmono-i18n-other4.0-cil                                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono I18N.Other library (for CLI 4.0)
ii  libmono-i18n-rare4.0-cil                                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono I18N.Rare library (for CLI 4.0)
ii  libmono-i18n-west4.0-cil                                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono I18N.West library (for CLI 4.0)
ii  libmono-i18n4.0-all                                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono I18N libraries metapackage (for CLI 4.0)
ii  libmono-i18n4.0-cil                                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono I18N base library (for CLI 4.0)
ii  libmono-ldap4.0-cil                                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono LDAP library (for CLI 4.0)
ii  libmono-management4.0-cil                                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Management library (for CLI 4.0)
ii  libmono-messaging-rabbitmq4.0-cil                           6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Messaging RabbitMQ library (for CLI 4.0)
ii  libmono-messaging4.0-cil                                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Messaging library (for CLI 4.0)
ii  libmono-microsoft-build-engine4.0-cil                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.Build.Engine library (for CLI 4.0)
ii  libmono-microsoft-build-framework4.0-cil                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.Build.Framework library (for CLI 4.0)
ii  libmono-microsoft-build-tasks-v4.0-4.0-cil                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.Build.Tasks.v4.0 library (for CLI 4.0)
ii  libmono-microsoft-build-utilities-v4.0-4.0-cil              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.Build.Utilities.v4.0 library (for CLI 4.0)
ii  libmono-microsoft-build4.0-cil                              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.Build library (for CLI 4.0)
ii  libmono-microsoft-csharp4.0-cil                             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.CSharp library (for CLI 4.0)
ii  libmono-microsoft-visualc10.0-cil                           6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.VisualC library (for CLI 4.0)
ii  libmono-microsoft-web-infrastructure1.0-cil                 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Microsoft.Web.Infrastructure library (for CLI 4.0)
ii  libmono-oracle4.0-cil                                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Oracle library (for CLI 4.0)
ii  libmono-parallel4.0-cil                                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono.Parallel library (for CLI 4.0)
ii  libmono-peapi4.0a-cil                                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono PEAPI library (for CLI 4.0)
ii  libmono-posix4.0-cil                                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono.Posix library (for CLI 4.0)
ii  libmono-rabbitmq4.0-cil                                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono RabbitMQ.Client library (for CLI 4.0)
ii  libmono-relaxng4.0-cil                                      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Relaxng library (for CLI 4.0)
ii  libmono-security4.0-cil                                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Security library (for CLI 4.0)
ii  libmono-sharpzip4.84-cil                                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono SharpZipLib library (for CLI 4.0)
ii  libmono-simd4.0-cil                                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono SIMD (for CLI 4.0)
ii  libmono-smdiagnostics0.0-cil                                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono SMDiagnostics Library (for CLI 4.0)
ii  libmono-sqlite4.0-cil                                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Sqlite library (for CLI 4.0)
ii  libmono-system-componentmodel-composition4.0-cil            6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ComponentModel.Composition library (for CLI 4.0)
ii  libmono-system-componentmodel-dataannotations4.0-cil        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ComponentModel.DataAnnotations library (for CLI 4.0)
ii  libmono-system-configuration-install4.0-cil                 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Configuration.Install library (for CLI 4.0)
ii  libmono-system-configuration4.0-cil                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Configuration library (for CLI 4.0)
ii  libmono-system-core4.0-cil                                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Core library (for CLI 4.0)
ii  libmono-system-data-datasetextensions4.0-cil                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Data.DataSetExtensions library (for CLI 4.0)
ii  libmono-system-data-entity4.0-cil                           6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Data.Entity library (for CLI 4.0)
ii  libmono-system-data-linq4.0-cil                             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Data.Linq Library (for CLI 4.0)
ii  libmono-system-data-services-client4.0-cil                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Data.Services.Client library (for CLI 4.0)
ii  libmono-system-data-services4.0-cil                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Data.Services library (for CLI 4.0)
ii  libmono-system-data4.0-cil                                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Data library (for CLI 4.0)
ii  libmono-system-deployment4.0-cil                            6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Deployment library (for CLI 4.0)
ii  libmono-system-design4.0-cil                                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Design Library (for CLI 4.0)
ii  libmono-system-drawing-design4.0-cil                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Drawing.Design (for CLI 4.0)
ii  libmono-system-drawing4.0-cil                               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Drawing library (for CLI 4.0)
ii  libmono-system-dynamic4.0-cil                               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Dynamic library (for CLI 4.0)
ii  libmono-system-enterpriseservices4.0-cil                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.EnterpriseServices library (for CLI 4.0)
ii  libmono-system-identitymodel-selectors4.0-cil               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.IdentityModel.Selectors Library (for CLI 4.0)
ii  libmono-system-identitymodel4.0-cil                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.IdentityModel Library (for CLI 4.0)
ii  libmono-system-io-compression-filesystem4.0-cil             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.IO.Compresion.FileSystem library (for CLI 4.0)
ii  libmono-system-io-compression4.0-cil                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.IO.Compression library (for CLI 4.0)
ii  libmono-system-json-microsoft4.0-cil                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Json.Microsoft library (for CLI 4.0)
ii  libmono-system-json4.0-cil                                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Json library (for CLI 4.0)
ii  libmono-system-ldap-protocols4.0-cil                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.DirectoryServices.Protocols library (for CLI 4.0)
ii  libmono-system-ldap4.0-cil                                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.DirectoryServices library (for CLI 4.0)
ii  libmono-system-management4.0-cil                            6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Management library (for CLI 4.0)
ii  libmono-system-messaging4.0-cil                             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Messaging library (for CLI 4.0)
ii  libmono-system-net-http-formatting4.0-cil                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Net.Http.Formatting library (for CLI 4.0)
ii  libmono-system-net-http-webrequest4.0-cil                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Net.Http.WebRequest library (for CLI 4.0)
ii  libmono-system-net-http4.0-cil                              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Net.Http library (for CLI 4.0)
ii  libmono-system-net4.0-cil                                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Net library (for CLI 4.0)
ii  libmono-system-numerics-vectors4.0-cil                      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Numerics.Vectors library (for CLI 4.0)
ii  libmono-system-numerics4.0-cil                              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Numerics library (for CLI 4.0)
ii  libmono-system-reactive-core2.2-cil                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Core Library (for CLI 4.5)
ii  libmono-system-reactive-debugger2.2-cil                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Debugger Library (for CLI 4.5)
ii  libmono-system-reactive-experimental2.2-cil                 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Experimental Library (for CLI 4.5)
ii  libmono-system-reactive-interfaces2.2-cil                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Interfaces Library (for CLI 4.5)
ii  libmono-system-reactive-linq2.2-cil                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Linq Library (for CLI 4.5)
ii  libmono-system-reactive-observable-aliases0.0-cil           6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Linq Library (for CLI 4.5)
ii  libmono-system-reactive-platformservices2.2-cil             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.PlatformServices Library (for CLI 4.5)
ii  libmono-system-reactive-providers2.2-cil                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Providers Library (for CLI 4.5)
ii  libmono-system-reactive-runtime-remoting2.2-cil             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Runtime.Remoting Library (for CLI 4.5)
ii  libmono-system-reactive-windows-forms2.2-cil                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Windows.Forms Library (for CLI 4.5)
ii  libmono-system-reactive-windows-threading2.2-cil            6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reactive.Windows.Threading Library (for CLI 4.5)
ii  libmono-system-reflection-context4.0-cil                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Reflection.Context library (for CLI 4.0)
ii  libmono-system-runtime-caching4.0-cil                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Runtime.Caching Library (for CLI 4.0)
ii  libmono-system-runtime-durableinstancing4.0-cil             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Runtime.DurableInstancing Library (for CLI 4.0)
ii  libmono-system-runtime-serialization-formatters-soap4.0-cil 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Runtime.Serialization.Formatters.Soap Library (for CLI 4.0)
ii  libmono-system-runtime-serialization4.0-cil                 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Runtime.Serialization Library (for CLI 4.0)
ii  libmono-system-runtime4.0-cil                               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Runtime library (for CLI 4.0)
ii  libmono-system-security4.0-cil                              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Security library (for CLI 4.0)
ii  libmono-system-servicemodel-activation4.0-cil               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ServiceModel.Activation Library (for CLI 4.0)
ii  libmono-system-servicemodel-discovery4.0-cil                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ServiceModel.Discovery Library (for CLI 4.0)
ii  libmono-system-servicemodel-internals0.0-cil                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ServiceModel.Internals Library (for CLI 4.0)
ii  libmono-system-servicemodel-routing4.0-cil                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ServiceModel.Routing Library (for CLI 4.0)
ii  libmono-system-servicemodel-web4.0-cil                      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ServiceModel.Web Library (for CLI 4.0)
ii  libmono-system-servicemodel4.0a-cil                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ServiceModel Library (for CLI 4.0)
ii  libmono-system-serviceprocess4.0-cil                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.ServiceProcess library (for CLI 4.0)
ii  libmono-system-threading-tasks-dataflow4.0-cil              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Threading.Tasks.Dataflow library (for CLI 4.0)
ii  libmono-system-transactions4.0-cil                          6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Transactions library (for CLI 4.0)
ii  libmono-system-web-abstractions4.0-cil                      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Abstractions library (for CLI 4.0)
ii  libmono-system-web-applicationservices4.0-cil               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.ApplicationServices library (for CLI 4.0)
ii  libmono-system-web-dynamicdata4.0-cil                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.DynamicData library (for CLI 4.0)
ii  libmono-system-web-extensions-design4.0-cil                 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Extensions.Design library (for CLI 4.0)
ii  libmono-system-web-extensions4.0-cil                        6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Extensions library (for CLI 4.0)
ii  libmono-system-web-http-selfhost4.0-cil                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Http.SelfHost library (for CLI 4.0)
ii  libmono-system-web-http-webhost4.0-cil                      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Http.WebHost library (for CLI 4.0)
ii  libmono-system-web-http4.0-cil                              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Http library (for CLI 4.0)
ii  libmono-system-web-mobile4.0-cil                            6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Mobile library (for CLI 4.0)
ii  libmono-system-web-mvc3.0-cil                               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono ASP.NET MVC 3.0 Library (for CLI 4.0)
ii  libmono-system-web-razor2.0-cil                             6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Razor (for CLI 4.0)
ii  libmono-system-web-regularexpressions4.0-cil                6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.RegularExpressions library (for CLI 4.0)
ii  libmono-system-web-routing4.0-cil                           6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Routing (for CLI 4.0)
ii  libmono-system-web-services4.0-cil                          6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.Services (for CLI 4.0)
ii  libmono-system-web-webpages-deployment2.0-cil               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.WebPages.Deployment (for CLI 4.0)
ii  libmono-system-web-webpages-razor2.0-cil                    6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.WebPages.Razor (for CLI 4.0)
ii  libmono-system-web-webpages2.0-cil                          6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web.WebPages (for CLI 4.0)
ii  libmono-system-web4.0-cil                                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Web library (for CLI 4.0)
ii  libmono-system-windows-forms-datavisualization4.0a-cil      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Windows.Forms.DataVisualization Library (for CLI 4.0)
ii  libmono-system-windows-forms4.0-cil                         6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Windows.Forms Library (for CLI 4.0)
ii  libmono-system-windows4.0-cil                               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Windows library (for CLI 4.0)
ii  libmono-system-workflow-activities4.0-cil                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Workflow.Activities library (for CLI 4.0)
ii  libmono-system-workflow-componentmodel4.0-cil               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Workflow.ComponentModel library (for CLI 4.0)
ii  libmono-system-workflow-runtime4.0-cil                      6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Workflow.Runtime library (for CLI 4.0)
ii  libmono-system-xaml4.0-cil                                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Xaml Library (for CLI 4.0)
ii  libmono-system-xml-linq4.0-cil                              6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Xml.Linq library (for CLI 4.0)
ii  libmono-system-xml-serialization4.0-cil                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Xml.Serialization library (for CLI 4.0)
ii  libmono-system-xml4.0-cil                                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System.Xml library (for CLI 4.0)
ii  libmono-system2.0-cil                                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System libraries (transitional package)
ii  libmono-system4.0-cil                                       6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono System libraries (for CLI 4.0)
ii  libmono-tasklets4.0-cil                                     6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Tasklets library (for CLI 4.0)
ii  libmono-webbrowser4.0-cil                                   6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Web Browser library (for CLI 4.0)
ii  libmono-webmatrix-data4.0-cil                               6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono WebMatrix.Data Library (for CLI 4.0)
ii  libmono-windowsbase4.0-cil                                  6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono WindowsBase library (for CLI 4.0)
ii  libmono-xbuild-tasks4.0-cil                                 6.8.0.105-0xamarin3+ubuntu1804b1                            all          Mono Mono.XBuild.Tasks library (for CLI 4.0)
ii  libmonoboehm-2.0-1                                          5.20.1.34-0xamarin4+ubuntu1804b1                            amd64        Mono JIT library (Boehm GC)
ii  libmonoboehm-2.0-dev                                        5.20.1.34-0xamarin4+ubuntu1804b1                            amd64        Mono JIT library - Development files (Boehm GC)
ii  libmonosgen-2.0-1                                           6.8.0.105-0xamarin3+ubuntu1804b1                            amd64        Mono JIT library (SGen GC)
ii  libmonosgen-2.0-dev                                         6.8.0.105-0xamarin3+ubuntu1804b1                            amd64        Mono JIT library - Development files (SGen GC)
jwlee-ifun commented 4 years ago

libmonoboehm-2.0-dev 패키지가 5.20 버전인 상태니 해당 패키지와 libmono-btls-interface4.0-cil 패키지도 6.8 로 업그레이드하고 다시 컴파일하고 실행해 봐 주시겠어요?

newtrocode commented 4 years ago

가이드 주신대로 해당 패키지들을 업데이트 하고나니 실행시 크래쉬가 발생하던 현상은 사라졌습니다.

다만, 여전히 funapi.DedicatedServerManagerInternal::GetGameState() 호출에 대해 다음과 같은 크래쉬가 발생합니다.

Cant resolve internal call to "funapi.DedicatedServerManagerInternal::GetGameState" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "funapi.DedicatedServerManagerInternal::GetGameState" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
F0521 17:44:51.051231 31325 runtime.cc:916] Unhandled Exception In C#
============================================================
System.MissingMethodException:  assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) funapi.DedicatedServerManagerInternal.GetGameState(System.Guid,funapi.DedicatedServerManager/GetGameStateCallback)
  at funapi.DedicatedServerManager.GetGameState (System.Guid match_id, funapi.DedicatedServerManager+GetGameStateCallback callback) [0x00000] in /ramfs/workspace/mono/funapi/dedicated_server_manager.cs:80 
  at BforceIfunCsV2.DedicateHelper.OnSendCallback (System.Guid match_id, System.Collections.Generic.List`1[T] users, System.Boolean success) [0x0008c] in /home/ubuntu/bforce_ifun_cs_v2/mono/dedicate_helper.cs:79 
  at (wrapper delegate-invoke) <Module>.invoke_void_Guid_List`1<string>_bool(System.Guid,System.Collections.Generic.List`1<string>,bool)
============================================================
*** Check failure stack trace: ***
E0521 17:44:51.056955 31325 main.cc:512] Fatal log information: thread=CurlIoGroup
I0521 17:44:51.057085 31325 fault.cc:339] Caught signal(thread=CurlIoGroup): 6 (Aborted)
E0521 17:44:51.202797 31325 fault.cc:547] Crashdump written to /home/ubuntu/bforce_ifun_cs_v2/build/dumps/92394bec-4907-40c4-aaa3fcaf-78a33644.dmp
E0521 17:44:51.202914 31325 main.cc:210] Crashed: Thread=CurlIoGroup, Event=
E0521 17:44:51.202988 31325 fault.cc:406] Waiting for finalization.
E0521 17:44:51.203007 31263 framework.cc:91] System has been crashed. (Thread=CurlIoGroup, 1.0.0-5295bionic)
E0521 17:44:51.203065 31263 framework.cc:106] Shutdown SessionService.
E0521 17:44:51.203136 31263 framework.cc:106] Shutdown EventDispatcher.
E0521 17:44:51.203244 31263 framework.cc:106] Shutdown ObjectLeaser.
E0521 17:44:51.203271 31263 framework.cc:106] Shutdown ObjectTransaction.
E0521 17:44:51.204538 31263 framework.cc:106] Shutdown ObjectDatabase.
I0521 17:44:51.204592 31263 object_database.cc:4145] Flushing 0 update queries
E0521 17:44:51.204608 31263 framework.cc:106] Shutdown RpcService.
I0521 17:44:51.206015 31263 redis_rpc_service.cc:1990] FlushMyObsoleteObjectsOnShutdown() started.
W0521 17:44:51.206053 31263 redis_rpc_service.cc:1656] Flushing ownerships: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, connection_id=df57a51e-aa17-431e-a81d-306a46d2be76
W0521 17:44:51.206996 31346 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=account 2/2/2
W0521 17:44:51.218391 31346 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=object 1000/1000/1000
W0521 17:44:51.218644 31346 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=object_key 0/0/0
W0521 17:44:51.219027 31346 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=world 0/0/0
I0521 17:44:51.219187 31263 redis_rpc_service.cc:1998] FlushMyObsoleteObjectsOnShutdown() done.
E0521 17:44:51.220885 31263 framework.cc:106] Shutdown IoService.
The terminal process terminated with exit code: 134

추가적으로 시작시 로그에 icall.c:1726: 관련 로그가 출력됩니다.

또한 인텔리센스 역시 작동되지 않고있네요.


I0521 17:16:37.616262 23608 main.cc:633] Engine version: 1.0.0-5295bionic
I0521 17:16:37.616540 23608 main.cc:634] Locale: C.UTF-8
I0521 17:16:37.616561 23608 main.cc:641] Command line arguments: [/usr/bin/funapi_runner]
I0521 17:16:37.616575 23608 main.cc:642] Server flavor: default
I0521 17:16:37.805765 23608 main.cc:666] License info: {"production":true,"expires":"2020-Dec-31 23:59:59"}
I0521 17:16:37.808638 23608 manifest_handler.cc:359] Reading "/home/ubuntu/bforce_ifun_cs_v2/build/manifests/default/MANIFEST.json"
I0521 17:16:37.813604 23608 manifest_handler.cc:757] /home/ubuntu/bforce_ifun_cs_v2/build/src/libbforce_ifun_cs_v2.so loaded.
I0521 17:16:37.813783 23608 main.cc:728] Loading Mono runtime and managed app: mono_dll_path=/home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/BforceIfunCsV2.dll
I0521 17:16:38.768115 23608 runtime.cc:153] Mono assembly loaded: BforceIfunCsV2, Version=1.0.7446.29324
I0521 17:16:38.768324 23608 runtime.cc:153] Mono assembly loaded: Newtonsoft.Json, Version=9.0.0.0
I0521 17:16:38.768496 23608 runtime.cc:153] Mono assembly loaded: funapi, Version=1.0.7430.26677
I0521 17:16:38.768642 23608 runtime.cc:153] Mono assembly loaded: protobuf-net, Version=2.0.0.668
I0521 17:16:38.768663 23608 runtime.cc:127] Mono assembly loaded: mscorlib, Version=4.0.0.0
I0521 17:16:38.768887 23608 runtime.cc:127] Mono assembly loaded: System, Version=4.0.0.0
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
icall.c:1726:
I0521 17:16:38.798177 23608 manifest_handler.cc:840] Initializing RawTimer
I0521 17:16:38.798386 23608 manifest_handler.cc:840] Initializing Framework
I0521 17:16:38.798408 23608 manifest_handler.cc:840] Initializing AppInfo
I0521 17:16:38.798519 23608 manifest_handler.cc:840] Initializing IoService
I0521 17:16:38.798947 23608 manifest_handler.cc:840] Initializing Logging
I0521 17:16:38.799192 23608 manifest_handler.cc:840] Initializing HardwareInfo

..

I0521 17:16:38.836894 23608 object.cc:1018] Finished database checking.
icall.c:1726:
icall.c:1726:
icall.c:1726:
jwlee-ifun commented 4 years ago

먼저, funapi.DedicatedServerManagerInternal::GetGameState() 함수를 호출했을 때, 크래시하는 부분과 인텔리센스 기능이 동작하지 않는 부분에 대해서는 추가확인 후 다시 답변 드리록 하겠습니다.

단, OmniSharp 서버를 통한 C# 디버깅 기능은 mono 에서 동작하지 않으며 대신 mono debug 을 사용하시면 됩니다.

마지마긍로 icall.c:1726: 메시지가 출력되는 부분은 mono 쪽에서 출력하는 메시지로 보이며 끌 수 있는 방법이 있을지 알아보겠습니다.

dkmoon commented 4 years ago

혹시 funapi.dll 을 직접 복사해서 쓰고 계신가요? 아래 로그에서 funapi.dll 의 경로가 특이해서 질문드립니다. funapi.dll 은 아이펀 엔진에 포함된 것이라서 엔진이 업데이트 될 때마다 새 버전을 쓰셔야 됩니다.

Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll

MethodNotFound exception 에 대한 아래 링크의 설명을 볼 때 이전의 funapi.dll 이 존재할 때 문제가 될 수도 있을 것 같으니 번거로우시겠지만 funapi.dll 을 지우고 테스트 해 봐 주실 수 있을까요? 만일 직접 복사하신 것이 아니라면 clean 후에 다시 build 를 해봐주시면 감사하겠습니다.

MethodNotFound exception 관련 참고 링크: https://stackoverflow.com/questions/8058832/system-missingmethodexception-method-not-found

newtrocode commented 4 years ago

직접 복사해서 사용하지 않습니다.

프로젝트 생성시 그대로 사용중입니다.

/home/ubuntu/bforce_ifun_cs_v2/mono에서 bin과 obj를 다 지우고 빌드해도 동일한 현상이 발생합니다.

newtrocode commented 4 years ago

build log는 다음과 같습니다.


> Executing task: cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} /home/ubuntu/bforce_ifun_cs_v2 <

-- Not using ccache.
-- No flavor was given. Adding a default flavor
-- Variable OBJECT_MODEL_FILES were not set. Assuming JSON files under /home/ubuntu/bforce_ifun_cs_v2/src/object_model/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/bforce_ifun_cs_v2/build

Terminal will be reused by tasks, press any key to close it.

> Executing task: cmake --build /home/ubuntu/bforce_ifun_cs_v2/build -- -k -j2 <

[  2%] Built target internal_import_manifest_dirs
[ 11%] Built target internal_import_resource_dirs
[ 16%] Built target internal_create_launchers
[ 19%] Generating ../../mono/bin/Debug/BforceIfunCsV2.dll, build_always
[ 64%] Built target bforce_ifun_cs_v2

>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

XBuild Engine Version 14.0
Mono, Version 6.8.0.105
Copyright (C) 2005-2013 Various Mono authors

Build started 05/21/2020 21:06:28.
__________________________________________________
Project "/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj" (default target(s)):
        Target PrepareForBuild:
                Configuration: Debug Platform: AnyCPU
                Created directory "bin/Debug/"
                Created directory "obj/Debug/"
        Target CopyFilesMarkedCopyLocal:
                Copying file from '/usr/lib/funapi/funapi.dll' to '/home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll'
                Copying file from '/usr/lib/funapi/Newtonsoft.Json.dll' to '/home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/Newtonsoft.Json.dll'
                Copying file from '/usr/lib/funapi/protobuf-net.dll' to '/home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/protobuf-net.dll'
        Target GenerateSatelliteAssemblies:
        No input files were specified for target GenerateSatelliteAssemblies, skipping.
        Target CoreCompile:
                Tool /usr/lib/mono/4.5/csc.exe execution started with arguments: /noconfig /debug:full /debug:portable /optimize- /out:obj/Debug/BforceIfunCsV2.dll utility.cs match_status.cs dedicate_helper.cs matchmaking_server.cs common.cs server.cs Properties/AssemblyInfo.cs ActivityLog/bforce_ifun_cs_v2_loggers.cs ObjectModel/bforce_ifun_cs_v2_object.cs Protobuf/bforce_ifun_cs_v2_messages.cs Protobuf/bforce_ifun_cs_v2_protobuf_helper.cs obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs /target:library /define:DEBUG /nostdlib /reference:/usr/lib/mono/4.0-api/System.dll /reference:/usr/lib/mono/4.0-api/System.Xml.dll /reference:/usr/lib/funapi/funapi.dll /reference:/usr/lib/funapi/Newtonsoft.Json.dll /reference:/usr/lib/funapi/protobuf-net.dll /reference:/usr/lib/mono/4.0-api/System.Core.dll /reference:/usr/lib/mono/4.0-api//mscorlib.dll /warn:4
                Microsoft (R) Visual C# Compiler version 3.5.0-beta1-19606-04 (d2bd58c6)
                Copyright (C) Microsoft Corporation. All rights reserved.
        Target DeployOutputFiles:
                Copying file from '/home/ubuntu/bforce_ifun_cs_v2/mono/obj/Debug/BforceIfunCsV2.pdb' to '/home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/BforceIfunCsV2.pdb'
                Copying file from '/home/ubuntu/bforce_ifun_cs_v2/mono/obj/Debug/BforceIfunCsV2.dll' to '/home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/BforceIfunCsV2.dll'
Done building project "/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj".

Build succeeded.
         0 Warning(s)
         0 Error(s)

Time Elapsed 00:00:01.4829970
[ 66%] Generating ../../mono/bin/Debug/funapi.dll.mdb
[100%] Built target mono_dll_build
dkmoon commented 4 years ago

감사합니다. 그리고 저희쪽에서 신속하게 문제를 해결하지 못해서 죄송합니다. 저희쪽에서 유사한 환경으로 빌드를 해보고 있는데 저희쪽에서는 확인되지 않는 문제라서 어려움을 겪고 있습니다.

제가 착각했던 것 같은데, 올려주신 build log 에서도 보실 수 있듯 funapi.dll 은 /usr/lib/funapi/funapi.dll 을 프로젝트 디렉토리로 복사하게끔 되어있습니다. 그러니 현재 디렉토리에 이 파일을 가지고 계신 것은 문제가 아닌 것 같습니다.

저희 DedicatedServerManager.GetGameState 의 구현은 아주 단순해서 다른 C# method 를 호출하지는 않습니다. 그리고 google 검색을 해보면 MethodNotFound 는 정말로 method 가 없어서 생기는 것이 아니라 dll loading 이 꼬이면서 생기는 경우가 주요 이유인 것 같습니다.

번거로우시겠지만, /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj 파일을 여시고 맨 마지막 </Project> 직전에 다음을 추가한 후 rebuild 후 테스트 해봐주실 수 있을까요?

<PropertyGroup>
  <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>

</Project> 앞에 추가해주셔야 됩니다.

newtrocode commented 4 years ago

늦은시간까지 지속적인 대응 감사드립니다.

가이드 주신대로 다음과 같이 추가하고 리빌드 했으나 동일하게 crash 가 발생합니다.


    <ContentFiles Include="..\src\*.proto"><Link>Protobuf\*.proto</Link><Link>Protobuf\%(Filename)%(Extension)</Link></ContentFiles>
    <Compile Include="Protobuf\bforce_ifun_cs_v2_messages.cs" />
    <Compile Include="Protobuf\bforce_ifun_cs_v2_protobuf_helper.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <PropertyGroup>
  <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
  </PropertyGroup>
</Project>
cant resolve internal call to "funapi.DedicatedServerManagerInternal::GetGameState" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "funapi.DedicatedServerManagerInternal::GetGameState" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /home/ubuntu/bforce_ifun_cs_v2/mono/bin/Debug/funapi.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
F0521 21:47:26.691458  2181 runtime.cc:916] Unhandled Exception In C#
============================================================
System.MissingMethodException:  assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) funapi.DedicatedServerManagerInternal.GetGameState(System.Guid,funapi.DedicatedServerManager/GetGameStateCallback)
  at funapi.DedicatedServerManager.GetGameState (System.Guid match_id, funapi.DedicatedServerManager+GetGameStateCallback callback) [0x00000] in /ramfs/workspace/mono/funapi/dedicated_server_manager.cs:80 
  at BforceIfunCsV2.DedicateHelper.OnSendCallback (System.Guid match_id, System.Collections.Generic.List`1[T] users, System.Boolean success) [0x0008c] in /home/ubuntu/bforce_ifun_cs_v2/mono/dedicate_helper.cs:79 
  at (wrapper delegate-invoke) <Module>.invoke_void_Guid_List`1<string>_bool(System.Guid,System.Collections.Generic.List`1<string>,bool)
============================================================
*** Check failure stack trace: ***
E0521 21:47:26.694948  2181 main.cc:512] Fatal log information: thread=CurlIoGroup
I0521 21:47:26.695160  2181 fault.cc:339] Caught signal(thread=CurlIoGroup): 6 (Aborted)
E0521 21:47:26.839124  2181 fault.cc:547] Crashdump written to /home/ubuntu/bforce_ifun_cs_v2/build/dumps/9575601b-606f-43fe-6856e584-d843a1ad.dmp
E0521 21:47:26.839356  2181 main.cc:210] Crashed: Thread=CurlIoGroup, Event=
E0521 21:47:26.839516  2181 fault.cc:406] Waiting for finalization.
E0521 21:47:26.839571  2129 framework.cc:91] System has been crashed. (Thread=CurlIoGroup, 1.0.0-5295bionic)
E0521 21:47:26.839704  2129 framework.cc:106] Shutdown SessionService.
E0521 21:47:26.839782  2129 framework.cc:106] Shutdown EventDispatcher.
E0521 21:47:26.839998  2129 framework.cc:106] Shutdown ObjectLeaser.
E0521 21:47:26.840620  2129 framework.cc:106] Shutdown ObjectTransaction.
E0521 21:47:26.841419  2129 framework.cc:106] Shutdown ObjectDatabase.
I0521 21:47:26.841526  2129 object_database.cc:4145] Flushing 0 update queries
E0521 21:47:26.841545  2129 framework.cc:106] Shutdown RpcService.
I0521 21:47:26.843268  2129 redis_rpc_service.cc:1990] FlushMyObsoleteObjectsOnShutdown() started.
W0521 21:47:26.843376  2129 redis_rpc_service.cc:1656] Flushing ownerships: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, connection_id=41d87ee9-8e41-4c02-ab3e-a9e8757bc485
W0521 21:47:26.844059  2209 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=account 2/2/2
W0521 21:47:26.854449  2209 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=object 1000/1000/1000
W0521 21:47:26.854840  2209 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=object_key 0/0/0
W0521 21:47:26.855331  2209 redis_rpc_service.cc:1663] Ownerships flushed: peer_id=0241ddce-e4ba-4f1f-0000-000000000000, type=world 0/0/0
I0521 21:47:26.855649  2129 redis_rpc_service.cc:1998] FlushMyObsoleteObjectsOnShutdown() done.
E0521 21:47:26.857300  2129 framework.cc:106] Shutdown IoService.
The terminal process terminated with exit code: 134

혹시나 funapi.dll 이 여러개 있나 싶어서 전체 검색을 했으나 /usr/lib/funapi 와 해당 프로젝트 bin 이에외는 없었습니다.

jwlee-ifun commented 4 years ago

안녕하세요.

C# 프로젝트에서 GetGameState() 함수를 호출했을 때, 크래시하는 문제를 수정한 아이펀 엔진 1.0.0-5390experimental 버전을 릴리즈했습니다.

현재 Stable 버전을 사용하시는 것으로 보이는데요, Stable 버전의 배포는 아직 시간이 좀 걸릴 것 같아서 당장은 Experimental 버전을 사용해 주시면 감사하겠습니다.

Experimental(시험) 버전이라고 해서 완성도가 떨어지는 상태는 아니고, 약 한달여의 간격을 두고 Experimental 버전이 Stable 버전으로 배포된다고 보시면 됩니다.

Experimental 버전으로 변경하는 방법은 다음과 같습니다.

$ sudo funapi_select_repo experimental
$ sudo apt update
$ sudo apt install funapi1-dev funapi1-runtime python-funapi1-dev

인텔리센스가 동작하지 않는 문제는 현재 확인 중입니다. OhmniSharp 에서 에러가 발생하는 이유는 mono 를 지원하지 않기 때문인 것으로 보이는데, 인텔리센스가 OhmniSharp 와 상관이 있는지는 좀 더 확인을 진행하고 알려드리겠습니다.

newtrocode commented 4 years ago

가이드 주신 대로 변경 후 빌드해보니 GetGameState()가 정상 동작합니다. 감사합니다.

jwlee-ifun commented 4 years ago

그리고, 인텔리센스가 동작하지 않는 문제는 몇가지 방향으로 확인해 봤습니다만, 플러그인의 설치 과정에서 오류가 있었던 것이 아닌지 추측 해봅니다.

번거로우시겠지만, VSCode 의 C# 플러그인Mono Debug 플러그인 을 삭제한 후에 다시 설치 해 봐 주시고, 설치 과정에서 출력되는 내용이 있으면 절달 해 주시면 도움이 될 것 같습니다.

newtrocode commented 4 years ago

C#, Mono Debug 플러그인 모두 삭제 후

캐시가 남아있을까 싶어서 리눅스 머신에

~/.vscode-server , ~/.omnisharp

위의 2개 도 삭제하고 재설치를 진행했습니다.

C# 로그

2020-05-22 16_42_09-dedicate_helper cs - bforce_ifun_cs_v2  SSH_ bforce-local2 clafgames com  - Visu

Omnisharp 로그


Starting OmniSharp server at 5/22/2020, 4:42:36 PM
    Target: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.sln

OmniSharp server started with Mono 6.8.0.
    Path: /home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/OmniSharp.exe
    PID: 17306

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            2: StandAlone 16.4 - "/home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            CscToolExe = csc.exe
            CscToolPath = /home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/Roslyn
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/ubuntu/bforce_ifun_cs_v2/mono'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/ubuntu/bforce_ifun_cs_v2/mono'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/ubuntu/bforce_ifun_cs_v2/mono' on host 17175.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj'.
/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The expression ""utility.cs".GetPathsOfAllDirectoriesAbove()" cannot be evaluated. Method 'System.String.GetPathsOfAllDirectoriesAbove' not found.  /usr/lib/mono/msbuild/Current/bin/Roslyn/Microsoft.Managed.Core.targets
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00040] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject[T1,T2] (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0, T2 arg1) [0x00003] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1,T2] (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0, T2 arg1) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+Function`1[P,I,T].Execute (System.Object objectInstance, Microsoft.Build.Evaluation.IPropertyProvider`1[T] properties, Microsoft.Build.Evaluation.ExpanderOptions options, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00425] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+IntrinsicItemFunctions`1+<ExecuteStringFunction>d__13[P,I,S].MoveNext () [0x000a3] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+<Transform>d__0`1[P,I,S].MoveNext () [0x00110] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+<Transform>d__0`1[P,I,S].MoveNext () [0x000b1] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander[P,I].ExpandExpressionCapture[S] (Microsoft.Build.Evaluation.Expander`2[P,I] expander, Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.IItemProvider`1[T] evaluatedItems, Microsoft.Build.Shared.IElementLocation elementLocation, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, System.Collections.Generic.List`1[Microsoft.Build.Shared.Pair`2[System.String,S]]& itemsFromCapture) [0x0014c] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander[P,I].ExpandExpressionCaptureIntoItems[S,T] (Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.Expander`2[P,I] expander, Microsoft.Build.Evaluation.IItemProvider`1[T] items, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00093] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2[P,I].ExpandExpressionCaptureIntoItems[S,T] (Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.IItemProvider`1[T] items, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+IncludeOperation[P,I,M,D].SelectItems (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00114] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemOperation[P,I,M,D].Apply (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00017] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+MemoizedOperation[P,I,M,D].Apply (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00006] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D].ComputeItems (Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D] lazyItemList, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00119] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D].GetItemData (System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x0001d] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+<>c[P,I,M,D].<GetAllItemsDeferred>b__28_0 (Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D] itemList) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToArray () [0x00028] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0001e] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Framework.BuildEventContext buildEventContext) [0x00333] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData`4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary`1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.BackEnd.SdkResolution.ISdkResolverService sdkResolverService, System.Int32 submissionId, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext, System.Boolean interactive) [0x0002f] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0005e] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00035] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00007] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.Initialize (System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00126] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00093] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion) [0x000f7] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.String toolsVersion) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore (System.String filePath) [0x0003f] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at OmniSharp.MSBuild.ProjectLoader.BuildProject (System.String filePath) [0x0000d] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load (System.String filePath, OmniSharp.MSBuild.ProjectIdInfo projectIdInfo, OmniSharp.MSBuild.ProjectLoader loader) [0x00015] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at OmniSharp.MSBuild.ProjectManager+<>c__DisplayClass29_0.<LoadProject>b__0 () [0x00000] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at (wrapper delegate-invoke) System.Func`1[System.ValueTuple`3[OmniSharp.MSBuild.ProjectFile.ProjectFileInfo,System.Collections.Immutable.ImmutableArray`1[OmniSharp.MSBuild.Logging.MSBuildDiagnostic],OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs]].invoke_TResult()
  at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject (System.String projectFilePath, System.Func`1[TResult] loader) [0x0001b] in <bc22df00762e49b596a3ac93333f02c7>:0 

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj

참고가 될까 싶어 인텔리센스가 정상동작 한 버젼

mono 5.20, c# 1.21.10 을 사용했을 때 로그도 추가합니다.


Starting OmniSharp server at 5/21/2020, 3:09:40 AM
    Target: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.sln

OmniSharp server started with Mono 5.20.1.
    Path: /home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.10/omnisharp/OmniSharp.exe
    PID: 4020

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.Providers.MonoInstanceProvider
        Found Mono MSBuild but it could not be used because it is version 5.20.1.34 and it needs to be >= 6.4.0. OmniSharp will use embedded Mono instead. If you encounter any problems with OmniSharp, it is recommended to upgrade your Mono to the latest version. See https://www.mono-project.com/download/stable/.
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 16.3 - "/home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.10/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.10/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 16.3 - "/home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.10/omnisharp/.msbuild/Current/Bin"
            CscToolExe = csc.exe
            MSBuildToolsPath = /home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.10/omnisharp/.msbuild/Current/Bin
            CscToolPath = /home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.10/omnisharp/.msbuild/Current/Bin/Roslyn
            BypassFrameworkInstallChecks = true
            MSBuildExtensionsPath = /home/ubuntu/.vscode-server/extensions/ms-vscode.csharp-1.21.10/.omnisharp/1.34.10/omnisharp/.msbuild
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/ubuntu/bforce_ifun_cs_v2/mono'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/ubuntu/bforce_ifun_cs_v2/mono'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/ubuntu/bforce_ifun_cs_v2/mono' on host 3906.
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: bforce_ifun_cs_v2
dkmoon commented 4 years ago

안녕하세요. 혹시 VS Code extension 중에 MSbuild Project Tools 라는 extension 을 설치하셨는지 알 수 있을까요?

로그 메시지에 보면 GetPathsOfAllDirectoriesAbove()" cannot be evaluated. 부터 오류가 시작된 것 같은데 MSbuild Project Tools 때문에 유사한 문제 가 생기는 것 같아서 여쭤봅니다.

jwlee-ifun commented 4 years ago

보내주신 오류와 비슷한 내용으로 검색 해 보면 VSCode 의 C# 플러그인과 dotnet 패키지의 버전 호환성 문제가 많이 나오는 것 같습니다.

먼저, 원인을 확인하기 위해 dotnet 패키지를 설치해서 사용하고 계시다면 삭제하고 C# 플러그인 재설치 후 진행하셨을 때 결과를 알려주시면 감사하겠습니다.

swjang-ifunfactory commented 4 years ago

여전히 인텔리 센스 기능 사용에 어려움을 겪고 계시고 가능하시다면, /home/ubuntu/bforce_ifun_cs_v2/mono/bforce_ifun_cs_v2.csproj 파일의 내용을 알려 주실 수 있을까요? 제공해 주실 수 있다면 문제 해결에 많은 도움이 될 것으로 보입니다.

newtrocode commented 4 years ago

vscode에 설치한 extension 은 다음과 같습니다.

로컬에 remote 관련된 부분, 해당 서버에 mono debug, c# 을 제외하고 별도로 설치한것은 없습니다.

2020-05-25 11_53_54-server cs - intellichk-source  SSH_ bforce-local2 clafgames com  - Visual Studio

서버에 별도의 dotnet 관련 패키지를 설치 하지는 않았습니다.

프로젝트를 새로 생성해도 동일한 문제가 발생합니다.

funapi_initiator intellichk --csharp
intellichk-source/setup_build_environment --type=vscode

새로 생성한 프로젝트 파일(intellichk.csproj)은 변경된 부분이 없지만 다시 올립니다.


<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{483D18A8-FF4D-4E61-BEA7-A6E0191E5439}</ProjectGuid>
    <OutputType>Library</OutputType>
    <RootNamespace>Intellichk</RootNamespace>
    <AssemblyName>Intellichk</AssemblyName>
    <UseMSBuildEngine>False</UseMSBuildEngine>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug</OutputPath>
    <DefineConstants>DEBUG;</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <CustomCommands>
      <CustomCommands>
        <Command type="BeforeBuild" command="mkdir -p ${TargetDir}/buildcpp" />
        <Command type="BeforeBuild" command="cmake ${ProjectDir}/.. -DSKIP_CSHARP_PROJECT_BUILD:BOOL=ON" workingdir="${TargetDir}/buildcpp" />
        <Command type="BeforeBuild" command="make" workingdir="${TargetDir}/buildcpp" />
        <Command type="BeforeClean" command="make clean" workingdir="${TargetDir}/buildcpp" />
        <Command type="Execute" command="/usr/bin/funapi_monodevelop_helper.exe" />
        <Command type="Execute" command="${TargetDir}/buildcpp/intellichk-local -tie_to_parent" workingdir="${TargetDir}/buildcpp" />
      </CustomCommands>
    </CustomCommands>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>full</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <CustomCommands>
      <CustomCommands>
        <Command type="BeforeBuild" command="mkdir -p ${TargetDir}/buildcpp" />
        <Command type="BeforeBuild" command="cmake ${ProjectDir}/.. -DSKIP_CSHARP_PROJECT_BUILD:BOOL=ON" workingdir="${TargetDir}/buildcpp" />
        <Command type="BeforeBuild" command="make" workingdir="${TargetDir}/buildcpp" />
        <Command type="BeforeClean" command="make clean" workingdir="${TargetDir}/buildcpp" />
        <Command type="Execute" command="/usr/bin/funapi_monodevelop_helper.exe" />
        <Command type="Execute" command="${TargetDir}/buildcpp/intellichk-local -tie_to_parent" workingdir="${TargetDir}/buildcpp" />
      </CustomCommands>
    </CustomCommands>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Xml" />
    <Reference Include="funapi">
      <HintPath>/usr\lib\funapi\funapi.dll</HintPath>
    </Reference>
    <Reference Include="Newtonsoft.Json">
      <HintPath>/usr\lib\funapi\Newtonsoft.Json.dll</HintPath>
    </Reference>
    <Reference Include="protobuf-net">
      <HintPath>/usr\lib\funapi\protobuf-net.dll</HintPath>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="server.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <ContentFiles Include="..\src\intellichk_loggers.json"><Link>ActivityLog\intellichk_loggers.json</Link></ContentFiles>
    <Compile Include="ActivityLog\intellichk_loggers.cs" />
  </ItemGroup>
  <ItemGroup>
    <ContentFiles Include="..\src\*MANIFEST*.json"><Link>Manifest\*MANIFEST*.json</Link><Link>Manifest\%(Filename)%(Extension)</Link></ContentFiles>
  </ItemGroup>
  <ItemGroup>
    <ContentFiles Include="..\src\object_model\*.json"><Link>ObjectModel\*.json</Link><Link>ObjectModel\%(Filename)%(Extension)</Link></ContentFiles>
    <Compile Include="ObjectModel\intellichk_object.cs" />
  </ItemGroup>
  <ItemGroup>
    <ContentFiles Include="..\src\*.proto"><Link>Protobuf\*.proto</Link><Link>Protobuf\%(Filename)%(Extension)</Link></ContentFiles>
    <Compile Include="Protobuf\intellichk_messages.cs" />
    <Compile Include="Protobuf\intellichk_protobuf_helper.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>

Omnisharp Log


Starting OmniSharp server at 5/25/2020, 11:53:02 AM
    Target: /home/ubuntu/intellichk-source/mono/intellichk.sln

OmniSharp server started with Mono 6.8.0.
    Path: /home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/OmniSharp.exe
    PID: 28907

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            2: StandAlone 16.4 - "/home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            CscToolExe = csc.exe
            CscToolPath = /home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/Roslyn
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/ubuntu/intellichk-source/mono'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/home/ubuntu/intellichk-source/mono/intellichk.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/ubuntu/intellichk-source/mono/intellichk.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/ubuntu/intellichk-source/mono'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/ubuntu/intellichk-source/mono/intellichk.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/ubuntu/intellichk-source/mono' on host 28826.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file '/home/ubuntu/intellichk-source/mono/intellichk.csproj'.
/home/ubuntu/intellichk-source/mono/intellichk.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The expression ""server.cs".GetPathsOfAllDirectoriesAbove()" cannot be evaluated. Method 'System.String.GetPathsOfAllDirectoriesAbove' not found.  /usr/lib/mono/msbuild/Current/bin/Roslyn/Microsoft.Managed.Core.targets
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00040] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject[T1,T2] (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0, T2 arg1) [0x00003] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1,T2] (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0, T2 arg1) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+Function`1[P,I,T].Execute (System.Object objectInstance, Microsoft.Build.Evaluation.IPropertyProvider`1[T] properties, Microsoft.Build.Evaluation.ExpanderOptions options, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00425] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+IntrinsicItemFunctions`1+<ExecuteStringFunction>d__13[P,I,S].MoveNext () [0x000a3] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+<Transform>d__0`1[P,I,S].MoveNext () [0x00110] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander+<Transform>d__0`1[P,I,S].MoveNext () [0x000b1] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander[P,I].ExpandExpressionCapture[S] (Microsoft.Build.Evaluation.Expander`2[P,I] expander, Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.IItemProvider`1[T] evaluatedItems, Microsoft.Build.Shared.IElementLocation elementLocation, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, System.Collections.Generic.List`1[Microsoft.Build.Shared.Pair`2[System.String,S]]& itemsFromCapture) [0x0014c] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2+ItemExpander[P,I].ExpandExpressionCaptureIntoItems[S,T] (Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.Expander`2[P,I] expander, Microsoft.Build.Evaluation.IItemProvider`1[T] items, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00093] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Expander`2[P,I].ExpandExpressionCaptureIntoItems[S,T] (Microsoft.Build.Evaluation.ExpressionShredder+ItemExpressionCapture expressionCapture, Microsoft.Build.Evaluation.IItemProvider`1[T] items, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.ExpanderOptions options, System.Boolean includeNullEntries, System.Boolean& isTransformExpression, Microsoft.Build.Shared.IElementLocation elementLocation) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+IncludeOperation[P,I,M,D].SelectItems (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00114] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemOperation[P,I,M,D].Apply (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00017] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+MemoizedOperation[P,I,M,D].Apply (System.Collections.Immutable.ImmutableList`1+Builder[T] listBuilder, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00006] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D].ComputeItems (Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D] lazyItemList, System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x00119] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D].GetItemData (System.Collections.Immutable.ImmutableHashSet`1[T] globsToIgnore) [0x0001d] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.LazyItemEvaluator`4+<>c[P,I,M,D].<GetAllItemsDeferred>b__28_0 (Microsoft.Build.Evaluation.LazyItemEvaluator`4+LazyItemList[P,I,M,D] itemList) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].ToArray () [0x00028] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at System.Linq.Buffer`1[TElement]..ctor (System.Collections.Generic.IEnumerable`1[T] source) [0x0000a] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0001e] in <59093ef301a24e5a91cb0295fb832cca>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Framework.BuildEventContext buildEventContext) [0x00333] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData`4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary`1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.BackEnd.SdkResolution.ISdkResolverService sdkResolverService, System.Int32 submissionId, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext, System.Boolean interactive) [0x0002f] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0005e] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00035] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00007] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project.Initialize (System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00126] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00093] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion) [0x000f7] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.String toolsVersion) [0x00000] in <70c33ec047904cc3aa7b831065ff574e>:0 
  at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore (System.String filePath) [0x0003f] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at OmniSharp.MSBuild.ProjectLoader.BuildProject (System.String filePath) [0x0000d] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load (System.String filePath, OmniSharp.MSBuild.ProjectIdInfo projectIdInfo, OmniSharp.MSBuild.ProjectLoader loader) [0x00015] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at OmniSharp.MSBuild.ProjectManager+<>c__DisplayClass29_0.<LoadProject>b__0 () [0x00000] in <bc22df00762e49b596a3ac93333f02c7>:0 
  at (wrapper delegate-invoke) System.Func`1[System.ValueTuple`3[OmniSharp.MSBuild.ProjectFile.ProjectFileInfo,System.Collections.Immutable.ImmutableArray`1[OmniSharp.MSBuild.Logging.MSBuildDiagnostic],OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs]].invoke_TResult()
  at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject (System.String projectFilePath, System.Func`1[TResult] loader) [0x0001b] in <bc22df00762e49b596a3ac93333f02c7>:0 

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: /home/ubuntu/intellichk-source/mono/intellichk.csproj
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /home/ubuntu/intellichk-source/mono/ActivityLog/intellichk_loggers.cs added to workspace
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /home/ubuntu/intellichk-source/mono/ObjectModel/intellichk_object.cs added to workspace
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /home/ubuntu/intellichk-source/mono/Protobuf/intellichk_messages.cs added to workspace
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /home/ubuntu/intellichk-source/mono/Protobuf/intellichk_protobuf_helper.cs added to workspace
[info]: OmniSharp.OmniSharpWorkspace
        Miscellaneous file: /home/ubuntu/intellichk-source/mono/obj/Debug/.NETFramework,Version=v4.0.AssemblyAttribute.cs added to workspace
newtrocode commented 4 years ago

기존 패키지의 종속성이나 잔존하는 파일들이 있을 수 있으니 새로운 서버 인스턴스를 생성해서 다시 환경 구축 해보는 중입니다.

newtrocode commented 4 years ago

방금 신규 인스턴스로 동일하게 설치한 결과 인텔리센스가 정상 동작하는것을 확인했습니다.

문제 해결을 위해 다양한 부분에서 가이드 주신 점 감사드립니다.


Starting OmniSharp server at 5/25/2020, 3:17:41 AM
    Target: /home/ubuntu/intellichk-source/mono/intellichk.sln

OmniSharp server started with Mono 6.8.0.
    Path: /home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/OmniSharp.exe
    PID: 14413

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 18.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            2: StandAlone 16.4 - "/home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            CscToolExe = csc.exe
            CscToolPath = /home/ubuntu/.vscode-server/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/Roslyn
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/ubuntu/intellichk-source/mono'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/home/ubuntu/intellichk-source/mono/intellichk.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/ubuntu/intellichk-source/mono/intellichk.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/ubuntu/intellichk-source/mono'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/ubuntu/intellichk-source/mono/intellichk.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/ubuntu/intellichk-source/mono' on host 14333.
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/ubuntu/intellichk-source/mono/intellichk.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/ubuntu/intellichk-source/mono/intellichk.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: intellichk
dkmoon commented 4 years ago

확인 감사합니다. 문제가 잘 해결되셨다니 다행입니다. 아마 VM instance 내에 상충되는 패키지들이 있었던 것 같습니다. 해결되셨다니 본 이슈는 close 처리하도록 하겠습니다.