[Desire General] thewarchild:
I have posted in the desire Q&A forum but no one has replied in a couple of weeks so I am thinking I have posted in the wrong forum:

http://xdaforums.com/showthread.php?t=795291

I am using the HTC mail up with exchange server, when I go to view an email the application automatically crashes. My bosses phone works with the same leedroid ROM and mail server without issue. When I attempt to open the mail the logs show the following:

D/AndroidRuntime(19993): Shutting down VM

W/dalvikvm(19993): threadid=1: thread exiting with uncaught exception (group=0x400259f8)

E/AndroidRuntime(19993): FATAL EXCEPTION: main

E/AndroidRuntime(19993): java.lang.NullPointerException

E/AndroidRuntime(19993):	at com.htc.android.mail.MailListTab.onListItemClick(MailListTab.java:3445)

E/AndroidRuntime(19993):	at com.htc.android.mail.MailListTab$TabInfo$1.onItemClick(MailListTab.java:5073)

E/AndroidRuntime(19993):	at com.htc.widget.HtcAdapterView.performItemClick(HtcAdapterView.java:379)

E/AndroidRuntime(19993):	at com.htc.widget.HtcListViewCore.performItemClick(HtcListViewCore.java:4989)

E/AndroidRuntime(19993):	at com.htc.widget.HtcAbsListView$PerformClick.run(HtcAbsListView.java:1978)

E/AndroidRuntime(19993):	at android.os.Handler.handleCallback(Handler.java:587)

E/AndroidRuntime(19993):	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime(19993):	at android.os.Looper.loop(Looper.java:144)

E/AndroidRuntime(19993):	at android.app.ActivityThread.main(ActivityThread.java:4937)

E/AndroidRuntime(19993):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(19993):	at java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime(19993):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

E/AndroidRuntime(19993):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

E/AndroidRuntime(19993):	at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 154): Force finishing activity com.htc.android.mail/.MailListTab

I/global ( 154): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

I/global ( 154): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

W/ActivityManager( 154): Activity pause timeout for HistoryRecord{46b6e2a0 com.htc.android.mail/.MailListTab}

D/Sensors ( 154): close_akm, fd=122

D/Sensors ( 154): open_akm, fd=148

D/AK8973 ( 133): Compass CLOSE

D/AK8973 ( 133): Compass Start

I/global ( 154): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

D/dalvikvm( 154): GC_FOR_MALLOC freed 25802 objects / 2345856 bytes in 134ms

E/ActivityManager( 154): Error running process

E/ActivityManager( 154): java.io.IOException: Error running exec(). Command: [/system/xbin/procrank] Working Directory: null Environment: [ANDROID_SOCKET_zygote=11, ANDROID_BOOTLOGO=1, EXTERNAL_STORAGE=/mnt/sdcard, ANDROID_ASSETS=/system/app, TERMINFO=/system/etc/terminfo, ASEC_MOUNTPOINT=/mnt/asec, PATH=/sbin:/system/sbin:/system/bin:/system/xbin, ANDROID_DATA=/data, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/com.htc.framework.jar:/system/framework/com.htc.android.pimlib.jar:/system/framework/com.htc.android.easopen.jar:/system/framework/com.scalado.util.ScaladoUtil.jar, ANDROID_PROPERTY_WORKSPACE=10,65536, ANDROID_ROOT=/system, LD_LIBRARY_PATH=/system/lib]

E/ActivityManager( 154):	at java.lang.ProcessManager.exec(ProcessManager.java:226)

E/ActivityManager( 154):	at java.lang.ProcessBuilder.start(ProcessBuilder.java:201)

E/ActivityManager( 154):	at com.android.server.am.ActivityManagerService.logProcessResult(ActivityManagerService.java:9438)

E/ActivityManager( 154):	at com.android.server.am.ActivityManagerService.access$900(ActivityManagerService.java:155)

E/ActivityManager( 154):	at com.android.server.am.ActivityManagerService$9.run(ActivityManagerService.java:9615)

E/ActivityManager( 154): Caused by: java.io.IOException: Permission denied

E/ActivityManager( 154):	at java.lang.ProcessManager.exec(Native Method)

E/ActivityManager( 154):	at java.lang.ProcessManager.exec(ProcessManager.java:224)

E/ActivityManager( 154):	... 4 more

as in the thread, I changed the permissions on /system/xbin/procrank to 777 which removed the 2nd error but its permissions have changed back (either my reboot or updating some applications did this)? But even with that error remove the null pointer exception still occurs. as below:

W/dalvikvm(20132): threadid=1: thread exiting with uncaught exception (group=0x400259f8)

E/AndroidRuntime(20132): FATAL EXCEPTION: main

E/AndroidRuntime(20132): java.lang.NullPointerException

E/AndroidRuntime(20132):	at com.htc.android.mail.MailListTab.onListItemClick(MailListTab.java:3445)

E/AndroidRuntime(20132):	at com.htc.android.mail.MailListTab$TabInfo$1.onItemClick(MailListTab.java:5073)

E/AndroidRuntime(20132):	at com.htc.widget.HtcAdapterView.performItemClick(HtcAdapterView.java:379)

E/AndroidRuntime(20132):	at com.htc.widget.HtcListViewCore.performItemClick(HtcListViewCore.java:4989)

E/AndroidRuntime(20132):	at com.htc.widget.HtcAbsListView$PerformClick.run(HtcAbsListView.java:1978)

E/AndroidRuntime(20132):	at android.os.Handler.handleCallback(Handler.java:587)

E/AndroidRuntime(20132):	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime(20132):	at android.os.Looper.loop(Looper.java:144)

E/AndroidRuntime(20132):	at android.app.ActivityThread.main(ActivityThread.java:4937)

E/AndroidRuntime(20132):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(20132):	at java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime(20132):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

E/AndroidRuntime(20132):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

E/AndroidRuntime(20132):	at dalvik.system.NativeStart.main(Native Method)

W/ActivityManager( 154): Force finishing activity com.htc.android.mail/.MailListTab

I/global ( 154): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

I/global ( 154): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

W/ActivityManager( 154): Activity pause timeout for HistoryRecord{470c1a68 com.htc.android.mail/.MailListTab}

D/Sensors ( 154): close_akm, fd=132

D/Sensors ( 154): open_akm, fd=123

Another point in which I just realised, but am not sure if its relevant:

# df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 207.6M 0 207.6M 0% /dev

tmpfs 207.6M 0 207.6M 0% /mnt/asec

/dev/block/mtdblock3 250.0M 246.9M 3.1M 99% /system

/dev/block/mtdblock5 147.6M 45.2M 102.4M 31% /data

/dev/block/mtdblock4 40.0M 1.1M 38.9M 3% /cache

tmpfs 8.0M 0 8.0M 0% /app-cache

/dev/block/mmcblk0p2 457.4M 151.5M 281.5M 35% /system/sd

/dev/block/vold/179:1

14.1G 7.9G 6.2G 56% /mnt/sdcard

/dev/block/vold/179:1

14.1G 7.9G 6.2G 56% /mnt/secure/asec

the /system is 99% full, even thou I have my sd card partition and all user apps end up on /system/sd

du -x -d 1 -h /system

2.1M	/system/usr

4.0K	/system/mnt

2.8M	/system/media

54.1M	/system/lib

30.2M	/system/framework

9.3M	/system/fonts

7.8M	/system/customize

92.8M	/system/app

6.5M	/system/etc

5.8M	/system/bin

4.0M	/system/xbin

2.0K	/system/lost+found

215.5M	/system

the /system/app directory has all of the default apps in it, I tried moving YouTube.apk to /system/sd/app/ but now this crashes ( do not really use it anyway, why I chose it).... If I attempt to symlink I get "ln: YouTube.apk: Cannot allocate memory".

Thanks

Jurgen