[Android Q&A, Help & Troubleshooting] nealgosalia:
I have compiled Temasek ROM for my device Xiaomi Mi3 and I'm facing the "Can't connect to camera" bug on my ROM. Can someone please tell me what files I need to fix in my ROM?

Here's the log:

--------- beginning of crash
10-08 20:40:18.906 F/libc (306): Fatal signal 8 (SIGFPE), code -6, fault addr 0x132 in tid 5094 (mm-qcamera-daem)
10-08 20:40:19.024 I/DEBUG (287): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-08 20:40:19.024 I/DEBUG (287): Build fingerprint: 'Xiaomi/cancro/cancro:5.1.1/LMY48W/dee0685f2d:userdebug/test-keys'
10-08 20:40:19.024 I/DEBUG (287): Revision: '0'
10-08 20:40:19.024 I/DEBUG (287): ABI: 'arm'
10-08 20:40:19.025 I/DEBUG (287): pid: 306, tid: 5094, name: mm-qcamera-daem >>> /system/bin/mm-qcamera-daemon <<<
10-08 20:40:19.025 I/DEBUG (287): signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr 0x132
10-08 20:40:19.050 I/DEBUG (287): r0 00000000 r1 000013e6 r2 00000008 r3 b6defec8
10-08 20:40:19.050 I/DEBUG (287): r4 000013e6 r5 b327fdb8 r6 00000016 r7 0000010c
10-08 20:40:19.050 I/DEBUG (287): r8 b4cb7000 r9 00010002 sl b1fe4828 fp b327fdb0
10-08 20:40:19.050 I/DEBUG (287): ip 00000008 sp b327f450 lr b6d7f969 pc b6daed14 cpsr 600b0010
10-08 20:40:19.050 I/DEBUG (287):
10-08 20:40:19.050 I/DEBUG (287): backtrace:
10-08 20:40:19.050 I/DEBUG (287): #00 pc 00045d14 /system/lib/libc.so (tgkill+12)
10-08 20:40:19.051 I/DEBUG (287): #01 pc 00016965 /system/lib/libc.so (pthread_kill+92)
10-08 20:40:19.051 I/DEBUG (287): #02 pc 00017ac3 /system/lib/libc.so (raise+14)
10-08 20:40:19.051 I/DEBUG (287): #03 pc 0006e964 /system/lib/libc.so (__aeabi_idiv0+8)
10-08 20:40:19.051 I/DEBUG (287): #04 pc 00003807 /system/vendor/lib/libmmcamera2_cpp_module.so (cpp_module_set_clock_freq+522)
10-08 20:40:19.051 I/DEBUG (287): #05 pc 00005f25 /system/vendor/lib/libmmcamera2_cpp_module.so (cpp_module_handle_streamoff_event+408)
10-08 20:40:19.051 I/DEBUG (287): #06 pc 00003327 /system/vendor/lib/libmmcamera2_cpp_module.so (cpp_module_process_downstream_event+534)
10-08 20:40:19.051 I/DEBUG (287): #07 pc 00006de9 /system/vendor/lib/libmmcamera2_cpp_module.so
10-08 20:40:19.051 I/DEBUG (287): #08 pc 00005047 /system/vendor/lib/libmmcamera2_pproc_modules.so
10-08 20:40:19.051 I/DEBUG (287): #09 pc 00005fa9 /system/vendor/lib/libmmcamera2_isp_modules.so
10-08 20:40:19.051 I/DEBUG (287): #10 pc 00002607 /system/vendor/lib/liboemcamera.so (mct_list_traverse+26)
10-08 20:40:19.051 I/DEBUG (287): #11 pc 00002623 /system/vendor/lib/liboemcamera.so (mct_list_traverse+54)
10-08 20:40:19.051 I/DEBUG (287): #12 pc 00002623 /system/vendor/lib/liboemcamera.so (mct_list_traverse+54)
10-08 20:40:19.051 I/DEBUG (287): #13 pc 00002623 /system/vendor/lib/liboemcamera.so (mct_list_traverse+54)
10-08 20:40:19.051 I/DEBUG (287): #14 pc 00002623 /system/vendor/lib/liboemcamera.so (mct_list_traverse+54)
10-08 20:40:19.051 I/DEBUG (287): #15 pc 00006483 /system/vendor/lib/libmmcamera2_isp_modules.so
10-08 20:40:19.051 I/DEBUG (287): #16 pc 00002315 /system/vendor/lib/libmmcamera2_iface_modules.so
10-08 20:40:19.051 I/DEBUG (287): #17 pc 00002607 /system/vendor/lib/liboemcamera.so (mct_list_traverse+26)
10-08 20:40:19.051 I/DEBUG (287): #18 pc 00002569 /system/vendor/lib/libmmcamera2_iface_modules.so
10-08 20:40:19.052 I/DEBUG (287): #19 pc 0000652d /system/vendor/lib/liboemcamera.so (mct_port_send_event_to_peer+16)
10-08 20:40:19.052 I/DEBUG (287): #20 pc 00009391 /system/vendor/lib/libmmcamera2_sensor_modules.so
10-08 20:40:19.052 I/DEBUG (287): #21 pc 00007527 /system/vendor/lib/libmmcamera2_sensor_modules.so
10-08 20:40:19.052 I/DEBUG (287): #22 pc 00002607 /system/vendor/lib/liboemcamera.so (mct_list_traverse+26)
10-08 20:40:19.052 I/DEBUG (287): #23 pc 00004b99 /system/vendor/lib/libmmcamera2_sensor_modules.so
10-08 20:40:19.052 I/DEBUG (287): #24 pc 00004a2b /system/vendor/lib/liboemcamera.so
10-08 20:40:19.052 I/DEBUG (287): #25 pc 00004e77 /system/vendor/lib/liboemcamera.so
10-08 20:40:19.052 I/DEBUG (287): #26 pc 000054a1 /system/vendor/lib/liboemcamera.so
10-08 20:40:19.052 I/DEBUG (287): #27 pc 00006833 /system/vendor/lib/liboemcamera.so
10-08 20:40:19.052 I/DEBUG (287): #28 pc 00015ef7 /system/lib/libc.so (__pthread_start(void*)+38)
10-08 20:40:19.052 I/DEBUG (287): #29 pc 000135d3 /system/lib/libc.so (__start_thread+10)
10-09 15:15:24.479 E/AndroidRuntime(1423): FATAL EXCEPTION: main
10-09 15:15:24.479 E/AndroidRuntime(1423): Process: com.android.systemui, PID: 1423
10-09 15:15:24.479 E/AndroidRuntime(1423): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.android.systemui.recents.model.TaskGrouping.isTaskAboveTask(com.android.systemui.recents.model.Task, com.android.systemui.recents.model.Task)' on a null object reference
10-09 15:15:24.479 E/AndroidRuntime(1423):	at com.android.systemui.recents.views.TaskStackView.startLaunchTaskAnimation(TaskStackView.java:889)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at com.android.systemui.recents.views.RecentsView.onTaskViewClicked(RecentsView.java:731)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at com.android.systemui.recents.views.TaskStackView.onTaskViewClicked(TaskStackView.java:1241)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at com.android.systemui.recents.views.TaskView.onClick(TaskView.java:717)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at android.view.View.performClick(View.java:4797)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at android.view.View$PerformClick.run(View.java:19899)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at android.os.Handler.handleCallback(Handler.java:739)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at android.os.Handler.dispatchMessage(Handler.java:95)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at android.os.Looper.loop(Looper.java:135)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at android.app.ActivityThread.main(ActivityThread.java:5375)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at java.lang.reflect.Method.invoke(Native Method)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at java.lang.reflect.Method.invoke(Method.java:372)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
10-09 15:15:24.479 E/AndroidRuntime(1423):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)

Any help is appreciated!