Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashing #382

Open
igl-x2 opened this issue Jul 8, 2024 · 5 comments
Open

App crashing #382

igl-x2 opened this issue Jul 8, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@igl-x2
Copy link

igl-x2 commented Jul 8, 2024

After the latest update, the app (on Android 12) now just crashes/shutsdown after a random amount of time.
Before the app actually closes, it becomes very choppy and unresponsive.
Logs are attached
mobileraker_2024-07-08T19-19-44.log
mobileraker_2024-07-08T19-22-47.log
mobileraker_2024-07-08T19-27-41.log
mobileraker_2024-07-08T19-28-03.log
mobileraker_2024-07-08T19-19-24.log

@igl-x2 igl-x2 added the bug Something isn't working label Jul 8, 2024
@Clon1998
Copy link
Owner

Clon1998 commented Jul 8, 2024

Hey,
seems like the issue is caused by the WebRTC library I am using.
I will see what I can do.

@hamid-elaosta
Copy link

Hey,
seems like the issue is caused by the WebRTC library I am using.
I will see what I can do.

I was about to raise a separate ticket about Webrtc, but it sounds like you're aware of a potential issue already. When I use mjpeg camera it is pretty stable but since switching to webrtc camera it crashes frequently, almost every time I open it, it'll crash after a few seconds. Quite often it won't connect to the printer or won't load the camera, if I force stop the app it'll work for a short while then the app just instantly closes, it'll keep closing after a few seconds every time I open it.

Happy to provide some logs etc if it helps.

@Clon1998
Copy link
Owner

Clon1998 commented Aug 2, 2024

Hey,
seems like the issue is caused by the WebRTC library I am using.
I will see what I can do.

I was about to raise a separate ticket about Webrtc, but it sounds like you're aware of a potential issue already. When I use mjpeg camera it is pretty stable but since switching to webrtc camera it crashes frequently, almost every time I open it, it'll crash after a few seconds. Quite often it won't connect to the printer or won't load the camera, if I force stop the app it'll work for a short while then the app just instantly closes, it'll keep closing after a few seconds every time I open it.

Happy to provide some logs etc if it helps.

I am still looking into it. For me and many other IOS users it is working fine.
Maybe more data can help me to resolve this issue therefore, can you provide me:

  1. Log files
  2. Version of the app
  3. Device/OS

@hamid-elaosta
Copy link

Hey,
seems like the issue is caused by the WebRTC library I am using.
I will see what I can do.

I was about to raise a separate ticket about Webrtc, but it sounds like you're aware of a potential issue already. When I use mjpeg camera it is pretty stable but since switching to webrtc camera it crashes frequently, almost every time I open it, it'll crash after a few seconds. Quite often it won't connect to the printer or won't load the camera, if I force stop the app it'll work for a short while then the app just instantly closes, it'll keep closing after a few seconds every time I open it.

Happy to provide some logs etc if it helps.

I am still looking into it. For me and many other IOS users it is working fine.
Maybe more data can help me to resolve this issue therefore, can you provide me:

  1. Log files
  2. Version of the app
  3. Device/OS

I've got the log files but will need to sanitise them when I get back to my computer as they contain PII.

Here's a quick excerpt of the errors I see:

19:34:08.343 (+0:00:01.030640)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037509)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037640)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037722)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037783)
鈿狅笍 Caught exception while sending ICECandidate to server
19:34:08.413 (+0:00:01.100947)
馃挕 Received a new ICE candidate
19:34:08.415 (+0:00:01.102651)
馃挕 Received a new ICE candidate
19:34:08.415 (+0:00:01.103011)
馃挕 Received a new ICE candidate
19:34:08.417 (+0:00:01.104738)
馃挕 Received a new ICE candidate
19:34:08.418 (+0:00:01.105917)
馃挕 Received a new ICE candidate
19:34:08.418 (+0:00:01.106077)
馃挕 Received a new ICE candidate
19:34:08.420 (+0:00:01.107403)
馃挕 Received a new ICE candidate
19:34:08.420 (+0:00:01.107526)
馃挕 Received a new ICE candidate
19:34:08.420 (+0:00:01.107621)
馃挕 Received a new ICE candidate
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.430 (+0:00:01.117753)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

App: 2.7.1-511
Device/OS: OnePlus 9 Pro, Android 14

I'll update later with full logs.

@Clon1998
Copy link
Owner

Clon1998 commented Aug 2, 2024

Hey,
seems like the issue is caused by the WebRTC library I am using.
I will see what I can do.

I was about to raise a separate ticket about Webrtc, but it sounds like you're aware of a potential issue already. When I use mjpeg camera it is pretty stable but since switching to webrtc camera it crashes frequently, almost every time I open it, it'll crash after a few seconds. Quite often it won't connect to the printer or won't load the camera, if I force stop the app it'll work for a short while then the app just instantly closes, it'll keep closing after a few seconds every time I open it.
Happy to provide some logs etc if it helps.

I am still looking into it. For me and many other IOS users it is working fine.
Maybe more data can help me to resolve this issue therefore, can you provide me:

  1. Log files
  2. Version of the app
  3. Device/OS

I've got the log files but will need to sanitise them when I get back to my computer as they contain PII.

Here's a quick excerpt of the errors I see:

19:34:08.343 (+0:00:01.030640)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037509)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037640)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037722)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.350 (+0:00:01.037783)
鈿狅笍 Caught exception while sending ICECandidate to server
19:34:08.413 (+0:00:01.100947)
馃挕 Received a new ICE candidate
19:34:08.415 (+0:00:01.102651)
馃挕 Received a new ICE candidate
19:34:08.415 (+0:00:01.103011)
馃挕 Received a new ICE candidate
19:34:08.417 (+0:00:01.104738)
馃挕 Received a new ICE candidate
19:34:08.418 (+0:00:01.105917)
馃挕 Received a new ICE candidate
19:34:08.418 (+0:00:01.106077)
馃挕 Received a new ICE candidate
19:34:08.420 (+0:00:01.107403)
馃挕 Received a new ICE candidate
19:34:08.420 (+0:00:01.107526)
馃挕 Received a new ICE candidate
19:34:08.420 (+0:00:01.107621)
馃挕 Received a new ICE candidate
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

19:34:08.430 (+0:00:01.117753)
鈿狅笍 Caught exception while sending ICECandidate to server
MobilerakerDioException [DioExceptionType.badResponse]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

App: 2.7.1-511 Device/OS: OnePlus 9 Pro, Android 14

I'll update later with full logs.

Thanks, Ill dig into that. But it seems like the Flutter Logs arent helpful at all.
I'll test it on my local android device to see what is going on.

Edit: Can you also provide me the version of crownsnest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants