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
Crash on start on v3.2.0 #184
Comments
woops, should have checked closed issues. thanks! |
No worries. I should really create an issue template reminding people to do that :) |
(I'll leave this issue open until release so other people see it) |
Hello, I love this app but I can't start it anymore after I upgraded on F-Droid from v 3.0.0 to 3.1.1. |
@barbaMimmo is |
@smichel17 I can't tell, unless there's a way to get into the app's configuration without launching it (i.e., a config file somewhere which I could modify or at least look at). Errata corrige: the crash-on-launch problem arose as soon as I upgraded to v 3.1.0, and then remained with subsequent upgrades. I did not change anything in the preferences before the upgrade. Please note that I emptied all the cache and also wiped cache partition with no change. I really hope I could get R.M. running again, since it's absolutely needed in a smartphone like mine, where minimum backlight it far too bright for evening/night use! |
@barbaMimmo Oh, I misread you the first time missed the part where it also crashes on launch. Hrmph, thought I fixed all those. Let me see if I can replicate in an emulator as that's the easiest for me to troubleshoot -- if I can't, I'll ask you to get a logcat if possible. |
@barbaMimmo Okay, I can't reproduce on a clean install. I'm interested whether a clean install would fix your issue, but I'm also interested in why you're crashing right now, and if a clean install fixes the issue, then I won't be able to get any more data to troubleshoot. Could you try downloading a debug version of Red Moon? It'll install alongside the f-droid version. You can get it from here: http://smichel.me/files/red-moon/ It's the one from 9/14. (Note: http link. Https will also work, but my cert is expired so you'll have to click past that warning, sorry). edit: also, if a faster back-and-forth would be helpful, you can ping me in chat, links in the readme. |
Ok, this is interesting, ao if doesn't bother other readers I'd prefer to keep the conversation here. I installed the debug version you suggested, and it works perfectly. The only remaining issue is that RM continues to terminate itself (without error message) from time to time when I'm browsing the Internet (on IceCatMobile 47) and it never reactivates itself unless I restart it manually from apps list. Interesting to say: both so-called bugs have exactly the same behaviour also on my Samsung Galaxy Tab 2 7.0 tablet with same Android 4.4.4 version, no bootloader unlock, no root). If you gave me basic instructions on how to file a logcat (or send it to you), I will be glad to do. (meanwhile I was writing here, RM terminated itself as usually without and I'm now without red filter again... If I restart the debug version it runs smoothly for a while unless I do too heavy operations on Android such as surging the Internet) Thanks for your patience in listening to my specific issues :-) |
Same issue here, in a Samsung Galaxy note pro 12,2. Gone away on fresh install. |
Android has a tool to get logs from a device called One time only:
Each time you want to get a logcat:
There's some additional tricks to get the log output to show only logs from RM instead of all apps on the system, but let's take things one step at a time. Let me know if you run into issues and I'll help if I can. |
Hello, yesterday I downloaded official platform-tools, but then I got into troubles when trying to use Adb on my PC (Windows XP SP3, administrator account). It always terminates itself, any command I give (e.g.: adb devices, adb shell), even if the phone is not yet connected or with it attached in debug mode (drivers already correctly installed). The error message is: "adb.exe was closed due to the command ctrl+c". |
No worries, the original report of this thread was fixed in 3.2.0 so the thread is yours now, others can unsubscribe if they're getting too many notifications or something.
That is quite odd. Wonder if it's an XP thing. Is there another device you can use/borrow to test on? |
Hello, I managed to have Adb working. |
You could use a github gist and paste the link here, or email it to me (address is in the app) |
Emailed ;-) |
Got it, thanks. I'll have time to take a look in a few hours :) |
@barbaMimmo Alright, there's two separate bugs:
*there is a way that the guard could fail, but it would happen when turning the filter off, and your log shows that the crash happened when it was turning on. |
Hello, Did you notice I filed also one event of a crash-on-start from another F-Droid app called "Amaze" in that logcat? Well, there must be something similar in the origin of that bug, since as soon as I cleared data for it too, Amaze opened up smoothly again! But you can bet there were no personal profile nor complicated user's setting in that file manager... As like for RM Debug, where I didn't make new profiles at all since I installed it. Something seems to get corrupt in apps' data when the system is restarted, or such situations. Now, that we (you) solved this prejudicial enigma, another one remains, and it would better require opening another thread: in both my devices, since many many versions of RM ago, the filter deactivates and the app unloads from memory (not from cached apps) after just a few minutes or even just seconds of web browsing or any other "medium-heavy" operation. This one could be an os- or device-related problem as well, since again it (still, sadly) happens on both my Sony smartphone and my Samsung tablet, and also on another device I tried with same OS. Please let me know if you needed more logcats.
|
Eureka! Just cleared app data. Note: in this state, it actually crashes only 3 times on launch, then starts correctly again but with the filter disabled, allowing you to change the painful setting to any other value ("managed by the system" or "turn off") and eventually re-enabling the filter without other problems. My devices have no hardware buttons backlighted, so I tried that setting for mere curiosity. It could be the main reason for the crash of the debug version also, but not the F-droid one since I didn't change that value before 3.2.0: for that version it must have been a profile corruption to cause the unlaunchability. Now, let's think about the other big problem I mentioned, of RM unloading itself from memory (with "pause in secure apps" off or on, no change) and disappearing from in-use-apps list with no error message when the user is surfing the Internet or similar! Bye
|
Great that you figured out what caused it! Just want to chime in that I can sort off replicate this bug. When I set it to use dim level from filter, Red Moon crashes when I try to enable the filter (although it doesn't crash at startup like it does for you). @smichel17 maybe some devices don't accept intermediate values for button backlights? That's just a guess since I don't actually know how this setting is implemented. |
Let's track the hardware button issue separately, in #190.
It was crashing from a separate issue, where it tried to display an item that didn't exist. Probably an off by one error or, as you mention, corrupted storage. For the crash, I'm making a change to fix the case where our safety check could fail. I don't think that will fix the issue, but who knows, let's see. Android will occasionally unload processes from memory when the system is low on memory. Red Moon runs as a foreground service, which means it will not be killed this way unless the system is absolutely out of memory for anything except the open app. Thus, if low memory is the reason for being killed, I am not sure what else to do about this -- maybe try to restart if it's killed this way; maybe try to reduce our already-small memory footprint? |
Yes, there must be a big problem of memory management in my devices, even if I have really few processes in background but the browser and the keyboard and some 4 system services. But I'd like to talk about this as a possible enhancement, if you opened a dedicated thread. At least, could you keep something like a static notification on the bar, which woul allow the user restart the filter from notification bar without getting back into the home to press on the RM icon? Oh, and another thing: why don't you keep a notification active even when the filter is manually paused? Now, to re-enable it you have to go back into RM settings, which is uncomfortable. Lastly, still talking about enhancement, there's the fact RM doesn't correctly restore backlight settings which were previously selected on the system. I noticed this problem got worse after one release, don't remember which one. Now it only seldom restores them after it pauses (i.e. when morning hour comes and it auto-pauses). Of course, it never restores previous backlight levels and auto-compensate setting when it the system unloads it from memory. Sorry for the messy ideas, I hope you got the meaning within them. It's my fault to have absolutely no programming skills, so I can't explain things clearly. |
This thread is becoming very long and hard to keep track of; I would like to keep it focused on the title issue, where Red Moon crashes on start. Could you create new issues for the others? I know there's no existing issue about the memory one; for the other two, check if there are existing issues about them, first. To discuss everything all together, the chat room is a better place. |
I was briefly able to reproduce the crash. Then I uninstalled, to install an earlier version and see if I could reproduce it there. The earlier version did not crash. After reinstalling the same version I was just on, it no longer crashes. I guess it must be related to a corrupted state, somehow. @barbaMimmo Can you see if clearing the app data fixes this crash? |
Well, I think the discussion could continue on #190 since the problem was quite identified. Clearing app data only allows you to get back into a reinitialized RM and make your own settings, and it will then run nicely again... unless you change that parameter which causes it to crash. It would then trigger the vicious circle of crash-on-launch which repeates for 1-3 launches circa, depending on how immediately you try to restart RM from its icon. It is definitely related to "use dim level for hard buttons settings" if we talk about a fresh install of last versions. Previous conditions we described here was surely due to a corrupted user profile settings which happened during upgrade to version 3.1.0 and never before. We solved it clearing app data, in fact. |
First, thanks for the great work in this app!
After updating to 3.1.1 the redmoon-tile in the "swipe down drawer" stopped working.
After the update to 3.1.2 I cannot launch the app at all.
How could retrieve the relevant crash logs for you?
Moto Z, Android 7.1.1, kernel 3.18.31
The text was updated successfully, but these errors were encountered: