schimanski Well-Known Member Licensed User Longtime User Dec 4, 2015 #1 Since yesterday, I have the problem, that my app runs in release, but suddenly not in debug mode. There are several exceptions. I have cleaned the project 10 times, I have deleted the app 5 times and I have deinstalled and new installed b4i-Bridge. I also tried to set back from 64bit to 32Bit and I have tried to install an old version of my app, to make sure that it is not a new modul...all that doesn't helps: Here are two exceptions, that only are raised in debug: Code: Error occurred on line: 39 (ExpandableTableView) Object was not initialized (UIView) Stack Trace: ( CoreFoundation <redacted> + 150 libobjc.A.dylib objc_exception_throw + 38 CoreFoundation <redacted> + 0 EIS -[B4IObjectWrapper object] + 200 EIS -[B4IViewWrapper SetLayoutAnimated::::::] + 86 EIS -[b4i_neuekonferenz _pageneuekonferenz_resize::] + 1138 CoreFoundation <redacted> + 68 CoreFoundation <redacted> + 292 EIS +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786 EIS -[B4IShell runMethod:] + 574 EIS -[B4IShell raiseEventImpl:method:args::] + 1998 EIS -[B4IShellBI raiseEvent:event:params:] + 1340 EIS +[B4IObjectWrapper raiseEvent:::] + 220 EIS __30-[B4IPanelView layoutSubviews]_block_invoke + 822 libdispatch.dylib <redacted> + 10 libdispatch.dylib <redacted> + 22 libdispatch.dylib _dispatch_main_queue_callback_4CF + 1532 CoreFoundation <redacted> + 8 CoreFoundation <redacted> + 1590 CoreFoundation CFRunLoopRunSpecific + 516 CoreFoundation CFRunLoopRunInMode + 108 GraphicsServices GSEventRunModal + 160 UIKit UIApplicationMain + 144 Code: Error occurred on line: 25 (clsPMEditText) Error opening stream: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" Stack Trace: ( CoreFoundation <redacted> + 150 libobjc.A.dylib objc_exception_throw + 38 CoreFoundation <redacted> + 0 EIS -[B4IFile OpenInput::] + 508 EIS -[B4IBitmap Initialize::] + 1058 EIS -[B4ICommon LoadBitmap::] + 98 EIS -[b4i_clspmedittext _initialize:::::::::::] + 2864 EIS -[b4i_clspmcategory _addedittext0::::::::::] + 1382 EIS -[b4i_clspmcategory _addedittext2:::::::::] + 1192 EIS -[b4i_einstellungen _initpreference_einstellungen] + 5132 EIS -[b4i_einstellungen _pageeinstellungen_resize::] + 822 CoreFoundation <redacted> + 68 CoreFoundation <redacted> + 292 EIS +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786 EIS -[B4IShell runMethod:] + 574 EIS -[B4IShell raiseEventImpl:method:args::] + 1998 EIS -[B4IShellBI raiseEvent:event:params:] + 1340 EIS +[B4IObjectWrapper raiseEvent:::] + 220 EIS __30-[B4IPanelView layoutSubviews]_block_invoke + 822 libdispatch.dylib <redacted> + 10 libdispatch.dylib <redacted> + 22 libdispatch.dylib _dispatch_main_queue_callback_4CF + 1532 CoreFoundation <redacted> + 8 CoreFoundation <redacted> + 1590 CoreFoundation CFRunLoopRunSpecific + 516 CoreFoundation CFRunLoopRunInMode + 108 GraphicsServices GSEventRunModal + 160 UIKit UIApplicationMain + 144 EIS main + 108 libdyld.dylib <redacted> + 2 ) Does anybode knows, what I can also do to solve the problem?
Since yesterday, I have the problem, that my app runs in release, but suddenly not in debug mode. There are several exceptions. I have cleaned the project 10 times, I have deleted the app 5 times and I have deinstalled and new installed b4i-Bridge. I also tried to set back from 64bit to 32Bit and I have tried to install an old version of my app, to make sure that it is not a new modul...all that doesn't helps: Here are two exceptions, that only are raised in debug: Code: Error occurred on line: 39 (ExpandableTableView) Object was not initialized (UIView) Stack Trace: ( CoreFoundation <redacted> + 150 libobjc.A.dylib objc_exception_throw + 38 CoreFoundation <redacted> + 0 EIS -[B4IObjectWrapper object] + 200 EIS -[B4IViewWrapper SetLayoutAnimated::::::] + 86 EIS -[b4i_neuekonferenz _pageneuekonferenz_resize::] + 1138 CoreFoundation <redacted> + 68 CoreFoundation <redacted> + 292 EIS +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786 EIS -[B4IShell runMethod:] + 574 EIS -[B4IShell raiseEventImpl:method:args::] + 1998 EIS -[B4IShellBI raiseEvent:event:params:] + 1340 EIS +[B4IObjectWrapper raiseEvent:::] + 220 EIS __30-[B4IPanelView layoutSubviews]_block_invoke + 822 libdispatch.dylib <redacted> + 10 libdispatch.dylib <redacted> + 22 libdispatch.dylib _dispatch_main_queue_callback_4CF + 1532 CoreFoundation <redacted> + 8 CoreFoundation <redacted> + 1590 CoreFoundation CFRunLoopRunSpecific + 516 CoreFoundation CFRunLoopRunInMode + 108 GraphicsServices GSEventRunModal + 160 UIKit UIApplicationMain + 144 Code: Error occurred on line: 25 (clsPMEditText) Error opening stream: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" Stack Trace: ( CoreFoundation <redacted> + 150 libobjc.A.dylib objc_exception_throw + 38 CoreFoundation <redacted> + 0 EIS -[B4IFile OpenInput::] + 508 EIS -[B4IBitmap Initialize::] + 1058 EIS -[B4ICommon LoadBitmap::] + 98 EIS -[b4i_clspmedittext _initialize:::::::::::] + 2864 EIS -[b4i_clspmcategory _addedittext0::::::::::] + 1382 EIS -[b4i_clspmcategory _addedittext2:::::::::] + 1192 EIS -[b4i_einstellungen _initpreference_einstellungen] + 5132 EIS -[b4i_einstellungen _pageeinstellungen_resize::] + 822 CoreFoundation <redacted> + 68 CoreFoundation <redacted> + 292 EIS +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786 EIS -[B4IShell runMethod:] + 574 EIS -[B4IShell raiseEventImpl:method:args::] + 1998 EIS -[B4IShellBI raiseEvent:event:params:] + 1340 EIS +[B4IObjectWrapper raiseEvent:::] + 220 EIS __30-[B4IPanelView layoutSubviews]_block_invoke + 822 libdispatch.dylib <redacted> + 10 libdispatch.dylib <redacted> + 22 libdispatch.dylib _dispatch_main_queue_callback_4CF + 1532 CoreFoundation <redacted> + 8 CoreFoundation <redacted> + 1590 CoreFoundation CFRunLoopRunSpecific + 516 CoreFoundation CFRunLoopRunInMode + 108 GraphicsServices GSEventRunModal + 160 UIKit UIApplicationMain + 144 EIS main + 108 libdyld.dylib <redacted> + 2 ) Does anybode knows, what I can also do to solve the problem?
JonPM Well-Known Member Licensed User Longtime User Dec 4, 2015 #2 Can you show your code surrounding the above errors (initialization of ExpandableTableView and clsPMEditText)? Upvote 0
Can you show your code surrounding the above errors (initialization of ExpandableTableView and clsPMEditText)?
schimanski Well-Known Member Licensed User Longtime User Dec 4, 2015 #3 Hello JonPM. The code is the original class of Erel's ExpandableTableView and the the clsPMEditText is the original Class of filippos Preference. The problem isn't this code, because everything runs with the same code in debug yesterday. I think, that something is crashed in the compiler settings. The same problem is often posted here and an deinstallation and new installation solved this problem, but not yet... Upvote 0
Hello JonPM. The code is the original class of Erel's ExpandableTableView and the the clsPMEditText is the original Class of filippos Preference. The problem isn't this code, because everything runs with the same code in debug yesterday. I think, that something is crashed in the compiler settings. The same problem is often posted here and an deinstallation and new installation solved this problem, but not yet...
JonPM Well-Known Member Licensed User Longtime User Dec 4, 2015 #4 Oh do you mean with Hosted Builder? Sorry I use local so I'm not sure Upvote 0
schimanski Well-Known Member Licensed User Longtime User Dec 4, 2015 #5 Yes, I'm using hosted... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2015 #6 Such errors are almost never related to reinstallation of B4i.. Uninstalling the app from the device and then installing it again can solve an issue with files not being updated. The second error means that there is a missing bitmap. It happens in: clspmedittext.initialize Upvote 0
Such errors are almost never related to reinstallation of B4i.. Uninstalling the app from the device and then installing it again can solve an issue with files not being updated. The second error means that there is a missing bitmap. It happens in: clspmedittext.initialize
schimanski Well-Known Member Licensed User Longtime User Dec 6, 2015 #7 Yes, I know that. I have uninstalled everything up to 10 times, but nothing helps. The missing bitmap is only the first exception. When I delete the line, the next bitmap in the dirassets folder isn't found in debug. I had the problem sometimes in the past and an reinstall helps every times, but now, no success... Upvote 0
Yes, I know that. I have uninstalled everything up to 10 times, but nothing helps. The missing bitmap is only the first exception. When I delete the line, the next bitmap in the dirassets folder isn't found in debug. I had the problem sometimes in the past and an reinstall helps every times, but now, no success...
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2015 #8 Are there several "debug" apps (with different package names) installed on your device? Upvote 0
schimanski Well-Known Member Licensed User Longtime User Dec 6, 2015 #9 Not yet. I always uninstall them, when I don't need them longer. Could a factory reset solve the problem? Upvote 0
Not yet. I always uninstall them, when I don't need them longer. Could a factory reset solve the problem?
Erel B4X founder Staff member Licensed User Longtime User Dec 7, 2015 #10 schimanski said: Could a factory reset solve the problem? Click to expand... I don't think that it will help. If you can reproduce it then please send me the complete project and I'll check it. Upvote 0
schimanski said: Could a factory reset solve the problem? Click to expand... I don't think that it will help. If you can reproduce it then please send me the complete project and I'll check it.
Erel B4X founder Staff member Licensed User Longtime User Dec 7, 2015 #11 In debug mode the asset files are stored in a folder named virtual_assets. It is located in the temp folder. Your current code deletes this folder together with the other temporary files. Change the sub that deletes all the temporary files to: Code: Sub TempFiles_loeschen For Each s As String In File.ListFiles(File.DirTemp) If File.IsDirectory(File.DirTemp, s) = False Then File.Delete(File.DirTemp, s) End If Next End Sub Upvote 0
In debug mode the asset files are stored in a folder named virtual_assets. It is located in the temp folder. Your current code deletes this folder together with the other temporary files. Change the sub that deletes all the temporary files to: Code: Sub TempFiles_loeschen For Each s As String In File.ListFiles(File.DirTemp) If File.IsDirectory(File.DirTemp, s) = False Then File.Delete(File.DirTemp, s) End If Next End Sub
schimanski Well-Known Member Licensed User Longtime User Dec 7, 2015 #12 Much thanx, Erel. I think, I wouldn't come out. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 7, 2015 #13 I will explain how I debugged this issue. First I added this line right before the LoadBitmap that fails: Code: Log(File.ListFiles(File.DirAssets)) It failed. So I added the same line right at the beginning of Application_Start. This time it worked. So I understood that the folder is deleted somewhere. The next step was to search for File.Delete. Upvote 0
I will explain how I debugged this issue. First I added this line right before the LoadBitmap that fails: Code: Log(File.ListFiles(File.DirAssets)) It failed. So I added the same line right at the beginning of Application_Start. This time it worked. So I understood that the folder is deleted somewhere. The next step was to search for File.Delete.