guardianproject / lildebi

UNMAINTAINED please adopt! we can no longer maintain this
https://guardianproject.info/code
GNU General Public License v3.0
229 stars 55 forks source link

lildebi crashes on install when installing on /data #114

Closed eighthave closed 10 years ago

eighthave commented 10 years ago

This is on a Samsung Galaxy Player 5.0 running the stock 2.3.7 firmware. I ran "delete all" on the existing image file setup, then I went to the preferences and turned on "Install on Internal Storage", then I clicked Install to get to the install screen, then Install again to start the process, and I got this crash:

        AndroidRuntime  E  FATAL EXCEPTION: main
                        E  java.lang.IllegalArgumentException
                        E      at android.os.StatFs.native_setup(Native Method)
                        E      at android.os.StatFs.<init>(StatFs.java:32)
                        E      at info.guardianproject.lildebi.NativeHelper.getInstallPathFreeBytes(NativeHelper.java:268)
                        E      at info.guardianproject.lildebi.InstallActivity$7.onClick(InstallActivity.java:231)
                        E      at android.view.View.performClick(View.java:2538)
                        E      at android.view.View$PerformClick.run(View.java:9152)
                        E      at android.os.Handler.handleCallback(Handler.java:587)
                        E      at android.os.Handler.dispatchMessage(Handler.java:92)
                        E      at android.os.Looper.loop(Looper.java:130)
                        E      at android.app.ActivityThread.main(ActivityThread.java:3687)
                        E      at java.lang.reflect.Method.invokeNative(Native Method)
                        E      at java.lang.reflect.Method.invoke(Method.java:507)
                        E      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
                        E      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
                        E      at dalvik.system.NativeStart.main(Native Method)
               Process  I  Sending signal. PID: 1106 SIG: 9
SDkie commented 10 years ago

Why running on Player?

eighthave commented 10 years ago

The Player my android-10/2.3.3 test device.

SDkie commented 10 years ago

@eighthave: can you manually check whether /data/debian folder is created before clicking on Install button.

eighthave commented 10 years ago

There is no /data/debian folder on the device after the failed install, nor when I went to the install screen again:

# ls -l /data/debian
/data/debian: No such file or directory
SDkie commented 10 years ago

@eighthave: when you install debian in .img file then everything works fine ? what is the mountpoint for that .img file?

eighthave commented 10 years ago

yeah, installing to the image file worked fine. The image file is mounted on /data/debian. It seems that the internal media install process does not make the /data/debian folder. Try running "Delete All", then running a new install on internal storage.

SDkie commented 10 years ago

@eighthave : I reproduced the error, I will fix it soon.

SDkie commented 10 years ago

@eighthave : https://github.com/SDkie/lildebi/commit/133f3780e0c9112da4c9b8e7c68fd2516d775ef0