Randomly on save :: TypeError: Cannot read properties of null

Hi Everybody

I wasn't sure if i should put it here or bugs or what -- but this has been happening more and more on my system.

Mainly when i do a file-save (ctrl-s) ; randomly i get in the terminal output a huge amount of

TypeError Cannot read properties of null.

Using Wappler Beta 7 b12

I have not seen any negative effects but it happens at least once an hour and all random.

Anybody else?

Thanks!

Hi,

I moved your topic to the bug report section, those kind of errors are bugs :slight_smile:

Could supply more info on when exactly this happens? What kind of files are you saving?

Hi George.

Its really hard to pinpoint a repeatable action but few observations are:

  • editing a .js file for my project it will happen the most (3 .js files in my case)
  • when adding a never-used before action - like 'fileUpload'

I do recall every time it happen was when i used the keyboard shortcut to save-all; Ctrl-Alt-S .

All files are loaded in Wappler - no external editors.
Again - its random. Its happen 5-10 times in the past week. Sorry i cant supply more details but I will report a better detailed 'what-did-I-do' if it happens again.

Thanks!
JND

Hello @George
It happen this morning so here is the lines.

I removed a server action, added cookie manager, and toggle, opened a .js file (no edits). then did Ctrl-Alt-S to save and a whole lot of lines showed below the editor. As far as negative results, it hasn't affected anything obvious.

Hope this points ya in a direction.

Cheers
JND

P.s Beta 13 is faster and like the layout better.

:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/dmxDWApiBridge/dmxNWApiBridge.js:1:45829 at file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/dmxDWApiBridge/dmxNWApiBridge.js:1:45650 at node:fs:187:23 at node:internal/util:539:20 at getDirents (node:internal/fs/utils:281:7) at req.oncomplete (node:fs:1478:7)
TypeError: Cannot read properties of null (reading 'extend') at a._populateListValues (file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2dw/w2propsUI.js:7:18212) at file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/w2ui/w2dw/w2propsUI.js:7:15331 at file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/dmxServerConnect/dmxConnect_utils.js:3639:9 at Object.callback (file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/dmxServerConnect/dmxConnect_utils.js:3835:24) at dmxDWApiBridge.applyCallback (file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/dmxDWApiBridge/dmxNWApiBridge.js:1:9512) at file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/dmxDWApiBridge/dmxNWApiBridge.js:1:45829 at file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/dmxDWApiBridge/dmxNWApiBridge.js:1:45650 at node:fs:187:23 at node:internal/util:539:20 at getDirents (node:internal/fs/utils:281:7) at req.oncomplete (node:fs:1478:7)

@jndaniels0 loving your little dog, well off topic I know!

:smiley:

Howdy . @George @patrick
Ok, new occurrence.

I was working with a pouch collection. Added a field db_state and tried to apply the database changes. It would never go away and i didn't get confirmation it was run. It would ask for the description - which i supplied several times and it still did not clear out.

if i did a schema refresh it would warn that there are unsaved changes - existing schema definition will be deleted. After several 'no' tries, i saved every file that was open individually by clicking on its tab and going to the 3 dots and save.

tried to apply changes to db again - and it asked for database change description -- Again, entered a description and 'ok'.
Still nothing.

Then said yes on refreshing schema -
VOILA this happen

TypeError: Cannot read properties of undefined (reading 'schema') at b.editTable (file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/databaseManager.js:1:26070) at action 
(file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/databaseManager.js:1:108547) at Object._execute 
(file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.contextmenu_fontawesome.js:8:4351) at HTMLAnchorElement.<anonymous> 
(file:///C:/Users/XXXXXX/AppData/Local/Wappler%20Beta/resources/app/Shared/DMXzone/dmxAppCreator/UI/jsTree/jstree.contextmenu_fontawesome.js:8:11516) at HTMLUListElement.dispatch 
(C:\Users\XXXXXX\AppData\Local\Wappler Beta\resources\app\node_modules\jquery\dist\jquery.js:5430:27) at elemData.handle (C:\Users\XXXXXX\AppData\Local\Wappler Beta\resources\app\node_modules\jquery\dist\jquery.js:5234:28) at HTMLUListElement.sentryWrapped 
(C:\Users\XXXXXX\AppData\Local\Wappler Beta\resources\app\node_modules\@sentry\browser\cjs\helpers.js:92:17)

My last post i mention that there was no ill effects - There is one sorta in a way, that the task you may have been doing just didn't work (no response or just a blip) leading me to believe that i need to find a different logic approach.

Cheers Y'all
JND

Thanks @Cheese !!

That is Max. A Maximum pain-in-the-Arse! He was only few months old. That was 12 years ago.

Cheers
JND

1 Like

please report one issue per topic. make new topics for other issues, so we can track them better.

As for your save all problem now, try to isolate it with which files it happens and when exactly and provide us with step by step instructions to reproduce.

Thanks @George

Sure will. I'll keep tracking this and post each occurrence separate.

Cheers
JND

Fixed in Wappler 7 beta 14

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.