BeoCode/Weather
Archived
6
0
Fork
You've already forked Weather
11

[BUG] Crash when opening the app #89

Open
opened 2024年03月19日 23:12:41 +01:00 by Untouched3588 · 6 comments

Summary

  • Crash on start caused by org.json.JSONException: No value for visibility

Steps to reproduce

  1. Try to open the app
  2. It crashes

Expected behaviour

Actual behaviour

Environment data

  • Android version: 14

  • Device model:

  • Stock or customized system:

  • Weather app version: 3.20 and 3.20.1

Relevant screenshots

type: crash
package: de.beowulf.wetter:61
process: de.beowulf.wetter
processUptime: 694 + 242 ms
installer:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:562)
	at com.android.internal.os.ExecInit.main(ExecInit.java:49)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	... 3 more
Caused by: org.json.JSONException: No value for visibility
	at org.json.JSONObject.get(JSONObject.java:398)
	at org.json.JSONObject.getDouble(JSONObject.java:453)
	at s2.e.v(SourceFile:3)
	at androidx.fragment.app.n.D(SourceFile:20)
	at androidx.fragment.app.e0.f(SourceFile:160)
	at androidx.fragment.app.e0.k(SourceFile:137)
	at androidx.fragment.app.y.z(SourceFile:568)
	at androidx.fragment.app.y.R(Unknown Source:84)
	at androidx.fragment.app.y.y(SourceFile:32)
	at androidx.viewpager2.adapter.FragmentStateAdapter.p(SourceFile:160)
	at androidx.viewpager2.adapter.FragmentStateAdapter.j(SourceFile:3)
	at androidx.recyclerview.widget.b.a(SourceFile:44)
	at androidx.recyclerview.widget.RecyclerView$l.b(SourceFile:268)
	at androidx.recyclerview.widget.LinearLayoutManager.W0(SourceFile:34)
	at androidx.recyclerview.widget.LinearLayoutManager.J0(SourceFile:54)
	at androidx.recyclerview.widget.LinearLayoutManager.c0(SourceFile:942)
	at androidx.recyclerview.widget.RecyclerView.r(SourceFile:35)
	at androidx.recyclerview.widget.RecyclerView.p(SourceFile:91)
	at androidx.recyclerview.widget.RecyclerView.onLayout(Unknown Source:5)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at androidx.viewpager2.widget.ViewPager2.onLayout(Unknown Source:60)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1103)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
	at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
	at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
	at com.android.internal.policy.DecorView.onLayout(DecorView.java:807)
	at android.view.View.layout(View.java:24722)
	at android.view.ViewGroup.layout(ViewGroup.java:6450)
	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:4485)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3786)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2659)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9789)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1399)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1408)
	at android.view.Choreographer.doCallbacks(Choreographer.java:1008)
	at android.view.Choreographer.doFrame(Choreographer.java:938)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1382)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8532)
	... 5 more
```
`
### Summary <!--Summarize the bug encountered concisely--> - Crash on start caused by org.json.JSONException: No value for visibility ### Steps to reproduce 1. Try to open the app 2. It crashes ### Expected behaviour <!--Tell us what should happen--> - ### Actual behaviour <!--Tell us what happens--> - ### Environment data - Android version: 14 - Device model: - Stock or customized system: - Weather app version: 3.20 and 3.20.1 ### Relevant screenshots ```` type: crash package: de.beowulf.wetter:61 process: de.beowulf.wetter processUptime: 694 + 242 ms installer: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:562) at com.android.internal.os.ExecInit.main(ExecInit.java:49) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) ... 3 more Caused by: org.json.JSONException: No value for visibility at org.json.JSONObject.get(JSONObject.java:398) at org.json.JSONObject.getDouble(JSONObject.java:453) at s2.e.v(SourceFile:3) at androidx.fragment.app.n.D(SourceFile:20) at androidx.fragment.app.e0.f(SourceFile:160) at androidx.fragment.app.e0.k(SourceFile:137) at androidx.fragment.app.y.z(SourceFile:568) at androidx.fragment.app.y.R(Unknown Source:84) at androidx.fragment.app.y.y(SourceFile:32) at androidx.viewpager2.adapter.FragmentStateAdapter.p(SourceFile:160) at androidx.viewpager2.adapter.FragmentStateAdapter.j(SourceFile:3) at androidx.recyclerview.widget.b.a(SourceFile:44) at androidx.recyclerview.widget.RecyclerView$l.b(SourceFile:268) at androidx.recyclerview.widget.LinearLayoutManager.W0(SourceFile:34) at androidx.recyclerview.widget.LinearLayoutManager.J0(SourceFile:54) at androidx.recyclerview.widget.LinearLayoutManager.c0(SourceFile:942) at androidx.recyclerview.widget.RecyclerView.r(SourceFile:35) at androidx.recyclerview.widget.RecyclerView.p(SourceFile:91) at androidx.recyclerview.widget.RecyclerView.onLayout(Unknown Source:5) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at androidx.viewpager2.widget.ViewPager2.onLayout(Unknown Source:60) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1103) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729) at android.widget.LinearLayout.onLayout(LinearLayout.java:1638) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729) at android.widget.LinearLayout.onLayout(LinearLayout.java:1638) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at com.android.internal.policy.DecorView.onLayout(DecorView.java:807) at android.view.View.layout(View.java:24722) at android.view.ViewGroup.layout(ViewGroup.java:6450) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:4485) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3786) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2659) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9789) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1399) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1408) at android.view.Choreographer.doCallbacks(Choreographer.java:1008) at android.view.Choreographer.doFrame(Choreographer.java:938) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1382) at android.os.Handler.handleCallback(Handler.java:959) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:317) at android.app.ActivityThread.main(ActivityThread.java:8532) ... 5 more ``` `

same behaviour

  • Android version: 7.1.2
  • Device model: Xiaomi Mi Note 3
  • Stock or customized system: LineageOS 14.1
  • Weather app version: 3.20
  • Repo: F-Droid
same behaviour * Android version: 7.1.2 * Device model: Xiaomi Mi Note 3 * Stock or customized system: LineageOS 14.1 * Weather app version: 3.20 * Repo: F-Droid

Ditto:

Android version: 13
Stock or customized system: Stock
Weather app version: 3.20
Repo: F-Droid

Ditto: Android version: 13 Stock or customized system: Stock Weather app version: 3.20 Repo: F-Droid
Untouched3588 changed title from (削除) [BUG] (削除ここまで) to [BUG] JSONException: No value for visibility 2024年03月21日 08:59:58 +01:00
Untouched3588 changed title from (削除) [BUG] JSONException: No value for visibility (削除ここまで) to [BUG] Crash when opening the app 2024年03月21日 09:01:02 +01:00

Hello, I apologize for the problems.

Visibility is actually a field that should always be present.

However, since the API will be shut down in a few weeks, according to OpenWeatherMap, there will be no more bug fixes for this (https://openweathermap.org/api/one-call-api).

So far I have planned to rewrite the application and use various new APIs, but unfortunately, I don't have the time to do this alongside my full-time studies and work...

I will also archive the repository in a few days.

Hello, I apologize for the problems. Visibility is actually a field that should always be present. However, since the API will be shut down in a few weeks, according to OpenWeatherMap, there will be no more bug fixes for this (https://openweathermap.org/api/one-call-api). So far I have planned to rewrite the application and use various new APIs, but unfortunately, I don't have the time to do this alongside my full-time studies and work... I will also archive the repository in a few days.

No need to apologize. Thank you for this nice app and for answering to my issue. If in the future you have time or motivation to continue this work, I'll be happy to have a nice new app from you. If not, I hope you're doing well 😄
Best wishes!

No need to apologize. Thank you for this nice app and for answering to my issue. If in the future you have time or motivation to continue this work, I'll be happy to have a nice new app from you. If not, I hope you're doing well 😄 Best wishes!

Thank you very much. I also hope that I will soon have more time for such projects. 😆

Thank you very much. I also hope that I will soon have more time for such projects. 😆

I reopen the ticket for visibility.

I reopen the ticket for visibility.
Commenting is not possible because the repository is archived.
No Branch/Tag specified
main
translation
3.21-pre1
3.20
3.20-pre2
3.20-pre1
3.19.1
3.19
3.18.1
3.18
3.17
3.17-pre2
3.17-pre1
3.16
3.16-pre1
3.15
3.15-pre1
3.14
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeoCode/Weather#89
Reference in a new issue
BeoCode/Weather
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?