I have a docker container with .net core web app on it.
The docker has been exited with error code 139.
Docker inspect has no oom indication
When I looked at the logs I saw this, and no more hints:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Services.Web.Services.ProductClient.RunCient.<>c__DisplayClass5_0.<<ScrapeProfileInfo>b__0>d.MoveNext() in /src/Services.Web/Services/Clients/ProductClient.cs:line 30
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
In ProductClient.cs: line 30 there is no potential risk of null exception...
if (txt == string.Empty) return;
- What may cause this exception, this line has no risk at all?
- Docker does not suppose to exist just because of one exception, does it hint to what may happened?
I'm hosted on the Google cloud platform. the docker is on a ubuntu server under compute engine... (docker-compose)
Update
The build is a docker build
RUN dotnet build "TestServices.Web.csproj" -c Release -o /app/build
Not using c# nullable feature
Thanks