Arithmetic overflow in FORMS.PP lazarus / 43-Android ---------------------------------------------------------------------- theo · 2012-12-13 21:14 Hi I'm testing the demo app. Any idea what's wrong here? Free Pascal Compiler version 2.7.1 [2012/12/10] for arm Lazarus 1.1 r39476M FPC 2.7.1 x86_64-linux-gtk 2 I/dalvikvm(  561): Wrote stack traces to '/data/anr/traces.txt' D/dalvikvm(  561): Added shared lib /data/data/com.pascal.lcltest/lib/liblclapp.so 0x412b5f40 I/lclapp  (  561): JNI_OnLoad called I/lclapp  (  561): Reading our Activity Class I/lclapp  (  561): JNI_OnLoad finished I/lclapp  (  561): LCLOnCreate called by LCLActivity.onCreate I/lclapp  (  561): [TCDWidgetSet.CreateTimer] Result=494EF3E0 I/lclapp  (  561): [TCDWidgetSet.DestroyTimer] TimerHandle=494EF3E0 lTimer.NativeHandle=412C1ED8 lTimer.NativeGlobalReference=1D2001CA I/lclapp  (  561): [TCDWidgetSet.CreateTimer] Result=494EF3E0 I/lclapp  (  561): [TCDWidgetSet.DestroyTimer] TimerHandle=494EF3E0 lTimer.NativeHandle=412C1F88 lTimer.NativeGlobalReference=1D3001CA I/lclapp  (  561): [TCDWSCustomCheckBox.GetPreferredSize] Width=221 Height=58 I/Process (   81): Sending signal. PID: 561 SIG: 3 I/dalvikvm(  561): threadid=3: reacting to signal 3 I/dalvikvm(  561): Wrote stack traces to '/data/anr/traces.txt' I/lclapp  (  561): [TCDWSCustomCheckBox.GetPreferredSize] Width=221 Height=58 I/lclapp  (  561): [TCDWSCustomForm.ShowHide] First form layout adjustment lOldDPI=96 lNewDPI=240 lOldFormWidth=220 lNewFormWidth=100 V/PhoneStatusBar(  134): setLightsOn(true) D/gralloc_goldfish(  561): Emulator without GPU emulation detected. I/Process (   81): Sending signal. PID: 561 SIG: 3 I/dalvikvm(  561): threadid=3: reacting to signal 3 I/dalvikvm(  561): Wrote stack traces to '/data/anr/traces.txt' I/lclapp  (  561): [LCLOnConfigurationChanged] i=0 lOldDPI=240 lNewDPI=240 lOldFormWidth=100 lNewFormWidth=480 D/dalvikvm(  561): GC_FOR_ALLOC freed 75K, 4% free 9123K/9411K, paused 118ms I/dalvikvm-heap(  561): Grow heap (frag case) to 10.329MB for 1390096-byte allocation D/dalvikvm(  561): GC_CONCURRENT freed 2K, 4% free 10478K/10823K, paused 8ms+8ms I/Process (   81): Sending signal. PID: 561 SIG: 3 I/dalvikvm(  561): threadid=3: reacting to signal 3 I/dalvikvm(  561): Wrote stack traces to '/data/anr/traces.txt' I/lclapp  (  561): [FORMS.PP] ExceptionOccurred I/lclapp  (  561):   Sender=EIntOverflow I/lclapp  (  561):   Exception=Arithmetic overflow I/lclapp  (  561):   Stack trace: I/lclapp  (  561):   $496871D8 I/lclapp  (  561): TApplication.HandleException Arithmetic overflow I/lclapp  (  561):   Stack trace: I/lclapp  (  561):   $496871D8 I/ActivityManager(   81): Process com.pascal.lcltest (pid 561) has died. W/ActivityManager(   81): Force removing ActivityRecord{414aec10 com.pascal.lcltest/.LCLActivity}: app died, no saved state W/NetworkManagementSocketTagger(   81): setKernelCountSet(10041, 0) failed with errno -2 W/InputDispatcher(   81): channel '41598450 com.pascal.lcltest/com.pascal.lcltest.LCLActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x8 E/InputDispatcher(   81): channel '41598450 com.pascal.lcltest/com.pascal.lcltest.LCLActivity (server)' ~ Channel is unrecoverably broken and will be disposed! I/WindowManager(   81): WIN DEATH: Window{414a30f0 com.pascal.lcltest/com.pascal.lcltest.LCLActivity paused=false} I/WindowManager(   81): WIN DEATH: Window{41598450 com.pascal.lcltest/com.pascal.lcltest.LCLActivity paused=false} W/InputDispatcher(   81): Attempted to unregister already unregistered input channel '41598450 com.pascal.lcltest/com.pascal.lcltest.LCLActivity (server)' I/WindowManager(   81): WINDOW DIED Window{41598450 com.pascal.lcltest/com.pascal.lcltest.LCLActivity paused=false} ---------------------------------------------------------------------- Leledumbo · 2012-12-14 06:23 QuoteFree Pascal Compiler version 2.7.1 [2012/12/10] for armHas 2.7.1 ever worked for android anyway? I currently have to use felipe's special build of 2.5.1 to make it work. ---------------------------------------------------------------------- theo · 2012-12-14 09:46 Ah, OK. I'm going to try with 2.5.1 later. Thanks Leledumbo. ---------------------------------------------------------------------- Leledumbo · 2012-12-15 05:09 Take the one from here