Opened 14 months ago
Last modified 14 months ago
#18619 new bug
HaikuDepot crashes when system is offline
Reported by: | grexe | Owned by: | apl-haiku |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Applications/HaikuDepot | Version: | R1/beta4 |
Keywords: | crash, network, consistency, UI | Cc: | |
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description (last modified by )
using latest nightly as of now, which is hrev-57309.
since Haiku does not automatically bring up my wireless network (known and already several times connected, separate issue/feature request), I often forget that I am still offline.
While SoftwareUpdater checks network access at startup and properly fails if offline, HaikuDepot does not, but crashes later when trying to fetch package info. (the system date is set far in the future when offline, 15.04.2065, so that might contribute to the issue)
Let's fail fast and be consistent, so HaikuDepot should at least report that it is not connected to the net (user might still want to change config or inspect installed apps, so it should not force nor expect being online all the time).
Attachments (2)
Change History (5)
by , 14 months ago
Attachment: | HaikuDepot-1843_offline-debug-15-04-2065-18-39-13.report added |
---|
by , 14 months ago
Attachment: | HaikuDepot_crash_on_browse added |
---|
relevant snippet of the application log
comment:1 by , 14 months ago
Description: | modified (diff) |
---|
comment:2 by , 14 months ago
Description: | modified (diff) |
---|
comment:3 by , 14 months ago
This evening I have been trying to reproduce the problem you have described without success. I have been able to use HD including browsing packages with and without networking enabled (using the "Network" preferences) and I have been able to set the clock to 2065 or so and also tested this scenario without any problems. To exclude the possibility that it some aspect of your setup, would you be able to reproduce the issue from cold with a VM or another computer?
Let's fail fast and be consistent, so HaikuDepot should at least report that it is not connected to the net (user might still want to change config or inspect installed apps, so it should not force nor expect being online all the time).
The application should already been behaving well when there is no network. You can see the detection code for this in ServerHelper::IsNetworkAvailable()
and ServerHelper::IsPlatformNetworkAvailable()
.
crashlog, has time far in the future due to system being offline, so maybe that's causing the issue