tobexyz / yaacc-code

YAACC - UPNP Client and Server
Other
94 stars 13 forks source link

[crash on startup] #12

Closed vincent456 closed 5 years ago

vincent456 commented 5 years ago

The app simply crash on startup. Nothing can really be said except my phone run on Android 8.1.0 (OnePlus A5000, OxygenOS 5.1.7) I would have built the project to give you the java error message but I have troubles building it on either windows or linux (for example, on linux I have a `Execution failed for task ':clingbuild:build'.

A problem occurred starting process 'command 'mvn'' `)

tobexyz commented 5 years ago

You have to install Maven if you want to build the project.

But you can also attach your device with adb and open the log. If you start the app then, there must be an exception shown in the log

vincent456 commented 5 years ago

Got the project working and I can confirm : it crashes on startup with the default android emulator Nexus 5 API 28 x86 (Android 9.0)

tobexyz commented 5 years ago

Ok, thx. Do you see any Stacktrace?

tobexyz commented 5 years ago

I was able to start the app using an emulator with Android 28. But I've found some problems during service start in the log. So do you have stack trace of the crash?

vincent456 commented 5 years ago

Okay, so the good news is : the app is simply slow, that's why I get "the app is not responding" message but I can tell Android to wait and it seems to work. Now I don't seem to see anything in the categories but I think that should be another issue ? I'll give you a log if you want but when I debug the app everything is fine, the crash only happen on the test of the release version.

tobexyz commented 5 years ago

Great thx. I think I've to focus on issue #9 and #16 in order to fix the hanging app. After that I have to take a look why the released version doesn't work.

tobexyz commented 5 years ago

I've implemented a first solution in branch issue#9. Items now loaded async. It would be helpful if anyone can additionally confirm that the implementation on the branch fixes the problem that the app hangs.

vincent456 commented 5 years ago

So far with my real phone the "app not responding" keeps popping repeatitively, don't really know why. Plus I had to install the release apk through Android Studio, couldn't do it with the default apk installer of the phone "app not installed". Can anyone else confirm. P.S. : I have a huge music library on my phone (17Gb)

tobexyz commented 5 years ago

@vincent456 Interesting, I was able to run the app using branch issue#9 on an Android Pie Emulator. The Emulator is very slow but the app works. Because of the emulator network settings a UPnP server only appears after activating the Yaacc UPnP server for serving test content. You can activate it in the app settings. Your installation problem might be caused by a previous installed a version of the app signed by another issuer. This can be the case if you switch between debug and release builds of an apk.

Btw. If the Yaacc UPnP server is running using the media store of the device with such a huge media library maybe that's a reason why the app is so slow, too.The server isn't tuned for working with big media stores yet. So I don't know exactly how it response in that case.

tobexyz commented 5 years ago

I've just released version 2.2.0 and it will be available on f-droid in a few days. Please check if the bug is fixed then

tobexyz commented 5 years ago

fixed with 2.2.0