how do i fix Bad state error: Source maps are not done loading - flutter

i am getting this error when debugging in web flutter:
Bad state: Source maps are not done loading.
at Object.j3 (http://localhost:62170/stack_trace_mapper.js:244:69)
at jT (http://localhost:62170/stack_trace_mapper.js:2641:10)
at http://localhost:62170/stack_trace_mapper.js:2635:42
at dart._StackTrace.new.toString (http://localhost:62170/dart_sdk.js:7956:19)
at Object.str (http://localhost:62170/dart_sdk.js:5654:32)
when running to line:
final Iterable frames = filter('${FlutterError.demangleStackTrace(stack)}'.trimRight().split('\n'));
after the deployment everything seems to work correctly, I also checked the consol and there are no errors.

Related

What is causing this Flutter image_picker error

I remember having this issue once in the past but not how I fixed it. I have a fairly simple function to allow users to update their profile picture but it fails at the first step final XFile? image = await ImagePicker().pickImage(source: ImageSource.gallery);
Here is the first error:
2022-08-13 13:21:44.215616+0300 Runner[3940:211672] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""
2022-08-13 13:21:44.230196+0300 Runner[3940:211673] [PAAccessLogger] Failed to log access with error: access=<PATCCAccess 0x2806da5b0> accessor:<<PAApplication 0x282ab0500 identifierType:auditToken identifier:{pid:3940, version:11538}>> identifier:EF438868-FF12-4741-9ACF-88D57992D9BE kind:intervalEnd timestampAdjustment:0 tccService:kTCCServicePhotos, error=Error Domain=PAErrorDomain Code=10 "Possibly incomplete access interval automatically ended by daemon"
The only setup needed in iOS for this package is adding permissions in the info.plist file which I've done. That is also how the function is shown in the pub package so there's no reason it shouldn't work. The error I will show below implies that I'm using something like maxWidth, maxHeight, or trying to compress the image, but I'm not using any of those parameters. It also seems like the image file is referred to as null, which is why I think the above error is the issue. Any other similar questions I've seen had no answers and most were using those parameters. I appreciate any ideas.
Error 2:
2022-08-13 13:21:44.243912+0300 Runner[3940:211261] image_picker: compressing is not supported for type (null). Returning the image with original quality
Of course, I wanted to see what I could do to get around this until a solution is found so I changed the image source to the camera instead of the gallery. Now there is no error from image_picker, but the next step is creating an Image from the XFile? Image.file(File(image!.path)). I have to use a null check on the XFile but I get an error saying it is null. That mean although no error is given by image_picker, it's not actually returning an image.

How to Troubleshoot Dexie bound on IDBKeyRange Error

I'm using Dexie.js version 3.0.3-rc.3 in a Vue JS project and I occasionally run into this exception in Chrome (86):
Failed to execute 'bound' on 'IDBKeyRange': The parameter is not a valid key.↵ DataError: Failed to execute 'bound' on 'IDBKeyRange': The parameter is not a valid key.
Here's a screenshot of the full error:
I'm fairly certain the problem lies with something in my data being undefined, but I'm trying to find a good way to troubleshoot this. I paused the Chrome dev tools on exceptions and inspected the code around this particular part of Dexie, but it doesn't reveal what data was used to make this exception occur.
Does anyone have any suggestions on how to find out what's actually wrong? It feels a bit like a needle in a haystack.
== Update ==
Below is the full call stack:
Try inspecting the call stack. I know it can be long until you reach a frame within your application code, but the failing call should be there!

GWT Error Popup

The error popup with the following error message comes on the screen repeatedly when application is in idle state (no user activity is performed).
Error occurred on client: (TypeError): Unable to get property 'iterator_0' of undefined or null reference.
number: -2146823281
at handleEvent_206....EF34544...cache.html
at dispatchEvent_0..EF34544...cache.html
at sucess_184 ..
..
Can anyone give some pointers to navigate to the problamatic area in the code?
The fact that you're getting it repeatedly is probably due to the fact that you're performing an action on a timer (i.e. perform repeatedly an action).
From the small snippet you've shown, I don't think there's anything we can deduce. Do you have a larger stacktrace? It is still possible the error is in your own code (trying to invoke iterator() on a null object).

Debugging an Execution Exception Error Based on a Function Within Playframework

Today I did couple of updates on the front-end side of things, and then I did get the execution exception error, while running the app, that points to the written code within the target folder.
Error:
Execution exception
[IllegalStateException: java.lang.reflect.InvocationTargetException]
Pinter to the error on line 31 (/target/scala2.11/routes/main/controllers/ReverseRoutes.scala:31):
28 // #LINE:65
29 def versioned(file:Asset): Call = {
30 implicit val _rrc = new ReverseRouteContext(Map(("path", "/public")))
31 Call("GET", _prefix + { _defaultPrefix } + "vassets/" + implicitly[PathBindable[Asset]].unbind("file", file))
32 }
Where should I look for this error, as obviously I did not wrote the code within the target folder.
Note 1: Commented whatever I did after I did get the error, and I do still get the error.
Note 2: I did clean compile with no error, however when I try to run it through the browser I do get the error.
this error is strictly connected with template and using controllers call (your methods from controllers)
you have to localize on your template which controller method calls this error
for instance I had a problem with nullpointerexception and I found a problem. I had below controller:
#controllers.MyController.myMethod(object.getValue)
and it turns out that in db getValue had null and play reported it as a problem. he somehow detect that this value is null
Strange for me but maybe it will help

A weird error occurs on my xml-file during eclipse start and goes away after maven update

I have a weird error that occurs on my camel-config.xml file that occurs on my datasource pooling. When I start my eclipse, the error shows up that says "Processing XML Error. Resource must not be null", and goes away after I do maven update. I wanted to know what's causing the error to occur in the first place and why does it go away after I update it. Its oracle datapooling and not even related to logic of a particular project. Any thoughts, suggestions or views about this problem are appreciated.
I'm getting error on this piece of code.
<orcl:pooling-datasource id="dataSource1"
url="${oracle.db1.url}" username="${oracle.db1.username}" password="${oracle.db1.password}"/>
<orcl:pooling-datasource id="dataSource2"
url="${oracle.db2.url}" username="${oracle.db2.username}" password="${oracle.db2.password}"/>
<orcl:pooling-datasourc
e id="dataSource3"
url="${oracle.db3.url}" username="${oracle.db3.username}" password="${oracle.db3.password}"/>
Thanks,
Gautham